From fffa66698f6cdc2046dc54b5f40ecc5446cdcbca Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Sat, 2 Feb 2019 16:49:05 +0100 Subject: Allow building without Group Exchange support Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- include/libssh/crypto.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index 3ec0bc5a..4cd76ddb 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -58,9 +58,12 @@ enum ssh_key_exchange_e { SSH_KEX_DH_GROUP1_SHA1=1, /* diffie-hellman-group14-sha1 */ SSH_KEX_DH_GROUP14_SHA1, +#ifdef WITH_GEX /* diffie-hellman-group-exchange-sha1 */ SSH_KEX_DH_GEX_SHA1, + /* diffie-hellman-group-exchange-sha256 */ SSH_KEX_DH_GEX_SHA256, +#endif /* WITH_GEX */ /* ecdh-sha2-nistp256 */ SSH_KEX_ECDH_SHA2_NISTP256, /* ecdh-sha2-nistp384 */ @@ -98,7 +101,9 @@ struct ssh_crypto_struct { bignum e,f,x,k,y; bignum g, p; int dh_group_is_mutable; /* do free group parameters */ +#ifdef WITH_GEX size_t dh_pmin; int dh_pn; int dh_pmax; /* preferred group parameters */ +#endif /* WITH_GEX */ #ifdef HAVE_ECDH #ifdef HAVE_OPENSSL_ECC EC_KEY *ecdh_privkey; -- cgit v1.2.3