Greenbone Vulnerability Manager
22.4.0~dev1
|
GVM management layer: TLS Certificates SQL headers. More...
Go to the source code of this file.
Functions | |
const char ** | tls_certificate_filter_columns () |
Gets the filter columns for TLS certificates. More... | |
column_t * | tls_certificate_select_columns () |
Gets the select columns for TLS certificates. More... | |
gchar * | tls_certificate_extra_where (const char *) |
Get extra_where string for a TLS certificate iterator or count. More... | |
int | delete_tls_certificate (const char *, int) |
Delete a tls_certificate. More... | |
void | delete_tls_certificates_user (user_t) |
Delete all TLS certificate owned by a user. More... | |
void | inherit_tls_certificates (user_t, user_t) |
Change ownership of tls_certificate, for user deletion. More... | |
int | user_has_tls_certificate (tls_certificate_t, user_t) |
Checks if user owns a certificate or one with the same fingerprints. More... | |
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. More... | |
GVM management layer: TLS Certificates SQL headers.
Headers for TLS Certificates SQL for the GVM management layer.
int add_tls_certificates_from_report_host | ( | report_host_t | report_host, |
const char * | report_id, | ||
const char * | host_ip | ||
) |
Collects and add TLS certificates from the details of a report host.
[in] | report_host | The report host to get certificates from. |
[in] | report_id | UUID of the report |
[in] | host_ip | The IP address of the report host. |
int delete_tls_certificate | ( | const char * | tls_certificate_id, |
int | ultimate | ||
) |
Delete a tls_certificate.
TLS certificates do not use the trashcan, so the "ultimate" param is ignored and the resource is always removed completely.
[in] | tls_certificate_id | UUID of tls_certificate. |
[in] | ultimate | Dummy for consistency with other delete commands. |
void delete_tls_certificates_user | ( | user_t | user | ) |
Delete all TLS certificate owned by a user.
Also delete trash TLS certificates.
[in] | user | The user. |
void inherit_tls_certificates | ( | user_t | user, |
user_t | inheritor | ||
) |
Change ownership of tls_certificate, for user deletion.
Also assign tls_certificate that are assigned to the user to the inheritor.
[in] | user | Current owner. |
[in] | inheritor | New owner. |
gchar* tls_certificate_extra_where | ( | const char * | filter | ) |
Get extra_where string for a TLS certificate iterator or count.
[in] | filter | Filter string. |
const char** tls_certificate_filter_columns | ( | ) |
Gets the filter columns for TLS certificates.
column_t* tls_certificate_select_columns | ( | ) |
Gets the select columns for TLS certificates.
int user_has_tls_certificate | ( | tls_certificate_t | tls_certificate, |
user_t | user | ||
) |
Checks if user owns a certificate or one with the same fingerprints.
[in] | tls_certificate | The certificate to check |
[in] | user | The user to check |