From 91c7c8f9fb1ee9735f9ab9489b02e68ef88a8daa Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 24 Apr 2026 13:05:13 -0500 Subject: [PATCH] wolfcrypt/test/test.c and wolfcrypt/test/test.h: fix gating for dsa_test() and srp_test() prototypes to avoid -Wunused-function in --enable-sp-math builds. --- wolfcrypt/test/test.c | 4 ++++ wolfcrypt/test/test.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index ef8809b3a2..c2eb3a807e 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -900,8 +900,12 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t rsa_no_pad_test(void); #endif WOLFSSL_TEST_SUBROUTINE wc_test_ret_t rsa_test(void); WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void); +#ifndef NO_DSA WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dsa_test(void); +#endif +#ifdef WOLFCRYPT_HAVE_SRP WOLFSSL_TEST_SUBROUTINE wc_test_ret_t srp_test(void); +#endif #ifndef WC_NO_RNG WOLFSSL_TEST_SUBROUTINE wc_test_ret_t random_test(void); #ifdef WC_RNG_BANK_SUPPORT diff --git a/wolfcrypt/test/test.h b/wolfcrypt/test/test.h index 72b9ff586d..75ea16234a 100644 --- a/wolfcrypt/test/test.h +++ b/wolfcrypt/test/test.h @@ -237,8 +237,12 @@ extern WOLFSSL_TEST_SUBROUTINE wc_test_ret_t rsa_no_pad_test(void); #endif extern WOLFSSL_TEST_SUBROUTINE wc_test_ret_t rsa_test(void); extern WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dh_test(void); +#ifndef NO_DSA extern WOLFSSL_TEST_SUBROUTINE wc_test_ret_t dsa_test(void); +#endif +#ifdef WOLFCRYPT_HAVE_SRP extern WOLFSSL_TEST_SUBROUTINE wc_test_ret_t srp_test(void); +#endif #ifndef WC_NO_RNG extern WOLFSSL_TEST_SUBROUTINE wc_test_ret_t random_test(void); #ifdef WC_RNG_BANK_SUPPORT