OpenVAS Libraries  7.0.6
Data Structures | Functions
openvas_ssh_login.h File Reference
#include <glib.h>

Go to the source code of this file.

Data Structures

struct  openvas_ssh_login
 

Functions

openvas_ssh_loginopenvas_ssh_login_new (char *name, char *pubkey_file, char *privkey_file, char *passphrase, char *comment, char *uname, char *upass)
 Initializes a openvas_ssh_login. More...
 
void openvas_ssh_login_free (openvas_ssh_login *loginfo)
 Frees data associated with a openvas_ssh_login. More...
 
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. More...
 

Function Documentation

GHashTable* openvas_ssh_login_file_read_buffer ( const char *  buffer,
gsize  buffer_size,
gboolean  check_keyfiles 
)

Reads from contents of a ssh_login file and returns info in a.

GHashTable.

Like openvas_ssh_login_file_read, but used when the file content is known already.

Parameters
filenameBuffer to read from.
check_keyfilesIf TRUE, checks if referenced keyfiles do exist, before adding the openvas_ssh_login to the HashTable.
Returns
GHashTable, keys are names of openvas_ssh_logins, who are values.
See Also
openvas_ssh_login_file_read
void openvas_ssh_login_free ( openvas_ssh_login loginfo)

Frees data associated with a openvas_ssh_login.

Parameters
loginfoopenvas_ssh_login to free.
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.

Key and Info files have to be created separately. However, it is tested if the keyfiles do exist and the 'valid' flag is set accordingly. Note that the parameter are not copied, so ensure they live as long as this login.

Returns
A fresh openvas_ssh_login.