Merge pull request #4150 from elms/fix/sniffer_no_dh

Fix build with `--enable-sniffer --disable-dh`
This commit is contained in:
David Garske
2021-06-21 12:47:58 -07:00
committed by GitHub

View File

@@ -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