From a409e7c9ce3ba54ef98c8ef7eb180260c3771e0c Mon Sep 17 00:00:00 2001 From: Elms Date: Mon, 21 Jun 2021 09:42:51 -0700 Subject: [PATCH] Fix build with `--enable-sniffer --disable-dh` --- wolfssl/wolfcrypt/settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 3787cf36c..76557b69c 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -2452,7 +2452,7 @@ extern void uITRON4_free(void *p) ; /* Enable DH Extra for QT, openssl all, openssh and static ephemeral */ /* Allows export/import of DH key and params as DER */ -#if !defined(WOLFSSL_DH_EXTRA) && \ +#if !defined(NO_DH) && !defined(WOLFSSL_DH_EXTRA) && \ (defined(WOLFSSL_QT) || defined(OPENSSL_ALL) || defined(WOLFSSL_OPENSSH) || \ defined(WOLFSSL_STATIC_EPHEMERAL)) #define WOLFSSL_DH_EXTRA