aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-05-31 14:17:21 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-10-22 17:16:07 +0900
commitca03c9c07068bc197f5146b537a1b31541ba2961 (patch)
treed9d79247db9b84ccfc15ef6d96b52ef88832698d /test
parentc732387ee5aaa8c5a9717e8b3ffebb3d7430e99a (diff)
downloadruby-openssl-ca03c9c07068bc197f5146b537a1b31541ba2961.tar.gz
test/openssl/test_pkey_rsa: disable test_no_private_exp on OpenSSL 3.0ky/ssl-test-assume-ec-support
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.
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_pkey_rsa.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_pkey_rsa.rb b/test/openssl/test_pkey_rsa.rb
index 4548bdb2..dbe87ba4 100644
--- a/test/openssl/test_pkey_rsa.rb
+++ b/test/openssl/test_pkey_rsa.rb
@@ -11,7 +11,7 @@ class OpenSSL::TestPKeyRSA < OpenSSL::PKeyTestCase
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