40 #ifndef NC_CALLBACKS_SSH_H_
41 #define NC_CALLBACKS_SSH_H_
43 #ifndef DISABLE_LIBSSH
45 #include <libssh/libssh.h>
65 const char* instruction,
82 const char* hostname));
96 const char* hostname,
const char* priv_key_file));
111 ssh_session session));
void nc_callback_sshauth_interactive(char *(*func)(const char *name, const char *instruction, const char *prompt, int echo))
Set a callback function for passing user credentials into the libssh's keyboard-interactive authentic...
void nc_callback_sshauth_passphrase(char *(*func)(const char *username, const char *hostname, const char *priv_key_file))
Set a callback function for passing the user password into the libssh's publickey authentication meth...
int nc_set_keypair_path(const char *privkey, const char *pubkey)
Set path to a private and a public key file used in case of SSH authentication via a publickey mechan...
void nc_callback_ssh_host_authenticity_check(int(*func)(const char *hostname, ssh_session session))
Set a callback function to authorize authenticity of the remote host.
void nc_callback_sshauth_password(char *(*func)(const char *username, const char *hostname))
Set a callback function for passing the user password into the libssh's password authentication metho...
libnetconf's general public functions and structures definitions.
int nc_del_keypair_path(const char *privkey, const char *pubkey)
Remove a private and a public key file.