credentials.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2010-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_BASE_CREDENTIALS_H
#define _GVM_BASE_CREDENTIALS_H
#include <glib.h>
typedef struct
{
/*@null@ */ gchar *username;
/*@null@ */ gchar *password;
/*@null@ */ gchar *uuid;
/*@null@ */ gchar *timezone;
/*@null@ */ double default_severity;
/*@null@ */ gchar *severity_class;
/*@null@ */ int dynamic_severity;
/*@null@ */ gchar *role;
/*@null@ */ int excerpt_size;
} credentials_t;
void
free_credentials (credentials_t *credentials);
void
append_to_credentials_username (credentials_t *credentials, const char *text,
gsize length);
void
append_to_credentials_password (credentials_t *credentials, const char *text,
gsize length);
#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:50
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
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::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::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