settings.h: set HAVE_PUBLIC_FFDHE as in configure.ac (FIPS v2 and SELFTEST) if it isn't already set.

This commit is contained in:
Daniel Pouzzner
2021-10-07 18:28:11 -05:00
parent 342e319870
commit 361559ca30

View File

@@ -1987,6 +1987,12 @@ extern void uITRON4_free(void *p) ;
#define WOLFSSL_AEAD_ONLY
#endif
#if !defined(HAVE_PUBLIC_FFDHE) && !defined(NO_DH) && \
(defined(HAVE_SELFTEST) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION == 2)))
#define HAVE_PUBLIC_FFDHE
#endif
#if !defined(NO_DH) && !defined(HAVE_FFDHE)
#if defined(HAVE_FFDHE_2048) || defined(HAVE_FFDHE_3072) || \
defined(HAVE_FFDHE_4096) || defined(HAVE_FFDHE_6144) || \