OpenVAS Libraries  9.0.1
Functions
credentials.c File Reference
#include "credentials.h"
#include "openvas_string.h"

Functions

void free_credentials (credentials_t *credentials)
 Free credentials. More...
 
void append_to_credentials_username (credentials_t *credentials, const char *text, gsize length)
 Append text to the username of a credential pair. More...
 
void append_to_credentials_password (credentials_t *credentials, const char *text, gsize length)
 Append text to the password of a credential pair. More...
 

Function Documentation

◆ append_to_credentials_password()

void append_to_credentials_password ( credentials_t credentials,
const char *  text,
gsize  length 
)

Append text to the password of a credential pair.

Parameters
[in]credentialsCredentials.
[in]textThe text to append.
[in]lengthLength of the text.

◆ append_to_credentials_username()

void append_to_credentials_username ( credentials_t credentials,
const char *  text,
gsize  length 
)

Append text to the username of a credential pair.

Parameters
[in]credentialsCredentials.
[in]textThe text to append.
[in]lengthLength of the text.

◆ free_credentials()

void free_credentials ( credentials_t credentials)

Free credentials.

Free the members of a credentials pair.

Parameters
[in]credentialsPointer to the credentials.
Todo:
Check whether uuid has to be freed, too.