From 70aa33c041b88573b32d67d0153c6472ce41ea8b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 2 Feb 2009 14:41:44 +0000 Subject: 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 --- libssh/auth.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libssh/auth.c') 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; -- cgit