From 8d8f4d4e1e2a5f5e6e053dda020569f8f2476cca Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 26 Apr 2024 11:29:29 +0200 Subject: [PATCH] fixup! zephyr no malloc --- wolfcrypt/test/test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 374eb987a..5dc398a91 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -1676,7 +1676,10 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\ PRIVATE_KEY_LOCK(); #endif -#if defined(HAVE_PKCS12) && defined(USE_CERT_BUFFERS_2048) +#if defined(USE_CERT_BUFFERS_2048) && \ + defined(HAVE_PKCS12) && \ + !defined(NO_ASN) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \ + !defined(NO_CERTS) if ( (ret = pkcs12_test()) != 0) TEST_FAIL("PKCS12 test failed!\n", ret); else @@ -24864,7 +24867,10 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pwdbased_test(void) #endif /* NO_PWDBASED */ -#if defined(HAVE_PKCS12) && defined(USE_CERT_BUFFERS_2048) +#if defined(USE_CERT_BUFFERS_2048) && \ + defined(HAVE_PKCS12) && \ + !defined(NO_ASN) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \ + !defined(NO_CERTS) WOLFSSL_TEST_SUBROUTINE wc_test_ret_t pkcs12_test(void) { wc_test_ret_t ret = 0;