diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-23 19:01:22 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-23 21:54:02 +0200 |
commit | aa018c1484ce053bf88dbe066988b5e39a2c0317 (patch) | |
tree | e33235f8ab9ea59af7d361a3655a1e5ea2f81aeb /include/libssh/libsshpp.hpp | |
parent | 37df5e17c310c438eefaf5150bad55ad12a7d64f (diff) | |
download | libssh-aa018c1484ce053bf88dbe066988b5e39a2c0317.tar.gz libssh-aa018c1484ce053bf88dbe066988b5e39a2c0317.tar.xz libssh-aa018c1484ce053bf88dbe066988b5e39a2c0317.zip |
auth: Make ssh_userauth_try_publickey() legacy.
Diffstat (limited to 'include/libssh/libsshpp.hpp')
-rw-r--r-- | include/libssh/libsshpp.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp index 03101d3..3c82e58 100644 --- a/include/libssh/libsshpp.hpp +++ b/include/libssh/libsshpp.hpp @@ -211,10 +211,10 @@ public: * @throws SshException on error * @returns SSH_AUTH_SUCCESS if the pubkey is accepted, * @returns SSH_AUTH_DENIED if the pubkey is denied - * @see ssh_userauth_offer_pubkey + * @see ssh_userauth_try_pubkey */ - int userauthOfferPubkey(int type, ssh_string pubkey){ - int ret=ssh_userauth_offer_pubkey(c_session,NULL,type,pubkey); + int userauthTryPublickey(ssh_key pubkey){ + int ret=ssh_userauth_try_publickey(c_session, NULL, pubkey); ssh_throw(ret); return ret; } |