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