Skip to content

Commit

Permalink
ssl: allow failure on test_connect_certificate_verify_failed_exceptio…
Browse files Browse the repository at this point in the history
…n_message

[ This patch only applies to the 3.0 and 3.1 branch. ]

It is a test case for SSLSocket generating an informative error message
on a certificate verification failure. A change in OpenSSL 3.1 broke it
and a generic error message is currently generated.

This is fixed in the 3.2 branch by commit 5113777, but I decided
not to backport the commit to the 3.0 branch because the diff doesn't
apply cleanly.
  • Loading branch information
rhenium committed Apr 30, 2024
1 parent ee9e162 commit 3bdde7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/openssl/test_ssl.rb
Expand Up @@ -995,6 +995,9 @@ def test_verify_hostname_failure_error_code
end

def test_connect_certificate_verify_failed_exception_message
# Won't fix on the 3.0 branch
return if openssl?(3, 1, 0)

start_server(ignore_listener_error: true) { |port|
ctx = OpenSSL::SSL::SSLContext.new
ctx.set_params
Expand Down

0 comments on commit 3bdde7d

Please sign in to comment.