]> 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 09:04:29 +0000 (10:04 +0100)
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26049)

(cherry picked from commit e50d4bac9d9018f09427f4600062a7415c1bdfc8)

test/recipes/03-test_fipsinstall.t

index 56a33d76436484202d1b5643a24bcfbe82414770..0c503c77f848fefb8bac2aae8497e02899829b9e 100644 (file)
@@ -291,6 +291,10 @@ SKIP: {
 SKIP: {
     skip "Skipping Asymmetric RSA corruption test because of no rsa in this build", 1
         if disabled("rsa");
+    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'])),