mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Allow building without Group Exchange support
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
a170580147
commit
fffa66698f
2
src/dh.c
2
src/dh.c
@@ -673,10 +673,12 @@ int ssh_server_dh_process_init(ssh_session session, ssh_buffer packet)
|
||||
case SSH_KEX_DH_GROUP18_SHA512:
|
||||
packet_type = SSH2_MSG_KEXDH_REPLY;
|
||||
break;
|
||||
#ifdef WITH_GEX
|
||||
case SSH_KEX_DH_GEX_SHA1:
|
||||
case SSH_KEX_DH_GEX_SHA256:
|
||||
packet_type = SSH2_MSG_KEX_DH_GEX_REPLY;
|
||||
break;
|
||||
#endif /* WITH_GEX */
|
||||
default:
|
||||
ssh_set_error(session, SSH_FATAL, "Invalid kex type");
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user