1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-12 15:41:16 +03:00

kex: moved KEX structures to ssh_crypto_struct

This commit is contained in:
Aris Adamantiadis
2011-09-17 00:17:45 +02:00
parent 48980573c1
commit ac41a083ef
9 changed files with 50 additions and 65 deletions

View File

@@ -83,7 +83,7 @@ extern const char *supported_methods[];
*/
static int server_set_kex(ssh_session session) {
KEX *server = &session->server_kex;
KEX *server = &session->next_crypto->server_kex;
int i, j;
const char *wanted;
@@ -356,7 +356,7 @@ static void ssh_server_connection_callback(ssh_session session){
break;
case SSH_SESSION_STATE_KEXINIT_RECEIVED:
set_status(session,0.6f);
ssh_list_kex(session, &session->client_kex); // log client kex
ssh_list_kex(session, &session->next_crypto->client_kex); // log client kex
if (ssh_kex_select_methods(session) < 0) {
goto error;
}