Skip to content

Commit ca03c9c

Browse files
committed
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.
1 parent c732387 commit ca03c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/openssl/test_pkey_rsa.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_no_private_exp
1111
key.set_factors(rsa.p, rsa.q)
1212
assert_raise(OpenSSL::PKey::RSAError){ key.private_encrypt("foo") }
1313
assert_raise(OpenSSL::PKey::RSAError){ key.private_decrypt("foo") }
14-
end
14+
end if !openssl?(3, 0, 0) # Impossible state in OpenSSL 3.0
1515

1616
def test_private
1717
# Generated by key size and public exponent

0 commit comments

Comments
 (0)