From bdd205664504dc99bd59217a16d3b18d492655e6 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 3 Jul 2025 10:19:07 -0500 Subject: [PATCH] wolfcrypt/test/test.c: fix gate in dh_test() (fixes disable-sha256). --- wolfcrypt/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 8e94dcf76..28c91de3a 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -23714,7 +23714,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void) } #endif -#if (!defined(HAVE_FIPS) || FIPS_VERSION_GE(7,0)) && \ +#if !defined(WC_NO_RNG) && (!defined(HAVE_FIPS) || FIPS_VERSION_GE(7,0)) && \ !defined(HAVE_SELFTEST) agreeSz = DH_TEST_BUF_SIZE; agreeSz2 = DH_TEST_BUF_SIZE; @@ -23740,7 +23740,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void) if (XMEMCMP(agree, agree2, agreeSz) != 0) { ERROR_OUT(WC_TEST_RET_ENC_NC, done); } -#endif /* (!HAVE_FIPS || FIPS_VERSION_GE(7,0)) && !HAVE_SELFTEST */ +#endif /* !WC_NO_RNG && (!HAVE_FIPS || FIPS_VERSION_GE(7,0)) && !HAVE_SELFTEST */ /* Test DH key import / export */ #if defined(WOLFSSL_DH_EXTRA) && !defined(NO_FILESYSTEM) && \