40 #ifndef NC_CALLBACKS_SSH_H_
41 #define NC_CALLBACKS_SSH_H_
43 #ifndef DISABLE_LIBSSH
68 const char* instruction,
71 const LIBSSH2_USERAUTH_KBDINT_PROMPT* prompts,
72 LIBSSH2_USERAUTH_KBDINT_RESPONSE* responses,
88 const char* hostname));
102 const char* hostname,
const char* priv_key_file));
117 LIBSSH2_SESSION *session));
void nc_callback_sshauth_interactive(void(*func)(const char *name, int name_len, const char *instruction, int instruction_len, int num_prompts, const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts, LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, void **abstract))
Set a callback function for passing user credentials into the libssh2's keyboard-interactive authenti...
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 libssh2's publickey authentication met...
void nc_callback_ssh_host_authenticity_check(int(*func)(const char *hostname, LIBSSH2_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 libssh2's password authentication meth...
void 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...
libnetconf's general public functions and structures definitions.