]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
sslapitest.c: Skip test_ssl_trace() with FIPS providers older than 3.5
authorTomas Mraz <tomas@openssl.org>
Sat, 20 Sep 2025 14:52:07 +0000 (16:52 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 23 Sep 2025 14:39:04 +0000 (16:39 +0200)
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28627)

(cherry picked from commit bb8bbdcfaa89741321a00dc9a97e9d513eb037ff)

test/sslapitest.c

index b3e4c14149505ba4b6fab324902a3d9dddacaa2a..9c51fb055db246ed0c59ae06844af7e073b0129d 100644 (file)
@@ -13758,6 +13758,9 @@ static int test_ssl_trace(void)
     char *grouplist = "MLKEM512:MLKEM768:MLKEM1024:X25519MLKEM768:SecP256r1MLKEM768"
         ":SecP384r1MLKEM1024:secp521r1:secp384r1:secp256r1";
 
+    if (!fips_provider_version_ge(libctx, 3, 5, 0))
+        return TEST_skip("FIPS provider does not support MLKEM algorithms");
+
     if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(),
                                        TLS_client_method(),
                                        TLS1_3_VERSION, TLS1_3_VERSION,