aboutsummaryrefslogtreecommitdiff
path: root/sample.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2008-12-29 11:33:51 +0000
committerAndreas Schneider <mail@cynapses.org>2008-12-29 11:33:51 +0000
commitf9f8ded7f0a691c0b46ccff596944ef1b06cf8a8 (patch)
tree592e5ac919e74c6c44bc2762918de2eac0b45f63 /sample.c
parent6ea38880543478fb7d23de731f56fbe33632f5f7 (diff)
downloadlibssh-f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8.tar.gz
libssh-f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8.tar.xz
libssh-f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8.zip
Add a more generic auth callback function.
You should be able to obtain passwords or usernames with this function. Signed-off-by: Andreas Schneider <mail@cynapses.org> git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@198 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample.c b/sample.c
index 27111a82..94b67172 100644
--- a/sample.c
+++ b/sample.c
@@ -454,7 +454,7 @@ int main(int argc, char **argv){
printf("\n");
/* no ? you should :) */
- auth=ssh_userauth_autopubkey(session);
+ auth=ssh_userauth_autopubkey(session, NULL);
if(auth==SSH_AUTH_ERROR){
fprintf(stderr,"Authenticating with pubkey: %s\n",ssh_get_error(session));
ssh_finalize();