]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
endecode_test.c: Avoid running the SM2 tests with 3.0.0 FIPS provider
authorTomas Mraz <tomas@openssl.org>
Thu, 29 Aug 2024 16:42:14 +0000 (18:42 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 29 Aug 2024 17:45:47 +0000 (19:45 +0200)
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)

test/endecode_test.c

index 97576cedc7433b4304a59bcb9023430ffa85fc12..8e7dc7a9eca1a6324e9dca7be5bb38230045ebc0 100644 (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);