1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

examples: Improve the authenticate_kbdint function.

The function excepts a predefined password now. It will try to use it if
the prompt is a Password prompt. This works in 80% of the cases.
This commit is contained in:
Andreas Schneider
2011-01-08 10:17:37 +01:00
parent 4f83918109
commit d1e1103198
2 changed files with 64 additions and 37 deletions

View File

@ -15,7 +15,7 @@ clients must be made or how a client should react.
#include <libssh/libssh.h>
int authenticate_console(ssh_session session);
int authenticate_kbdint(ssh_session session);
int authenticate_kbdint(ssh_session session, const char *password);
int verify_knownhost(ssh_session session);
ssh_session connect_ssh(const char *hostname, const char *user, int verbosity);