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

dh: Add support for diffie-hellman-group14-sha1.

This commit is contained in:
Dmitriy Kuznetsov
2012-09-04 16:16:15 +02:00
committed by Andreas Schneider
parent 977951e96a
commit e689375e45
7 changed files with 92 additions and 22 deletions

View File

@@ -194,6 +194,7 @@ static int dh_handshake(ssh_session session) {
case DH_STATE_INIT:
switch(session->next_crypto->kex_type){
case SSH_KEX_DH_GROUP1_SHA1:
case SSH_KEX_DH_GROUP14_SHA1:
rc = ssh_client_dh_init(session);
break;
#ifdef HAVE_ECDH