tests: Call ssh_session_is_known_server()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
1ae014f52a
Коммит
e880cafed0
@ -88,8 +88,8 @@ SSH_SESSION *connect_host(const char *hostname){
|
||||
ssh_disconnect(session);
|
||||
return NULL;
|
||||
}
|
||||
state=ssh_is_server_known(session);
|
||||
|
||||
state = ssh_session_is_known_server(session);
|
||||
switch(state){
|
||||
case SSH_SERVER_KNOWN_OK:
|
||||
break; /* ok */
|
||||
|
@ -18,7 +18,7 @@ void do_connect(SSH_SESSION *session) {
|
||||
}
|
||||
printf("Connected\n");
|
||||
|
||||
ssh_is_server_known(session);
|
||||
ssh_session_is_known_server(session);
|
||||
|
||||
error = authenticate(session);
|
||||
if(error != SSH_AUTH_SUCCESS) {
|
||||
|
@ -14,7 +14,7 @@ void do_connect(SSH_SESSION *session){
|
||||
return;
|
||||
}
|
||||
printf("Connected\n");
|
||||
ssh_is_server_known(session);
|
||||
ssh_session_is_known_server(session);
|
||||
// we don't care what happens here
|
||||
error=authenticate(session);
|
||||
if(error != SSH_AUTH_SUCCESS){
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user