Skip to content

Commit afb3ca4

Browse files
committed
fix prb failures
1 parent 03eb38e commit afb3ca4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2950,6 +2950,7 @@ if(WOLFSSL_EXAMPLES)
29502950
tests/api/test_asn.c
29512951
tests/api/test_pkcs7.c
29522952
tests/api/test_pkcs12.c
2953+
tests/api/test_pwdbased.c
29532954
tests/api/test_ossl_asn1.c
29542955
tests/api/test_ossl_bio.c
29552956
tests/api/test_ossl_bn.c

tests/api/test_pwdbased.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
int test_wc_PBKDF1_ex_iterations(void)
2929
{
3030
EXPECT_DECLS;
31-
#if defined(HAVE_PBKDF1) && !defined(NO_SHA) && !defined(HAVE_SELFTEST)
31+
#if defined(HAVE_PBKDF1) && !defined(NO_PWDBASED) && !defined(NO_SHA) && \
32+
!defined(HAVE_SELFTEST)
3233
static const byte passwd[] = { 'p', 'a', 's', 's' };
3334
static const byte salt[] = { 0x78, 0x57, 0x8E, 0x5a,
3435
0x5d, 0x63, 0xcb, 0x06 };
@@ -50,8 +51,8 @@ int test_wc_PBKDF1_ex_iterations(void)
5051
int test_wc_PBKDF2_ex_iterations(void)
5152
{
5253
EXPECT_DECLS;
53-
#if defined(HAVE_PBKDF2) && !defined(NO_HMAC) && !defined(NO_SHA256) && \
54-
!defined(HAVE_SELFTEST) && \
54+
#if defined(HAVE_PBKDF2) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \
55+
!defined(NO_SHA256) && !defined(HAVE_SELFTEST) && \
5556
(!defined(HAVE_FIPS) || FIPS_VERSION3_GE(7,0,0))
5657
static const byte passwd[] = { 'p', 'a', 's', 's' };
5758
static const byte salt[] = { 0x78, 0x57, 0x8E, 0x5a,

0 commit comments

Comments
 (0)