Greenbone Vulnerability Manager  22.4.0~dev1
manage_sql_tls_certificates.h
Go to the documentation of this file.
1 /* Copyright (C) 2019-2022 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: AGPL-3.0-or-later
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as
7  * published by the Free Software Foundation, either version 3 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
26 #ifndef _GVMD_MANAGE_SQL_TLS_CERTIFICATES_H
27 #define _GVMD_MANAGE_SQL_TLS_CERTIFICATES_H
28 
29 const char**
31 
32 column_t*
34 
35 gchar *
36 tls_certificate_extra_where (const char *);
37 
38 int
39 delete_tls_certificate (const char *, int);
40 
41 void
43 
44 void
45 inherit_tls_certificates (user_t, user_t);
46 
47 int
48 user_has_tls_certificate (tls_certificate_t, user_t);
49 
50 int
52  const char*,
53  const char*);
54 
55 #endif /* not _GVMD_MANAGE_SQL_TLS_CERTIFICATES_H */
void delete_tls_certificates_user(user_t)
Delete all TLS certificate owned by a user.
Definition: manage_sql_tls_certificates.c:939
void inherit_tls_certificates(user_t, user_t)
Change ownership of tls_certificate, for user deletion.
Definition: manage_sql_tls_certificates.c:970
int add_tls_certificates_from_report_host(report_host_t, const char *, const char *)
Collects and add TLS certificates from the details of a report host.
Definition: manage_sql_tls_certificates.c:1494
int user_has_tls_certificate(tls_certificate_t, user_t)
Checks if user owns a certificate or one with the same fingerprints.
Definition: manage_sql_tls_certificates.c:1450
int delete_tls_certificate(const char *, int)
Delete a tls_certificate.
Definition: manage_sql_tls_certificates.c:868
const char ** tls_certificate_filter_columns()
Gets the filter columns for TLS certificates.
Definition: manage_sql_tls_certificates.c:165
gchar * tls_certificate_extra_where(const char *)
Get extra_where string for a TLS certificate iterator or count.
Definition: manage_sql_tls_certificates.c:191
column_t * tls_certificate_select_columns()
Gets the select columns for TLS certificates.
Definition: manage_sql_tls_certificates.c:177
Iterator column.
Definition: manage_sql.h:217