From 421826ed18bdffa53960047ebb35a6b3cdd15751 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Fri, 27 Mar 2026 00:32:40 -0400 Subject: [PATCH] better macro gating in tests --- wolfcrypt/test/test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index aec1bac63f..bd78b16358 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -32046,7 +32046,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pwdbased_test(void) if (ret != 0) return ret; #endif -#ifdef HAVE_PKCS12 +#if defined(HAVE_PKCS12) && !defined(NO_ASN) && !defined(NO_PWDBASED) && \ + !defined(NO_HMAC) && !defined(NO_CERTS) /* Test that a crafted PKCS#12 with INT_MAX MAC iterations is rejected * immediately rather than hanging in DoPKCS12Hash(). */ { @@ -32091,7 +32092,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pwdbased_test(void) } ret = 0; } -#endif /* HAVE_PKCS12 */ +#endif /* HAVE_PKCS12 && !NO_ASN && !NO_PWDBASED && !NO_HMAC && !NO_CERTS */ #ifdef HAVE_SCRYPT ret = scrypt_test(); if (ret != 0)