1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

Implement key re-exchange

This commit is contained in:
Aris Adamantiadis
2012-12-23 23:09:50 +01:00
parent e934ab0816
commit 63c3f0e736
8 changed files with 48 additions and 14 deletions

View File

@@ -409,7 +409,10 @@ static void ssh_client_connection_callback(ssh_session session){
if(session->dh_handshake_state==DH_STATE_FINISHED){
set_status(session,1.0f);
session->connected = 1;
session->session_state=SSH_SESSION_STATE_AUTHENTICATING;
if (session->flags & SSH_SESSION_FLAG_AUTHENTICATED)
session->session_state = SSH_SESSION_STATE_AUTHENTICATED;
else
session->session_state=SSH_SESSION_STATE_AUTHENTICATING;
}
break;
case SSH_SESSION_STATE_AUTHENTICATING: