aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-25 16:09:28 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-25 16:14:21 +0200
commit5c601115c3397864d650ba6e97993c815dc4d377 (patch)
tree5f9f04773c1519fbe8d6319dd8790b6797f6f2e7 /include
parent89253fd22a69108aa2ffe8907cdf9d2de2bcdb47 (diff)
downloadlibssh-5c601115c3397864d650ba6e97993c815dc4d377.tar.gz
libssh-5c601115c3397864d650ba6e97993c815dc4d377.tar.xz
libssh-5c601115c3397864d650ba6e97993c815dc4d377.zip
auth: Refactor ssh_userauth_password().
Diffstat (limited to 'include')
-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 96b69b10..843cf2da 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -461,8 +461,6 @@ LIBSSH_API int ssh_pki_export_pubkey_base64(const ssh_key key,
LIBSSH_API int ssh_pki_export_pubkey_file(const ssh_key key,
const char *filename);
-LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username,
- ssh_string publickey, ssh_key privatekey);
LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len);
LIBSSH_API int ssh_scp_accept_request(ssh_scp scp);
LIBSSH_API int ssh_scp_close(ssh_scp scp);
@@ -507,6 +505,9 @@ LIBSSH_API int ssh_userauth_agent(ssh_session session,
LIBSSH_API int ssh_userauth_publickey_auto(ssh_session session,
const char *username,
const char *passphrase);
+LIBSSH_API int ssh_userauth_password(ssh_session session,
+ const char *username,
+ const char *password);
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);
@@ -517,7 +518,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_password(ssh_session session, const char *username, const char *password);
LIBSSH_API int ssh_userauth_privatekey_file(ssh_session session, const char *username,
const char *filename, const char *passphrase);
LIBSSH_API const char *ssh_version(int req_version);