diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-02-02 14:41:44 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-02-02 14:41:44 +0000 |
commit | 70aa33c041b88573b32d67d0153c6472ce41ea8b (patch) | |
tree | d6f7d17110e3b5994ec3fcdf9218c080827220c4 /libssh/auth.c | |
parent | 944084964a424584efa1f3e46c8efb731e58023f (diff) | |
download | libssh-70aa33c041b88573b32d67d0153c6472ce41ea8b.tar.gz libssh-70aa33c041b88573b32d67d0153c6472ce41ea8b.tar.xz libssh-70aa33c041b88573b32d67d0153c6472ce41ea8b.zip |
Start with ssh agent implementation.
This is work in progress.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@200 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index eb212f7..c2fc29f 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -432,6 +432,18 @@ int ssh_userauth_autopubkey(SSH_SESSION *session, const char *passphrase) { leave_function(); return err; } + + /* try ssh-agent keys first */ +#ifndef _WIN32 +#if 0 + if (agent_running(session)) { + ssh_say(1, "SSH Agent is running\n"); + count = agent_ident_count(session); + ssh_say(1, "SSH Agent has %d key(s)\n", count); + } +#endif +#endif + if(session->options->identity){ ssh_say(2,"Trying identity file %s\n",session->options->identity); keys_path[0]=session->options->identity; |