Greenbone Vulnerability Manager
22.4.0~dev1
|
GVM GMP layer: TLS certificates. More...
#include "gmp_tls_certificates.h"
#include "gmp_base.h"
#include "gmp_get.h"
#include "manage_tls_certificates.h"
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gvm/util/xmlutils.h>
Data Structures | |
struct | get_tls_certificates_t |
The get_tls_certificates command. More... | |
struct | create_tls_certificate_t |
The create_tls_certificate command. More... | |
struct | modify_tls_certificate_t |
The modify_tls_certificate command. More... | |
Macros | |
#define | G_LOG_DOMAIN "md gmp" |
GLib log domain. | |
Functions | |
static void | get_tls_certificates_reset () |
Reset command data. | |
void | get_tls_certificates_start (const gchar **attribute_names, const gchar **attribute_values) |
Handle command start element. More... | |
void | get_tls_certificates_run (gmp_parser_t *gmp_parser, GError **error) |
Handle end element. More... | |
static void | create_tls_certificate_reset () |
Reset command data. | |
void | create_tls_certificate_start (gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values) |
Start a command. More... | |
void | create_tls_certificate_element_start (gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values) |
Start element. More... | |
void | create_tls_certificate_run (gmp_parser_t *gmp_parser, GError **error) |
Execute command. More... | |
int | create_tls_certificate_element_end (gmp_parser_t *gmp_parser, GError **error, const gchar *name) |
End element. More... | |
void | create_tls_certificate_element_text (const gchar *text, gsize text_len) |
Add text to element. More... | |
static void | modify_tls_certificate_reset () |
Reset command data. | |
void | modify_tls_certificate_start (gmp_parser_t *gmp_parser, const gchar **attribute_names, const gchar **attribute_values) |
Start a command. More... | |
void | modify_tls_certificate_element_start (gmp_parser_t *gmp_parser, const gchar *name, const gchar **attribute_names, const gchar **attribute_values) |
Start element. More... | |
void | modify_tls_certificate_run (gmp_parser_t *gmp_parser, GError **error) |
Execute command. More... | |
int | modify_tls_certificate_element_end (gmp_parser_t *gmp_parser, GError **error, const gchar *name) |
End element. More... | |
void | modify_tls_certificate_element_text (const gchar *text, gsize text_len) |
Add text to element. More... | |
gchar * | tls_certificate_origin_extra_xml (const char *origin_type, const char *origin_id, const char *origin_data) |
Generate extra XML for special TLS certificate origins like reports. More... | |
Variables | |
static get_tls_certificates_t | get_tls_certificates_data |
Parser callback data. More... | |
static create_tls_certificate_t | create_tls_certificate_data |
Parser callback data. More... | |
static modify_tls_certificate_t | modify_tls_certificate_data |
Parser callback data. More... | |
GVM GMP layer: TLS certificates.
This includes function and variable definitions for GMP handling of TLS certificates.
int create_tls_certificate_element_end | ( | gmp_parser_t * | gmp_parser, |
GError ** | error, | ||
const gchar * | name | ||
) |
End element.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
[in] | name | Element name. |
void create_tls_certificate_element_start | ( | gmp_parser_t * | gmp_parser, |
const gchar * | name, | ||
const gchar ** | attribute_names, | ||
const gchar ** | attribute_values | ||
) |
Start element.
[in] | gmp_parser | GMP parser. |
[in] | name | Element name. |
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
void create_tls_certificate_element_text | ( | const gchar * | text, |
gsize | text_len | ||
) |
Add text to element.
[in] | text | Text. |
[in] | text_len | Text length. |
void create_tls_certificate_run | ( | gmp_parser_t * | gmp_parser, |
GError ** | error | ||
) |
Execute command.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
void create_tls_certificate_start | ( | gmp_parser_t * | gmp_parser, |
const gchar ** | attribute_names, | ||
const gchar ** | attribute_values | ||
) |
Start a command.
[in] | gmp_parser | GMP parser. |
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
void get_tls_certificates_run | ( | gmp_parser_t * | gmp_parser, |
GError ** | error | ||
) |
Handle end element.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
void get_tls_certificates_start | ( | const gchar ** | attribute_names, |
const gchar ** | attribute_values | ||
) |
Handle command start element.
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
int modify_tls_certificate_element_end | ( | gmp_parser_t * | gmp_parser, |
GError ** | error, | ||
const gchar * | name | ||
) |
End element.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
[in] | name | Element name. |
void modify_tls_certificate_element_start | ( | gmp_parser_t * | gmp_parser, |
const gchar * | name, | ||
const gchar ** | attribute_names, | ||
const gchar ** | attribute_values | ||
) |
Start element.
[in] | gmp_parser | GMP parser. |
[in] | name | Element name. |
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
void modify_tls_certificate_element_text | ( | const gchar * | text, |
gsize | text_len | ||
) |
Add text to element.
[in] | text | Text. |
[in] | text_len | Text length. |
void modify_tls_certificate_run | ( | gmp_parser_t * | gmp_parser, |
GError ** | error | ||
) |
Execute command.
[in] | gmp_parser | GMP parser. |
[in] | error | Error parameter. |
void modify_tls_certificate_start | ( | gmp_parser_t * | gmp_parser, |
const gchar ** | attribute_names, | ||
const gchar ** | attribute_values | ||
) |
Start a command.
[in] | gmp_parser | GMP parser. |
[in] | attribute_names | All attribute names. |
[in] | attribute_values | All attribute values. |
gchar* tls_certificate_origin_extra_xml | ( | const char * | origin_type, |
const char * | origin_id, | ||
const char * | origin_data | ||
) |
Generate extra XML for special TLS certificate origins like reports.
[in] | origin_type | The origin type (e.g. "Report") |
[in] | origin_id | The id of the origin resource (e.g. report id) |
[in] | origin_data | The extra origin data |
|
static |
Parser callback data.
This is initially 0 because it's a global variable.
|
static |
Parser callback data.
This is initially 0 because it's a global variable.
|
static |
Parser callback data.
This is initially 0 because it's a global variable.