Skip to content

Commit

Permalink
endecode_test.c: Avoid running the SM2 tests with 3.0.0 FIPS provider
Browse files Browse the repository at this point in the history
Fixes openssl#25326

Reviewed-by: Richard Levitte <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
(Merged from openssl#25327)
  • Loading branch information
t8m committed Aug 29, 2024
1 parent b4e4bf2 commit 0b97a55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/endecode_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,10 @@ int setup_tests(void)
ADD_TEST_SUITE_LEGACY(ECExplicitTri2G);
# endif
# ifndef OPENSSL_NO_SM2
ADD_TEST_SUITE(SM2);
if (!is_fips_3_0_0) {
/* 3.0.0 FIPS provider imports explicit EC params and then fails. */
ADD_TEST_SUITE(SM2);
}
# endif
ADD_TEST_SUITE(ED25519);
ADD_TEST_SUITE(ED448);
Expand Down

0 comments on commit 0b97a55

Please sign in to comment.