aboutsummaryrefslogtreecommitdiff
path: root/examples/examples_common.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2011-01-08 10:17:37 +0100
committerAndreas Schneider <asn@cynapses.org>2011-01-08 10:18:55 +0100
commitd1e1103198f111a0f501c15480b81162b9f77a42 (patch)
tree77feba0d725a9fcbc84408e8d0b851d3946d62b1 /examples/examples_common.h
parent4f83918109df303da8487e1aa30ce82a04f91793 (diff)
downloadlibssh-d1e1103198f111a0f501c15480b81162b9f77a42.tar.gz
libssh-d1e1103198f111a0f501c15480b81162b9f77a42.tar.xz
libssh-d1e1103198f111a0f501c15480b81162b9f77a42.zip
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.
Diffstat (limited to 'examples/examples_common.h')
-rw-r--r--examples/examples_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/examples_common.h b/examples/examples_common.h
index bc30c93..13eb455 100644
--- a/examples/examples_common.h
+++ b/examples/examples_common.h
@@ -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);