Greenbone Vulnerability Management Libraries  22.8.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 
19 typedef 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 
41 void
42 free_credentials (credentials_t *credentials);
43 
44 void
45 append_to_credentials_username (credentials_t *credentials, const char *text,
46  gsize length);
47 
48 void
49 append_to_credentials_password (credentials_t *credentials, const char *text,
50  gsize length);
51 
52 #endif /* _GVM_CREDENTIALS_H */
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.
Definition: credentials.c:50
credentials_t::timezone
gchar * timezone
Timezone of user.
Definition: credentials.h:27
credentials_t::username
gchar * username
Login name of user.
Definition: credentials.h:21
credentials_t::excerpt_size
int excerpt_size
Note/Override Excerpt Size setting of user.
Definition: credentials.h:37
credentials_t::default_severity
double default_severity
Default Severity setting of user.
Definition: credentials.h:29
credentials_t::severity_class
gchar * severity_class
Severity Class setting of user.
Definition: credentials.h:31
credentials_t
A username password pair.
Definition: credentials.h:20
credentials_t::password
gchar * password
Password of user.
Definition: credentials.h:23
credentials_t::uuid
gchar * uuid
UUID of user.
Definition: credentials.h:25
credentials_t::dynamic_severity
int dynamic_severity
Dynamic Severity setting of user.
Definition: credentials.h:33
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.
Definition: credentials.c:64
free_credentials
void free_credentials(credentials_t *credentials)
Free credentials.
Definition: credentials.c:31
credentials_t::role
gchar * role
Role of user.
Definition: credentials.h:35