OpenVAS Libraries
6.0+beta5
Main Page
Related Pages
Data Structures
Files
File List
Globals
misc
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
;
39
char
*
public_key_path
;
40
char
*
private_key_path
;
41
char
*
ssh_key_passphrase
;
42
char
*
comment
;
43
gboolean valid;
45
}
openvas_ssh_login
;
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
52
void
openvas_ssh_login_free
(
openvas_ssh_login
* loginfo);
53
54
GHashTable *
openvas_ssh_login_file_read
(
char
*filename, gboolean check);
55
56
GHashTable *
openvas_ssh_login_file_read_buffer
(
const
char
*buffer,
57
gsize buffer_size,
58
gboolean check);
59
60
gboolean
openvas_ssh_login_file_write
(GHashTable * ssh_logins,
char
*filename);
61
62
char
*
openvas_ssh_login_prefstring
(
openvas_ssh_login
* loginfo);
63
64
#endif
Generated by
1.8.3.1