diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2023-10-16 12:58:55 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-10-16 20:23:50 +0000 |
| commit | 3dec5dc3462286cdbdb53e496e6175a82bdc39b7 (patch) | |
| tree | b87268d69f3fc2e7d836236b89f5a7e310cfbc22 /test | |
| parent | 10d88ec9c3bbc93b83b2ea5e93cb781fbf42f0be (diff) | |
[ruby/net-http] 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+.
https://github.com/ruby/net-http/commit/97be4de53a
Diffstat (limited to 'test')
| -rw-r--r-- | test/net/http/test_https.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb index 72a69af1a5..2fb895a8ae 100644 --- a/test/net/http/test_https.rb +++ b/test/net/http/test_https.rb @@ -148,7 +148,7 @@ class TestNetHTTPS < Test::Unit::TestCase # 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 |
