mirror of https://github.com/wolfSSL/wolfssl.git
tests/api.c: add missing NO_SHA gates in test_wc_PKCS12_create().
parent
7e9460c377
commit
b06a921697
|
@ -18940,15 +18940,17 @@ static int test_wc_PKCS12_create_once(int keyEncType, int certEncType)
|
|||
static int test_wc_PKCS12_create(void)
|
||||
{
|
||||
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),
|
||||
TEST_SUCCESS);
|
||||
#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),
|
||||
TEST_SUCCESS);
|
||||
#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),
|
||||
TEST_SUCCESS);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue