Skip to content

Commit

Permalink
test/openssl/test_pkey_rsa: disable test_no_private_exp on OpenSSL 3.0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhenium committed Oct 22, 2021
1 parent c732387 commit ca03c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/openssl/test_pkey_rsa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca03c9c

Please sign in to comment.