8000 Revert "[ruby/openssl] Relax error message check for OpenSSL 3.1" · ruby/ruby@0ce2770 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ce2770

Browse files
committed
Revert "[ruby/openssl] Relax error message check for OpenSSL 3.1"
This reverts commit 2864f06.
1 parent 78fe0b6 commit 0ce2770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/openssl/test_ssl.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,9 @@ def test_connect_certificate_verify_failed_exception_message
998998
start_server(ignore_listener_error: true) { |port|
999999
ctx = OpenSSL::SSL::SSLContext.new
10001000
ctx.set_params
1001-
assert_raise_with_message(OpenSSL::SSL::SSLError, /certificate/) {
1001+
# OpenSSL <= 1.1.0: "self signed certificate in certificate chain"
1002+
# OpenSSL >= 3.0.0: "self-signed certificate in certificate chain"
1003+
assert_raise_with_message(OpenSSL::SSL::SSLError, /self.signed/) {
10021004
server_connect(port, ctx)
10031005
}
10041006
}

0 commit comments

Comments
 (0)
0