aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-04 11:05:36 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-04 11:20:28 +0200
commit93781f9d5a2ee60520716610131e5642bb07ca92 (patch)
tree362e5cf13873710381b5fd75b22ba9a0216ad5bf /include/libssh
parent4550c99222603e7a1a803e5e48d1b1de3f0fef37 (diff)
downloadlibssh-93781f9d5a2ee60520716610131e5642bb07ca92.tar.gz
libssh-93781f9d5a2ee60520716610131e5642bb07ca92.tar.xz
libssh-93781f9d5a2ee60520716610131e5642bb07ca92.zip
libsshpp: Use new known hosts functions
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libsshpp.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
index af08a914..b8652f73 100644
--- a/include/libssh/libsshpp.hpp
+++ b/include/libssh/libsshpp.hpp
@@ -306,9 +306,9 @@ public:
* @see ssh_is_server_known
*/
int isServerKnown(){
- int ret=ssh_is_server_known(c_session);
- ssh_throw(ret);
- return ret;
+ int state = ssh_session_is_known_server(c_session);
+ ssh_throw(state);
+ return state;
}
void log(int priority, const char *format, ...){
char buffer[1024];