auth: Add ssh_userauth_agent().

This commit is pretty big cause several functions have been refactored.
This commit is contained in:
Andreas Schneider
2011-08-23 21:28:14 +02:00
parent 4c1d3b708c
commit c221db0f36
5 changed files with 265 additions and 400 deletions

View File

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