summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/agent.h10
-rw-r--r--include/libssh/legacy.h4
-rw-r--r--include/libssh/libssh.h6
3 files changed, 12 insertions, 8 deletions
diff --git a/include/libssh/agent.h b/include/libssh/agent.h
index 2a0f229..16dc714 100644
--- a/include/libssh/agent.h
+++ b/include/libssh/agent.h
@@ -80,13 +80,13 @@ void agent_free(struct ssh_agent_struct *agent);
*/
int agent_is_running(struct ssh_session_struct *session);
-int agent_get_ident_count(struct ssh_session_struct *session);
+int ssh_agent_get_ident_count(struct ssh_session_struct *session);
-struct ssh_public_key_struct *agent_get_next_ident(struct ssh_session_struct *session,
- char **comment);
+ssh_key ssh_agent_get_next_ident(struct ssh_session_struct *session,
+ char **comment);
-struct ssh_public_key_struct *agent_get_first_ident(struct ssh_session_struct *session,
- char **comment);
+ssh_key ssh_agent_get_first_ident(struct ssh_session_struct *session,
+ char **comment);
ssh_string agent_sign_data(struct ssh_session_struct *session,
struct ssh_buffer_struct *data,
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);
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);