OpenVAS Libraries  7.0.6
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 modify
14  * it under the terms of the GNU General Public License version 2,
15  * or, at your option, any later version as published by the Free
16  * Software Foundation
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 "credentials.h"
32 
33 #include <glib.h>
34 
38 typedef struct
39 {
40  /*@null@ */ gchar *username;
42  /*@null@ */ gchar *password;
44  /*@null@ */ gchar *uuid;
46  /*@null@ */ gchar *timezone;
48  /*@null@ */ gchar *role;
51 
52 void free_credentials (credentials_t * credentials);
53 
55  const char *text, gsize length);
56 
58  const char *text, gsize length);
59 
60 #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:79
gchar * role
Role of user.
Definition: credentials.h:48
gchar * username
Login name of user.
Definition: credentials.h:40
A username password pair.
Definition: credentials.h:38
gchar * uuid
UUID of user.
Definition: credentials.h:44
gchar * timezone
Timezone of user. Set in OpenVAS Manager.
Definition: credentials.h:46
gchar * password
Password of user.
Definition: credentials.h:42
void free_credentials(credentials_t *credentials)
Free credentials.
Definition: credentials.c:40
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:65