diff options
author | Kazuki Yamaguchi <[email protected]> | 2021-05-31 14:17:21 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <[email protected]> | 2021-10-23 13:38:39 +0900 |
commit | 47975ece4096cdab16b3f200f93ea2377dfb41ac (patch) | |
tree | 8984322a6b118d58fa087908a3688f5f8dab3b45 /test | |
parent | 95044fa13b2df0377305c747c4d2b36cbdfbb750 (diff) |
[ruby/openssl] 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
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_pkey_rsa.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_pkey_rsa.rb b/test/openssl/test_pkey_rsa.rb index 4548bdb2cf..dbe87ba4c1 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 |