From 7ecfc422bfcdda838fff7ce1498996b4e89c39d6 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 25 Nov 2024 10:58:56 +0100 Subject: [PATCH] Skip Asymmetric RSA corruption test for >=3.5 FIPS provider Reviewed-by: Paul Dale Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/26049) (cherry picked from commit e50d4bac9d9018f09427f4600062a7415c1bdfc8) --- test/recipes/03-test_fipsinstall.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/recipes/03-test_fipsinstall.t b/test/recipes/03-test_fipsinstall.t index 56a33d76436..0c503c77f84 100644 --- a/test/recipes/03-test_fipsinstall.t +++ b/test/recipes/03-test_fipsinstall.t @@ -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'])), -- 2.47.2