Greenbone Vulnerability Management Libraries: base/credentials.h File Reference

Greenbone Vulnerability Management Libraries 23.1.1

Data Structures | Functions
credentials.h File Reference

Credential pairs and triples. More...

`#include <glib.h>`

Go to the source code of this file.

## Data Structures
struct | credentials_t
| A username password pair. More...

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

## Detailed Description

Credential pairs and triples.

## 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] | credentials | Credentials.
  [in] | text | The text to append.
  [in] | length | Length 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] | credentials | Credentials.
  [in] | text | The text to append.
  [in] | length | Length of the text.

## ◆ free_credentials()

void free_credentials | ( | credentials_t * | credentials | ) |

Free credentials.

Free the members of a credentials pair.

Parameters

  [in] | credentials | Pointer to the credentials.