diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-23 21:28:14 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-25 10:13:23 +0200 |
commit | c221db0f3659d188911d5c0ce03d1378c4bc51c7 (patch) | |
tree | 9dbf466ed1736955637959be17dd189ad8649709 /include/libssh/legacy.h | |
parent | 4c1d3b708c7bd6b52fe40dbf1a04089a1f406950 (diff) | |
download | libssh-c221db0f3659d188911d5c0ce03d1378c4bc51c7.tar.gz libssh-c221db0f3659d188911d5c0ce03d1378c4bc51c7.tar.xz libssh-c221db0f3659d188911d5c0ce03d1378c4bc51c7.zip |
auth: Add ssh_userauth_agent().
This commit is pretty big cause several functions have been refactored.
Diffstat (limited to 'include/libssh/legacy.h')
-rw-r--r-- | include/libssh/legacy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/legacy.h b/include/libssh/legacy.h index 9e5c9f0..e951c92 100644 --- a/include/libssh/legacy.h +++ b/include/libssh/legacy.h @@ -33,6 +33,10 @@ LIBSSH_API int ssh_auth_list(ssh_session session); LIBSSH_API int ssh_userauth_offer_pubkey(ssh_session session, const char *username, int type, ssh_string publickey); LIBSSH_API int ssh_userauth_pubkey(ssh_session session, const char *username, ssh_string publickey, ssh_private_key privatekey); +#ifndef _WIN32 +LIBSSH_API int ssh_userauth_agent_pubkey(ssh_session session, const char *username, + ssh_public_key publickey); +#endif LIBSSH_API void buffer_free(ssh_buffer buffer); LIBSSH_API void *buffer_get(ssh_buffer buffer); |