diff options
author | Andreas Schneider <mail@cynapses.org> | 2008-12-29 11:33:51 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2008-12-29 11:33:51 +0000 |
commit | f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8 (patch) | |
tree | 592e5ac919e74c6c44bc2762918de2eac0b45f63 /sample.c | |
parent | 6ea38880543478fb7d23de731f56fbe33632f5f7 (diff) | |
download | libssh-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |