From f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 29 Dec 2008 11:33:51 +0000 Subject: Add a more generic auth callback function. You should be able to obtain passwords or usernames with this function. Signed-off-by: Andreas Schneider git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@198 7dcaeef0-15fb-0310-b436-a5af3365683c --- sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample.c') 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(); -- cgit