Greenbone Vulnerability Manager
22.4.0~dev1
|
GVM management layer: TLS Certificates. More...
#include "manage_tls_certificates.h"
#include <string.h>
Macros | |
#define | _XOPEN_SOURCE |
Enable extra functions. More... | |
Functions | |
void | parse_ssldetails (const char *ssldetails, time_t *activation_time, time_t *expiration_time, gchar **issuer, gchar **serial) |
Extract data from a SSLDetails:[...] host detail value. More... | |
const char * | tls_certificate_format_str (gnutls_x509_crt_fmt_t certificate_format) |
Get a string representation of a certificate format. More... | |
GVM management layer: TLS Certificates.
The TLS Certificates helper functions for the GVM management layer.
#define _XOPEN_SOURCE |
Enable extra functions.
time.h in glibc2 needs this for strptime.
void parse_ssldetails | ( | const char * | ssldetails, |
time_t * | activation_time, | ||
time_t * | expiration_time, | ||
gchar ** | issuer, | ||
gchar ** | serial | ||
) |
Extract data from a SSLDetails:[...] host detail value.
This will try to free existing strings at the output pointers with g_free, so the caller must ensure it is safe to do so.
[in] | ssldetails | The host detail value. |
[out] | activation_time | Pointer to return the activation time. |
[out] | expiration_time | Pointer to return the expiration time. |
[out] | issuer | Pointer to return the issuer. |
[out] | serial | Pointer to return the serial. |
const char* tls_certificate_format_str | ( | gnutls_x509_crt_fmt_t | certificate_format | ) |
Get a string representation of a certificate format.
[in] | certificate_format | The format as gnutls_x509_crt_fmt_t. |