1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

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
This commit is contained in:
Andreas Schneider
2009-02-02 14:41:44 +00:00
parent 944084964a
commit 70aa33c041
6 changed files with 89 additions and 1 deletions

View File

@@ -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;