]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Skip Asymmetric RSA corruption test for >=3.5 FIPS provider
authorTomas Mraz <tomas@openssl.org>
Mon, 25 Nov 2024 09:58:56 +0000 (10:58 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 27 Nov 2024 08:59:37 +0000 (09:59 +0100)
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26049)

test/recipes/03-test_fipsinstall.t

index 4965b9e63dbbd26f5703ce17ff7eadf8e39f98b1..c873dc18ebb340118ba7b32151b7fc40f87723fb 100644 (file)
@@ -337,6 +337,10 @@ SKIP: {
 SKIP: {
     skip "Skipping Asymmetric RSA corruption test because of no rsa in this build", 1
         if disabled("rsa") || disabled("fips-post");
+    run(test(["fips_version_test", "-config", $provconf, "<3.5.0"]),
+             capture => 1, statusvar => \my $exit);
+    skip "FIPS provider version is too new for Asymmetric RSA corruption test", 1
+        if !$exit;
     ok(!run(app(['openssl', 'fipsinstall', '-out', 'fips.cnf', '-module', $infile,
                 '-corrupt_desc', 'RSA_Encrypt',
                 '-corrupt_type', 'KAT_AsymmetricCipher'])),