diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-25 09:54:26 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-25 10:19:09 +0200 |
commit | 89253fd22a69108aa2ffe8907cdf9d2de2bcdb47 (patch) | |
tree | fb27c774644cac32c212031082107a16ffc8c448 /examples | |
parent | 21261270e5facb6ae2500b8497683d9ca0933dfb (diff) | |
download | libssh-89253fd22a69108aa2ffe8907cdf9d2de2bcdb47.tar.gz libssh-89253fd22a69108aa2ffe8907cdf9d2de2bcdb47.tar.xz libssh-89253fd22a69108aa2ffe8907cdf9d2de2bcdb47.zip |
auth: Make ssh_userauth_autopubkey legacy.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/libsshpp.cpp | 2 | ||||
-rw-r--r-- | examples/libsshpp_noexcept.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/libsshpp.cpp b/examples/libsshpp.cpp index 05fa7499..8f042a45 100644 --- a/examples/libsshpp.cpp +++ b/examples/libsshpp.cpp @@ -23,7 +23,7 @@ int main(int argc, const char **argv){ else session.setOption(SSH_OPTIONS_HOST,"localhost"); session.connect(); - session.userauthAutopubkey(); + session.userauthPublickeyAuto(); session.disconnect(); } catch (ssh::SshException e){ std::cout << "Error during connection : "; diff --git a/examples/libsshpp_noexcept.cpp b/examples/libsshpp_noexcept.cpp index 624cfe9f..eff8cc19 100644 --- a/examples/libsshpp_noexcept.cpp +++ b/examples/libsshpp_noexcept.cpp @@ -29,7 +29,7 @@ int main(int argc, const char **argv){ err=session.connect(); if(err==SSH_ERROR) goto error; - err=session.userauthAutopubkey(); + err=session.userauthPublickeyAuto(); if(err==SSH_ERROR) goto error; |