Greenbone Vulnerability Manager  9.0.0
manage_sql_tls_certificates.h
Go to the documentation of this file.
1 /* Copyright (C) 2019 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the 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 General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
27 #ifndef _GVMD_MANAGE_SQL_TLS_CERTIFICATES_H
28 #define _GVMD_MANAGE_SQL_TLS_CERTIFICATES_H
29 
30 const char**
32 
33 column_t*
35 
36 gchar *
37 tls_certificate_extra_where (const char *);
38 
39 int
40 delete_tls_certificate (const char *, int);
41 
42 void
44 
45 void
46 inherit_tls_certificates (user_t, user_t);
47 
48 int
49 user_has_tls_certificate (tls_certificate_t, user_t);
50 
51 int
53  const char*,
54  const char*);
55 
56 #endif /* not _GVMD_MANAGE_SQL_TLS_CERTIFICATES_H */
inherit_tls_certificates
void inherit_tls_certificates(user_t, user_t)
Change ownership of tls_certificate, for user deletion.
Definition: manage_sql_tls_certificates.c:928
add_tls_certificates_from_report_host
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:1452
delete_tls_certificate
int delete_tls_certificate(const char *, int)
Delete a tls_certificate.
Definition: manage_sql_tls_certificates.c:841
column_t
Iterator column.
Definition: manage_sql.h:289
tls_certificate_select_columns
column_t * tls_certificate_select_columns()
Gets the select columns for TLS certificates.
Definition: manage_sql_tls_certificates.c:178
user_has_tls_certificate
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:1408
delete_tls_certificates_user
void delete_tls_certificates_user(user_t)
Delete all TLS certificate owned by a user.
Definition: manage_sql_tls_certificates.c:912
tls_certificate_filter_columns
const char ** tls_certificate_filter_columns()
Gets the filter columns for TLS certificates.
Definition: manage_sql_tls_certificates.c:166
tls_certificate_extra_where
gchar * tls_certificate_extra_where(const char *)
Get extra_where string for a TLS certificate iterator or count.
Definition: manage_sql_tls_certificates.c:192