aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-23 21:28:14 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-25 10:13:23 +0200
commitc221db0f3659d188911d5c0ce03d1378c4bc51c7 (patch)
tree9dbf466ed1736955637959be17dd189ad8649709 /include/libssh/libssh.h
parent4c1d3b708c7bd6b52fe40dbf1a04089a1f406950 (diff)
downloadlibssh-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/libssh.h')
-rw-r--r--include/libssh/libssh.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index acf1292..0f3fcb6 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -500,11 +500,11 @@ LIBSSH_API int ssh_userauth_try_publickey(ssh_session session,
LIBSSH_API int ssh_userauth_publickey(ssh_session session,
const char *username,
const ssh_key privkey);
-
#ifndef _WIN32
-LIBSSH_API int ssh_userauth_agent_pubkey(ssh_session session, const char *username,
- ssh_public_key publickey);
+LIBSSH_API int ssh_userauth_agent(ssh_session session,
+ const char *username);
#endif
+
LIBSSH_API int ssh_userauth_autopubkey(ssh_session session, const char *passphrase);
LIBSSH_API int ssh_userauth_kbdint(ssh_session session, const char *user, const char *submethods);
LIBSSH_API const char *ssh_userauth_kbdint_getinstruction(ssh_session session);