From 8e89e31f702a153d43a55ad905c3c8d07ddeaf4d Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Wed, 12 Jul 2023 07:33:36 +1000 Subject: [PATCH] test.c: fix protection around calling mp_test_div Caller of mp_test_div() had different #ifdef protection declaration. Made them the same. --- wolfcrypt/test/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 728935c8e..cf439f9f1 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -44715,7 +44715,9 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t mp_test(void) if ((ret = mp_test_set_is_bit(a)) != 0) goto done; #endif -#if defined(WOLFSSL_SP_MATH) || defined(WOLFSSL_SP_MATH_ALL) +#if defined(WOLFSSL_SP_MATH_ALL) || !defined(NO_DH) || defined(HAVE_ECC) || \ + (!defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY) && \ + !defined(WOLFSSL_RSA_PUBLIC_ONLY)) if ((ret = mp_test_div(a, b, r1, r2, &rng)) != 0) goto done; #endif