fix prb failures

This commit is contained in:
HIDEKI MIYAZAKI
2026-05-20 17:31:08 -07:00
parent 03eb38e897
commit afb3ca4b77
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -2950,6 +2950,7 @@ if(WOLFSSL_EXAMPLES)
tests/api/test_asn.c
tests/api/test_pkcs7.c
tests/api/test_pkcs12.c
tests/api/test_pwdbased.c
tests/api/test_ossl_asn1.c
tests/api/test_ossl_bio.c
tests/api/test_ossl_bn.c
+4 -3
View File
@@ -28,7 +28,8 @@
int test_wc_PBKDF1_ex_iterations(void)
{
EXPECT_DECLS;
#if defined(HAVE_PBKDF1) && !defined(NO_SHA) && !defined(HAVE_SELFTEST)
#if defined(HAVE_PBKDF1) && !defined(NO_PWDBASED) && !defined(NO_SHA) && \
!defined(HAVE_SELFTEST)
static const byte passwd[] = { 'p', 'a', 's', 's' };
static const byte salt[] = { 0x78, 0x57, 0x8E, 0x5a,
0x5d, 0x63, 0xcb, 0x06 };
@@ -50,8 +51,8 @@ int test_wc_PBKDF1_ex_iterations(void)
int test_wc_PBKDF2_ex_iterations(void)
{
EXPECT_DECLS;
#if defined(HAVE_PBKDF2) && !defined(NO_HMAC) && !defined(NO_SHA256) && \
!defined(HAVE_SELFTEST) && \
#if defined(HAVE_PBKDF2) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \
!defined(NO_SHA256) && !defined(HAVE_SELFTEST) && \
(!defined(HAVE_FIPS) || FIPS_VERSION3_GE(7,0,0))
static const byte passwd[] = { 'p', 'a', 's', 's' };
static const byte salt[] = { 0x78, 0x57, 0x8E, 0x5a,