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

Greenbone Vulnerability Management Libraries 23.7.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
10
11#ifndef _GVM_BASE_CREDENTIALS_H
12#define _GVM_BASE_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;
39 /*@null@ */ int jwt_requested;
41 /*@null@ */ gchar *jwt;
43} credentials_t;
44
45void
46 free_credentials (credentials_t *credentials);
47
48void
49 append_to_credentials_username (credentials_t *credentials, const char *text,
50 gsize length);
51
52void
53 append_to_credentials_password (credentials_t *credentials, const char *text,
54 gsize length);
55
56#endif /* not _GVM_BASE_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:51
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:65
free_credentials
void free_credentials(credentials_t *credentials)
Free credentials.
Definition credentials.c:31
credentials_t
A username password pair.
Definition credentials.h:20
credentials_t::dynamic_severity
int dynamic_severity
Dynamic Severity setting of user.
Definition credentials.h:33
credentials_t::jwt_requested
int jwt_requested
Whether a JSON web token is requested.
Definition credentials.h:39
credentials_t::default_severity
double default_severity
Default Severity setting of user.
Definition credentials.h:29
credentials_t::role
gchar * role
Role of user.
Definition credentials.h:35
credentials_t::password
gchar * password
Password of user.
Definition credentials.h:23
credentials_t::jwt
gchar * jwt
Current JSON web token of user.
Definition credentials.h:41
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::uuid
gchar * uuid
UUID of user.
Definition credentials.h:25
credentials_t::severity_class
gchar * severity_class
Severity Class setting of user.
Definition credentials.h:31
credentials_t::excerpt_size
int excerpt_size
Note/Override Excerpt Size setting of user.
Definition credentials.h:37