You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
8 months ago
|
From 47975ece4096cdab16b3f200f93ea2377dfb41ac Mon Sep 17 00:00:00 2001
|
||
|
From: Kazuki Yamaguchi <k@rhe.jp>
|
||
|
Date: Mon, 31 May 2021 14:17:21 +0900
|
||
|
Subject: [PATCH] test/openssl/test_pkey_rsa: disable test_no_private_exp on
|
||
|
OpenSSL 3.0
|
||
|
|
||
|
OpenSSL::PKey::RSA#set_key does not exist when built with OpenSSL 3.0,
|
||
|
so it is not possible to create an RSA object with incomplete state.
|
||
|
|
||
|
https://github.com/ruby/openssl/commit/ca03c9c070
|
||
|
---
|
||
|
test/openssl/test_pkey_rsa.rb | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/test/openssl/test_pkey_rsa.rb b/test/openssl/test_pkey_rsa.rb
|
||
|
index 4548bdb2cfa6..dbe87ba4c1b0 100644
|
||
|
--- a/test/openssl/test_pkey_rsa.rb
|
||
|
+++ b/test/openssl/test_pkey_rsa.rb
|
||
|
@@ -11,7 +11,7 @@ def test_no_private_exp
|
||
|
key.set_factors(rsa.p, rsa.q)
|
||
|
assert_raise(OpenSSL::PKey::RSAError){ key.private_encrypt("foo") }
|
||
|
assert_raise(OpenSSL::PKey::RSAError){ key.private_decrypt("foo") }
|
||
|
- end
|
||
|
+ end if !openssl?(3, 0, 0) # Impossible state in OpenSSL 3.0
|
||
|
|
||
|
def test_private
|
||
|
# Generated by key size and public exponent
|