OpenVAS Libraries  9.0.1
credentials.h
Go to the documentation of this file.
1 /* openvas-libraries/base
2  * $Id$
3  * Description: Credential pairs and triples.
4  *
5  * Authors:
6  * Matthew Mundell <matthew.mundell@greenbone.net>
7  * Michael Wiegand <michael.wiegand@intevation.de>
8  * Felix Wolfsteller <felix.wolfsteller@intevation.de>
9  *
10  * Copyright:
11  * Copyright (C) 2010 Greenbone Networks GmbH
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
28 #ifndef _OPENVAS_LIBRARIES_BASE_CREDENTIALS_H
29 #define _OPENVAS_LIBRARIES_BASE_CREDENTIALS_H
30 
31 #include <glib.h>
32 
36 typedef struct
37 {
38  /*@null@ */ gchar *username;
40  /*@null@ */ gchar *password;
42  /*@null@ */ gchar *uuid;
44  /*@null@ */ gchar *timezone;
46  /*@null@ */ double default_severity;
48  /*@null@ */ gchar *severity_class;
50  /*@null@ */ int dynamic_severity;
52  /*@null@ */ gchar *role;
55 
56 void free_credentials (credentials_t * credentials);
57 
59  const char *text, gsize length);
60 
62  const char *text, gsize length);
63 
64 #endif /* _OPENVAS_LIBRARIES_BASE_CREDENTIALS_H */
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:84
double default_severity
Default Severity setting of user. Set in OpenVAS Manager.
Definition: credentials.h:46
gchar * role
Role of user.
Definition: credentials.h:52
gchar * username
Login name of user.
Definition: credentials.h:38
A username password pair.
Definition: credentials.h:36
gchar * severity_class
Severity Class setting of user. Set in OpenVAS Manager.
Definition: credentials.h:48
gchar * uuid
UUID of user.
Definition: credentials.h:42
gchar * timezone
Timezone of user. Set in OpenVAS Manager.
Definition: credentials.h:44
gchar * password
Password of user.
Definition: credentials.h:40
void free_credentials(credentials_t *credentials)
Free credentials.
Definition: credentials.c:40
int dynamic_severity
Dynamic Severity setting of user. Set in OpenVAS Manager.
Definition: credentials.h:50
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:70