libsshpp: Use new known hosts functions

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-06-04 11:05:36 +02:00
parent 4550c99222
commit 93781f9d5a

View File

@@ -306,9 +306,9 @@ public:
* @see ssh_is_server_known * @see ssh_is_server_known
*/ */
int isServerKnown(){ int isServerKnown(){
int ret=ssh_is_server_known(c_session); int state = ssh_session_is_known_server(c_session);
ssh_throw(ret); ssh_throw(state);
return ret; return state;
} }
void log(int priority, const char *format, ...){ void log(int priority, const char *format, ...){
char buffer[1024]; char buffer[1024];