Merge pull request #5090 from dgarske/public_dh

Fix for DH public FFDHE incorrectly getting enabled
This commit is contained in:
Kaleb Himes
2022-04-27 13:08:46 -05:00
committed by GitHub

View File

@@ -2027,7 +2027,9 @@ extern void uITRON4_free(void *p) ;
#if !defined(HAVE_PUBLIC_FFDHE) && !defined(NO_DH) && \
!defined(WOLFSSL_NO_PUBLIC_FFDHE) && \
(defined(HAVE_SELFTEST) || FIPS_VERSION_GE(2,0))
(defined(HAVE_SELFTEST) || FIPS_VERSION_LE(2,0))
/* This should only be enabled for FIPS v2 or older. It enables use of the
* older wc_Dh_ffdhe####_Get() API's */
#define HAVE_PUBLIC_FFDHE
#endif