OpenVAS Libraries  4.0+rc3.SVN
base/credentials.h
00001 /* openvas-libraries/base
00002  * $Id$
00003  * Description: Credential pairs and triples.
00004  *
00005  * Authors:
00006  * Matthew Mundell <matthew.mundell@greenbone.net>
00007  * Michael Wiegand <michael.wiegand@intevation.de>
00008  * Felix Wolfsteller <felix.wolfsteller@intevation.de>
00009  *
00010  * Copyright:
00011  * Copyright (C) 2010 Greenbone Networks GmbH
00012  *
00013  * This program is free software; you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License version 2,
00015  * or, at your option, any later version as published by the Free
00016  * Software Foundation
00017  *
00018  * This program is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program; if not, write to the Free Software
00025  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
00026  */
00027 
00028 #ifndef _OPENVAS_LIBRARIES_BASE_CREDENTIALS_H
00029 #define _OPENVAS_LIBRARIES_BASE_CREDENTIALS_H
00030 
00031 #include "credentials.h"
00032 
00033 #include <glib.h>
00034 
00038 typedef struct
00039 {
00040   /*@null@ */ gchar *username;
00042   /*@null@ */ gchar *password;
00044   /*@null@ */ gchar *uuid;
00046 } credentials_t;
00047 
00048 void free_credentials (credentials_t * credentials);
00049 
00050 void append_to_credentials_username (credentials_t * credentials,
00051                                      const char *text, gsize length);
00052 
00053 void append_to_credentials_password (credentials_t * credentials,
00054                                      const char *text, gsize length);
00055 
00056 #endif /* _OPENVAS_LIBRARIES_BASE_CREDENTIALS_H */