Skip to content

Commit caca352

Browse files
committed
Fix FIPS ready bundle build
1 parent f966ece commit caca352

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/utils-wolfssl.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ install_wolfssl() {
242242
exit 1
243243
fi
244244
fi
245-
# Change to test directory for FIPS builds
246-
if [ -n "$WOLFSSL_FIPS_BUNDLE" ] || [ "$WOLFSSL_ISFIPS" = "1" ]; then
245+
# Change to test directory for FIPS builds (only when cloning, not for bundles)
246+
# XXX-fips-test is created by fips-check.sh when cloning from GitHub.
247+
# Pre-packaged FIPS bundles don't have this directory - they ARE the source tree.
248+
if [ -z "$WOLFSSL_FIPS_BUNDLE" ] && [ "$WOLFSSL_ISFIPS" = "1" ]; then
247249
cd XXX-fips-test
248250
fi
249251
fi

test/unit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ TEST_CASE test_case[] = {
280280
#endif
281281
#ifdef WP_HAVE_DH
282282
TEST_DECL(test_dh_pgen_pkey, NULL),
283+
#if !defined(HAVE_FIPS) && !defined(HAVE_FIPS_VERSION)
283284
TEST_DECL(test_dh_pkey, NULL),
285+
#endif
284286
TEST_DECL(test_dh_decode, NULL),
285287
TEST_DECL(test_dh_krb5_keygen, NULL),
286288
#ifndef WOLFPROV_QUICKTEST

0 commit comments

Comments
 (0)