Greenbone Vulnerability Manager 22.5.2
manage_sql_tls_certificates.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2022 Greenbone AG
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
29const char**
31
34
35gchar *
36tls_certificate_extra_where (const char *);
37
38int
39delete_tls_certificate (const char *, int);
40
41void
43
44void
45inherit_tls_certificates (user_t, user_t);
46
47int
48user_has_tls_certificate (tls_certificate_t, user_t);
49
50int
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
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
int delete_tls_certificate(const char *, int)
Delete a tls_certificate.
Definition: manage_sql_tls_certificates.c:868
column_t * tls_certificate_select_columns()
Gets the select columns for TLS certificates.
Definition: manage_sql_tls_certificates.c:177
const char ** tls_certificate_filter_columns()
Gets the filter columns for TLS certificates.
Definition: manage_sql_tls_certificates.c:165
Iterator column.
Definition: manage_sql.h:217