OpenVAS Libraries  7.0.7
openvas_ssh_login.h
Go to the documentation of this file.
1 /* OpenVAS Libraries
2  * $Id$
3  * Description: LSC Credentials management.
4  *
5  * Authors:
6  * Felix Wolfsteller <felix.wolfsteller@intevation.de>
7  *
8  * Copyright:
9  * Copyright (C) 2009 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2,
13  * or, at your option, any later version as published by the Free
14  * Software Foundation
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef _OPENVAS_SSH_LOGIN_H
27 #define _OPENVAS_SSH_LOGIN_H
28 
29 #include <glib.h>
30 
34 typedef struct
35 {
36  char *name;
37  char *username;
38  char *userpassword;
42  char *comment;
43  gboolean valid;
46 
47 openvas_ssh_login *openvas_ssh_login_new (char *name, char *pubkey_file,
48  char *privkey_file, char *passphrase,
49  char *comment, char *uname,
50  char *upass);
51 
53 
54 GHashTable *openvas_ssh_login_file_read_buffer (const char *buffer,
55  gsize buffer_size,
56  gboolean check);
57 
58 #endif
char * name
Definition: openvas_ssh_login.h:36
char * private_key_path
Path to the public key.
Definition: openvas_ssh_login.h:40
char * username
Name to identify this credentials.
Definition: openvas_ssh_login.h:37
char * ssh_key_passphrase
Path to the private key.
Definition: openvas_ssh_login.h:41
char * public_key_path
Password of the user.
Definition: openvas_ssh_login.h:39
const char * name
Definition: nasl_init.c:501
gboolean valid
Optional comment.
Definition: openvas_ssh_login.h:43
openvas_ssh_login * openvas_ssh_login_new(char *name, char *pubkey_file, char *privkey_file, char *passphrase, char *comment, char *uname, char *upass)
Initializes a openvas_ssh_login.
Definition: openvas_ssh_login.c:80
char * comment
Passphrase for the key.
Definition: openvas_ssh_login.h:42
GHashTable * openvas_ssh_login_file_read_buffer(const char *buffer, gsize buffer_size, gboolean check)
Reads from contents of a ssh_login file and returns info in a.
Definition: openvas_ssh_login.c:245
Definition: openvas_ssh_login.h:34
char * userpassword
Name of the user.
Definition: openvas_ssh_login.h:38
void openvas_ssh_login_free(openvas_ssh_login *loginfo)
Frees data associated with a openvas_ssh_login.
Definition: openvas_ssh_login.c:106