aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-25 09:54:26 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-25 10:19:09 +0200
commit89253fd22a69108aa2ffe8907cdf9d2de2bcdb47 (patch)
treefb27c774644cac32c212031082107a16ffc8c448 /include
parent21261270e5facb6ae2500b8497683d9ca0933dfb (diff)
downloadlibssh-89253fd22a69108aa2ffe8907cdf9d2de2bcdb47.tar.gz
libssh-89253fd22a69108aa2ffe8907cdf9d2de2bcdb47.tar.xz
libssh-89253fd22a69108aa2ffe8907cdf9d2de2bcdb47.zip
auth: Make ssh_userauth_autopubkey legacy.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/legacy.h1
-rw-r--r--include/libssh/libssh.h1
-rw-r--r--include/libssh/libsshpp.hpp4
3 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/legacy.h b/include/libssh/legacy.h
index e951c922..c8225a29 100644
--- a/include/libssh/legacy.h
+++ b/include/libssh/legacy.h
@@ -37,6 +37,7 @@ LIBSSH_API int ssh_userauth_pubkey(ssh_session session, const char *username, ss
LIBSSH_API int ssh_userauth_agent_pubkey(ssh_session session, const char *username,
ssh_public_key publickey);
#endif
+LIBSSH_API int ssh_userauth_autopubkey(ssh_session session, const char *passphrase);
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 e23a50e1..96b69b10 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -508,7 +508,6 @@ LIBSSH_API int ssh_userauth_publickey_auto(ssh_session session,
const char *username,
const char *passphrase);
-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);
LIBSSH_API const char *ssh_userauth_kbdint_getname(ssh_session session);
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
index 70d7db03..52058717 100644
--- a/include/libssh/libsshpp.hpp
+++ b/include/libssh/libsshpp.hpp
@@ -177,8 +177,8 @@ public:
* @returns SSH_AUTH_SUCCESS, SSH_AUTH_PARTIAL, SSH_AUTH_DENIED
* @see ssh_userauth_autopubkey
*/
- int userauthAutopubkey(void){
- int ret=ssh_userauth_autopubkey(c_session,NULL);
+ int userauthPublickeyAuto(void){
+ int ret=ssh_userauth_publickey_auto(c_session, NULL, NULL);
ssh_throw(ret);
return ret;
}