aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.h
diff options
context:
space:
mode:
authorArmel Asselin <armelasselin@hotmail.com>2012-03-09 17:24:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-08-08 23:03:10 +0200
commite351972bc89aa4ccfc83054a01d29ee7337e0b4a (patch)
tree953a9760d4dbdb1f9f2b9bc5765e1ff6bd9c9147 /lib/ssh.h
parent021e89b8c637565ac6e5e9c474c898ab7e87dc41 (diff)
SSH: added agent based authentication
CURLSSH_AUTH_AGENT is a new auth type for SSH
Diffstat (limited to 'lib/ssh.h')
-rw-r--r--lib/ssh.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ssh.h b/lib/ssh.h
index dce035b5e..bf43fdf3a 100644
--- a/lib/ssh.h
+++ b/lib/ssh.h
@@ -44,6 +44,9 @@ typedef enum {
SSH_AUTH_PKEY,
SSH_AUTH_PASS_INIT,
SSH_AUTH_PASS,
+ SSH_AUTH_AGENT_INIT,/* initialize then wait for connection to agent */
+ SSH_AUTH_AGENT_LIST,/* ask for list then wait for entire list to come */
+ SSH_AUTH_AGENT, /* attempt one key at a time */
SSH_AUTH_HOST_INIT,
SSH_AUTH_HOST,
SSH_AUTH_KEY_INIT,
@@ -139,6 +142,12 @@ struct ssh_conn {
LIBSSH2_SFTP_HANDLE *sftp_handle;
int orig_waitfor; /* default READ/WRITE bits wait for */
+#ifdef HAVE_LIBSSH2_AGENT_API
+ LIBSSH2_AGENT *ssh_agent; /* proxy to ssh-agent/pageant */
+ struct libssh2_agent_publickey *sshagent_identity,
+ *sshagent_prev_identity;
+#endif
+
/* note that HAVE_LIBSSH2_KNOWNHOST_API is a define set in the libssh2.h
header */
#ifdef HAVE_LIBSSH2_KNOWNHOST_API