From aa018c1484ce053bf88dbe066988b5e39a2c0317 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 23 Aug 2011 19:01:22 +0200 Subject: auth: Make ssh_userauth_try_publickey() legacy. --- include/libssh/libsshpp.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/libssh/libsshpp.hpp') 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; } -- cgit