diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b7ca4492d..503f94946a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/tests/api/test_pwdbased.c b/tests/api/test_pwdbased.c index cdd561b154..7facfd2005 100644 --- a/tests/api/test_pwdbased.c +++ b/tests/api/test_pwdbased.c @@ -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,