aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2024-05-01 01:01:30 +0900
committerKazuki Yamaguchi <k@rhe.jp>2024-05-01 01:18:12 +0900
commit3bdde7d88dc12f8e25d42c100d4f5717b1e8853c (patch)
treec58077675de45b701603604132a501e1d4ba4a16
parentee9e162de170f1af5c7c3d8cf4ecadf8d3000265 (diff)
downloadruby-openssl-ky/maint-3.0-backports.tar.gz
ssl: allow failure on test_connect_certificate_verify_failed_exception_messageky/maint-3.0-backports
[ 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 5113777e8271, but I decided not to backport the commit to the 3.0 branch because the diff doesn't apply cleanly.
-rw-r--r--test/openssl/test_ssl.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 39964bf4..7172d062 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -995,6 +995,9 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
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