Skip to content

Commit 97be4de

Browse files
committed
Force TLS version to 1.2 when using LibreSSL
This comment previously specified TLS 1.2, but actually set the version to TLS 1.0. LibreSSL 3.8.1 (included in OpenBSD 7.4) dropped support for TLS 1.0/1.1 for security reasons, which broke this test. Switch the test to use TLS 1.2 as documented so it will continue to work on OpenBSD 7.4+.
1 parent 46ca992 commit 97be4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/net/http/test_https.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_session_reuse
148148
# support session resuse. Limiting the version to the TLSv1.2 stack allows
149149
# this test to continue to work on LibreSSL 3.2+. LibreSSL may eventually
150150
# support session reuse, but there are no current plans to do so.
151-
http.ssl_version = :TLSv1
151+
http.ssl_version = :TLSv1_2
152152
end
153153

154154
http.start

0 commit comments

Comments
 (0)