Skip to content

Commit 728d695

Browse files
committed
better macro gating in tests
1 parent 8fa5217 commit 728d695

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30493,7 +30493,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pwdbased_test(void)
3049330493
if (ret != 0)
3049430494
return ret;
3049530495
#endif
30496-
#ifdef HAVE_PKCS12
30496+
#if defined(HAVE_PKCS12) && !defined(NO_ASN) && !defined(NO_PWDBASED) && \
30497+
!defined(NO_HMAC) && !defined(NO_CERTS)
3049730498
/* Test that a crafted PKCS#12 with INT_MAX MAC iterations is rejected
3049830499
* immediately rather than hanging in DoPKCS12Hash(). */
3049930500
{
@@ -30538,7 +30539,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pwdbased_test(void)
3053830539
}
3053930540
ret = 0;
3054030541
}
30541-
#endif /* HAVE_PKCS12 */
30542+
#endif /* HAVE_PKCS12 && !NO_ASN && !NO_PWDBASED && !NO_HMAC && !NO_CERTS */
3054230543
#ifdef HAVE_SCRYPT
3054330544
ret = scrypt_test();
3054430545
if (ret != 0)

0 commit comments

Comments
 (0)