tests/api.c: add missing NO_SHA gates in test_wc_PKCS12_create().

This commit is contained in:
Daniel Pouzzner
2025-05-22 14:56:31 -05:00
parent 7e9460c377
commit b06a921697

View File

@@ -18940,15 +18940,17 @@ static int test_wc_PKCS12_create_once(int keyEncType, int certEncType)
static int test_wc_PKCS12_create(void) static int test_wc_PKCS12_create(void)
{ {
EXPECT_DECLS; EXPECT_DECLS;
#if !defined(NO_DES3) #if !defined(NO_DES3) && !defined(NO_SHA)
ExpectIntEQ(test_wc_PKCS12_create_once(PBE_SHA1_DES3, PBE_SHA1_DES3), ExpectIntEQ(test_wc_PKCS12_create_once(PBE_SHA1_DES3, PBE_SHA1_DES3),
TEST_SUCCESS); TEST_SUCCESS);
#endif #endif
#if defined(HAVE_AES_CBC) && !defined(NO_AES_256) && !defined(NO_DES3) #if defined(HAVE_AES_CBC) && !defined(NO_AES_256) && !defined(NO_DES3) && \
!defined(NO_SHA)
ExpectIntEQ(test_wc_PKCS12_create_once(PBE_AES256_CBC, PBE_SHA1_DES3), ExpectIntEQ(test_wc_PKCS12_create_once(PBE_AES256_CBC, PBE_SHA1_DES3),
TEST_SUCCESS); TEST_SUCCESS);
#endif #endif
#if defined(HAVE_AES_CBC) && !defined(NO_AES_128) && !defined(NO_DES3) #if defined(HAVE_AES_CBC) && !defined(NO_AES_128) && !defined(NO_DES3) && \
!defined(NO_SHA)
ExpectIntEQ(test_wc_PKCS12_create_once(PBE_AES128_CBC, PBE_SHA1_DES3), ExpectIntEQ(test_wc_PKCS12_create_once(PBE_AES128_CBC, PBE_SHA1_DES3),
TEST_SUCCESS); TEST_SUCCESS);
#endif #endif