endecode_test.c: Avoid running the SM2 tests with 3.0.0 FIPS provider

Fixes #25326

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25327)
This commit is contained in:
Tomas Mraz 2024-08-29 18:42:14 +02:00
parent b4e4bf29ba
commit 0b97a5505e

View File

@ -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);