summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/libsshpp.cpp2
-rw-r--r--examples/libsshpp_noexcept.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/libsshpp.cpp b/examples/libsshpp.cpp
index 05fa749..8f042a4 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 624cfe9..eff8cc1 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;