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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user