diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-23 20:23:14 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-23 21:54:02 +0200 |
commit | 4c1d3b708c7bd6b52fe40dbf1a04089a1f406950 (patch) | |
tree | 5780d716038cb0ce2df152ed0b575d72f0b03a71 /include/libssh/libsshpp.hpp | |
parent | 379d65eaaf14c7ad699bb3752a5866ccb614f1af (diff) | |
download | libssh-4c1d3b708c7bd6b52fe40dbf1a04089a1f406950.tar.gz libssh-4c1d3b708c7bd6b52fe40dbf1a04089a1f406950.tar.xz libssh-4c1d3b708c7bd6b52fe40dbf1a04089a1f406950.zip |
auth: Make ssh_userauth_pubkey legacy.
Diffstat (limited to 'include/libssh/libsshpp.hpp')
-rw-r--r-- | include/libssh/libsshpp.hpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp index 3c82e58..70d7db0 100644 --- a/include/libssh/libsshpp.hpp +++ b/include/libssh/libsshpp.hpp @@ -219,19 +219,13 @@ public: return ret; } /** @brief Authenticates using the publickey method. - * @param[in] pubkey public key to use for authentication * @param[in] privkey private key to use for authentication * @throws SshException on error * @returns SSH_AUTH_SUCCESS, SSH_AUTH_PARTIAL, SSH_AUTH_DENIED * @see ssh_userauth_pubkey */ - int userauthPubkey(ssh_string pubkey, ssh_private_key privkey){ - int ret=ssh_userauth_pubkey(c_session,NULL,pubkey,privkey); - ssh_throw(ret); - return ret; - } - int userauthPubkey(ssh_private_key privkey){ - int ret=ssh_userauth_pubkey(c_session,NULL,NULL,privkey); + int userauthPublickey(ssh_key privkey){ + int ret=ssh_userauth_publickey(c_session, NULL, privkey); ssh_throw(ret); return ret; } |