|
Greenbone Vulnerability Management Libraries 23.1.1
|
Functions for handling scan credentials. More...
#include "credentialutils.h"Go to the source code of this file.
Data Structures | |
| struct | scan_credential |
| Struct credential information. More... | |
Macros | |
| #define | G_LOG_DOMAIN "libgvm util" |
| GLib logging domain. | |
Functions | |
| scan_credential_t * | scan_credential_new (const char *type, const char *service, const char *port) |
| Allocate and initialize a new scan credential. | |
| const gchar * | scan_credential_get_type (scan_credential_t *credential) |
| Get the type of a scan credential. | |
| const gchar * | scan_credential_get_service (scan_credential_t *credential) |
| Get the service of a scan credential. | |
| const gchar * | scan_credential_get_port (scan_credential_t *credential) |
| Get the port of a scan credential. | |
| void | scan_credential_foreach_auth_data (scan_credential_t *credential, void(*func)(const char *name, const char *value, void *user_data), void *user_data) |
| Iterate over each authentication data item in a scan credential. | |
| void | scan_credential_free (scan_credential_t *credential) |
| Free a scan credential. | |
| const gchar * | scan_credential_get_auth_data (scan_credential_t *credential, const char *name) |
| Get authentication data from a scan credential. | |
| void | scan_credential_set_auth_data (scan_credential_t *credential, const char *name, const char *value) |
| Set authentication data for a scan credential. | |
Functions for handling scan credentials.
| #define G_LOG_DOMAIN "libgvm util" |
GLib logging domain.
| void scan_credential_foreach_auth_data | ( | scan_credential_t * | credential, |
| void(* | func )(const char *name, const char *value, void *user_data), | ||
| void * | user_data ) |
Iterate over each authentication data item in a scan credential.
| [in] | credential | The credential to iterate over. |
| [in] | func | The function to call for each authentication data item. |
| [in] | user_data | User data to pass to the function. |
| void scan_credential_free | ( | scan_credential_t * | credential | ) |
Free a scan credential.
| [in] | credential | The credential to free. |
| const gchar * scan_credential_get_auth_data | ( | scan_credential_t * | credential, |
| const char * | name ) |
Get authentication data from a scan credential.
| [in] | credential | The credential to get the data from. |
| [in] | name | The name of the data item to get. |
| const gchar * scan_credential_get_port | ( | scan_credential_t * | credential | ) |
Get the port of a scan credential.
| [in] | credential | The credential to get the port from. |
| const gchar * scan_credential_get_service | ( | scan_credential_t * | credential | ) |
Get the service of a scan credential.
| [in] | credential | The credential to get the service from. |
| const gchar * scan_credential_get_type | ( | scan_credential_t * | credential | ) |
Get the type of a scan credential.
| [in] | credential | The credential to get the type from. |
| scan_credential_t * scan_credential_new | ( | const char * | type, |
| const char * | service, | ||
| const char * | port ) |
Allocate and initialize a new scan credential.
| [in] | type | The credential type. |
| [in] | service | The service the credential is for. |
| [in] | port | The port. |
| void scan_credential_set_auth_data | ( | scan_credential_t * | credential, |
| const char * | name, | ||
| const char * | value ) |
Set authentication data for a scan credential.
| [in] | credential | The credential to set the data for. |
| [in] | name | The name of the data item to set. |
| [in] | value | The authentication data or NULL to unset. |