aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-23 18:44:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-23 21:54:01 +0200
commit609f8fbb7a74f47b935da1f0731f943a94e1c92a (patch)
treee9486923424f54cc4365bfc8c96a468c9b7fb3f1 /include/libssh/libssh.h
parent5b706c7ab68e8e7c17fad6b6c58106ed0781f930 (diff)
downloadlibssh-609f8fbb7a74f47b935da1f0731f943a94e1c92a.tar.gz
libssh-609f8fbb7a74f47b935da1f0731f943a94e1c92a.tar.xz
libssh-609f8fbb7a74f47b935da1f0731f943a94e1c92a.zip
auth: Add ssh_userauth_try_publickey().
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index a5ea961..f37f839 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -490,6 +490,14 @@ LIBSSH_API void ssh_set_fd_toread(ssh_session session);
LIBSSH_API void ssh_set_fd_towrite(ssh_session session);
LIBSSH_API void ssh_silent_disconnect(ssh_session session);
LIBSSH_API int ssh_set_pcap_file(ssh_session session, ssh_pcap_file pcapfile);
+
+/* USERAUTH */
+LIBSSH_API int ssh_userauth_none(ssh_session session, const char *username);
+LIBSSH_API int ssh_userauth_list(ssh_session session, const char *username);
+LIBSSH_API int ssh_userauth_try_publickey(ssh_session session,
+ const char *username,
+ const ssh_key pubkey);
+
#ifndef _WIN32
LIBSSH_API int ssh_userauth_agent_pubkey(ssh_session session, const char *username,
ssh_public_key publickey);
@@ -504,8 +512,6 @@ LIBSSH_API int ssh_userauth_kbdint_getnanswers(ssh_session session);
LIBSSH_API const char *ssh_userauth_kbdint_getanswer(ssh_session session, unsigned int i);
LIBSSH_API int ssh_userauth_kbdint_setanswer(ssh_session session, unsigned int i,
const char *answer);
-LIBSSH_API int ssh_userauth_list(ssh_session session, const char *username);
-LIBSSH_API int ssh_userauth_none(ssh_session session, const char *username);
LIBSSH_API int ssh_userauth_offer_pubkey(ssh_session session, const char *username, int type, ssh_string publickey);
LIBSSH_API int ssh_userauth_password(ssh_session session, const char *username, const char *password);
LIBSSH_API int ssh_userauth_pubkey(ssh_session session, const char *username, ssh_string publickey, ssh_private_key privatekey);