Skip to content

Commit

Permalink
Force TLS version to 1.2 when using LibreSSL
Browse files Browse the repository at this point in the history
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+.
  • Loading branch information
jeremyevans committed Oct 16, 2023
1 parent 46ca992 commit 4f7ca52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/net/http/test_https.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_session_reuse
# support session resuse. Limiting the version to the TLSv1.2 stack allows
# this test to continue to work on LibreSSL 3.2+. LibreSSL may eventually
# support session reuse, but there are no current plans to do so.
http.ssl_version = :TLSv1
http.ssl_version = :TLSv1_2
end

http.start
Expand Down

0 comments on commit 4f7ca52

Please sign in to comment.