Skip to content

Commit bdd2056

Browse files
committed
wolfcrypt/test/test.c: fix gate in dh_test() (fixes disable-sha256).
1 parent a1fa897 commit bdd2056

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23714,7 +23714,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void)
2371423714
}
2371523715
#endif
2371623716

23717-
#if (!defined(HAVE_FIPS) || FIPS_VERSION_GE(7,0)) && \
23717+
#if !defined(WC_NO_RNG) && (!defined(HAVE_FIPS) || FIPS_VERSION_GE(7,0)) && \
2371823718
!defined(HAVE_SELFTEST)
2371923719
agreeSz = DH_TEST_BUF_SIZE;
2372023720
agreeSz2 = DH_TEST_BUF_SIZE;
@@ -23740,7 +23740,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void)
2374023740
if (XMEMCMP(agree, agree2, agreeSz) != 0) {
2374123741
ERROR_OUT(WC_TEST_RET_ENC_NC, done);
2374223742
}
23743-
#endif /* (!HAVE_FIPS || FIPS_VERSION_GE(7,0)) && !HAVE_SELFTEST */
23743+
#endif /* !WC_NO_RNG && (!HAVE_FIPS || FIPS_VERSION_GE(7,0)) && !HAVE_SELFTEST */
2374423744

2374523745
/* Test DH key import / export */
2374623746
#if defined(WOLFSSL_DH_EXTRA) && !defined(NO_FILESYSTEM) && \

0 commit comments

Comments
 (0)