credentials.h
Go to the documentation of this file.
/* Copyright (C) 2010-2021 Greenbone Networks GmbH
*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _GVM_CREDENTIALS_H
#define _GVM_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;
} 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 /* _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:64
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:78
free_credentials
void free_credentials(credentials_t *credentials)
Free credentials.
Definition: credentials.c:45
credentials_t
A username password pair.
Definition: credentials.h:34
credentials_t::dynamic_severity
int dynamic_severity
Dynamic Severity setting of user.
Definition: credentials.h:47
credentials_t::default_severity
double default_severity
Default Severity setting of user.
Definition: credentials.h:43
credentials_t::role
gchar * role
Role of user.
Definition: credentials.h:49
credentials_t::password
gchar * password
Password of user.
Definition: credentials.h:37
credentials_t::timezone
gchar * timezone
Timezone of user.
Definition: credentials.h:41
credentials_t::username
gchar * username
Login name of user.
Definition: credentials.h:35
credentials_t::uuid
gchar * uuid
UUID of user.
Definition: credentials.h:39
credentials_t::severity_class
gchar * severity_class
Severity Class setting of user.
Definition: credentials.h:45