Skip to content

Commit b2bc245

Browse files
committed
tests/ecc: guard EccDecisionCoverage3 against FIPS/selftest builds
test_wc_EccDecisionCoverage3 calls wc_ecc_import_unsigned and wc_ecc_rs_raw_to_sig, which are not available in the frozen CAVP-selftest wolfCrypt module (their declarations are gated off by the minimal selftest feature config), so the CAVP-selftest CI leg fails to compile them under -Werror. Exclude the function from HAVE_SELFTEST / HAVE_FIPS builds, matching the sibling EccDecisionCoverage functions. This class is only visible via an actual --enable-selftest compile, not a header symbol diff.
1 parent 83eaac4 commit b2bc245

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/api/test_ecc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,8 @@ int test_wc_EccDecisionCoverage3(void)
25062506
EXPECT_DECLS;
25072507
#if defined(HAVE_ECC) && !defined(WC_NO_RNG) && \
25082508
!defined(WOLF_CRYPTO_CB_ONLY_ECC) && !defined(WOLFSSL_ATECC508A) && \
2509-
!defined(WOLFSSL_ATECC608A) && !defined(WOLFSSL_MICROCHIP_TA100)
2509+
!defined(WOLFSSL_ATECC608A) && !defined(WOLFSSL_MICROCHIP_TA100) && \
2510+
!defined(HAVE_SELFTEST) && !defined(HAVE_FIPS)
25102511
WC_RNG rng;
25112512
ecc_key key;
25122513
int ret;

0 commit comments

Comments
 (0)