Greenbone Vulnerability Management Libraries 22.10.0
credentials.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2010-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
11#ifndef _GVM_CREDENTIALS_H
12#define _GVM_CREDENTIALS_H
13
14#include <glib.h>
15
19typedef struct
20{
21 /*@null@ */ gchar *username;
23 /*@null@ */ gchar *password;
25 /*@null@ */ gchar *uuid;
27 /*@null@ */ gchar *timezone;
29 /*@null@ */ double default_severity;
31 /*@null@ */ gchar *severity_class;
33 /*@null@ */ int dynamic_severity;
35 /*@null@ */ gchar *role;
37 /*@null@ */ int excerpt_size;
40
41void
42free_credentials (credentials_t *credentials);
43
44void
45append_to_credentials_username (credentials_t *credentials, const char *text,
46 gsize length);
47
48void
49append_to_credentials_password (credentials_t *credentials, const char *text,
50 gsize length);
51
52#endif /* _GVM_CREDENTIALS_H */
void append_to_credentials_username(credentials_t *credentials, const char *text, gsize length)
Append text to the username of a credential pair.
Definition credentials.c:50
void append_to_credentials_password(credentials_t *credentials, const char *text, gsize length)
Append text to the password of a credential pair.
Definition credentials.c:64
void free_credentials(credentials_t *credentials)
Free credentials.
Definition credentials.c:31
A username password pair.
Definition credentials.h:20
int dynamic_severity
Dynamic Severity setting of user.
Definition credentials.h:33
double default_severity
Default Severity setting of user.
Definition credentials.h:29
gchar * role
Role of user.
Definition credentials.h:35
gchar * password
Password of user.
Definition credentials.h:23
gchar * timezone
Timezone of user.
Definition credentials.h:27
gchar * username
Login name of user.
Definition credentials.h:21
gchar * uuid
UUID of user.
Definition credentials.h:25
gchar * severity_class
Severity Class setting of user.
Definition credentials.h:31
int excerpt_size
Note/Override Excerpt Size setting of user.
Definition credentials.h:37