Merge pull request #3338 from SparkiDev/dh_fips3

DH EXTRA test: Disable DH test unless not FIPS or FIPS > 2
This commit is contained in:
toddouska
2020-09-25 12:42:40 -07:00
committed by GitHub

View File

@@ -14913,7 +14913,8 @@ static int dh_test(void)
#endif
/* Test DH key import / export */
#ifdef WOLFSSL_DH_EXTRA
#if defined(WOLFSSL_DH_EXTRA) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2)))
wc_FreeDhKey(key);
ret = wc_InitDhKey_ex(key, HEAP_HINT, devId);
if (ret != 0) {