aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r--test/openssl/utils.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index f00084ff..c6521ca0 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -143,6 +143,22 @@ module OpenSSL::TestUtils
return false unless version
!major || (version.map(&:to_i) <=> [major, minor, fix]) >= 0
end
+
+ # OpenSSL 3: x25519 a decode from and then encode to a pem file corrupts the
+ # key if fips+base provider is used
+ # This issue happens in OpenSSL between 3.0,0 and 3.0.10 or between 3.1.0 and
+ # 3.1.2.
+ # https://github.com/openssl/openssl/issues/21493
+ # https://github.com/openssl/openssl/pull/21519
+ def pend_on_openssl_issue_21493
+ if OpenSSL.fips_mode &&
+ (
+ (openssl?(3, 0, 0, 0) && !openssl?(3, 0, 0, 11)) ||
+ (openssl?(3, 1, 0, 0) && !openssl?(3, 1, 0, 3))
+ )
+ pend('See <https://github.com/openssl/openssl/issues/21493>')
+ end
+ end
end
class OpenSSL::TestCase < Test::Unit::TestCase