Skip to content

Commit 038b49e

Browse files
terceirorhenium
authored andcommitted
test/test_ssl: explicitly accept TLS 1.1 in corresponding test
OpenSSL in Debian sid has recently disabled TLS < 1.2 by default, so in order to test that TLS 1.1 works, we need to explicitly make our test client accept it.
1 parent a2971e7 commit 038b49e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_ssl.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,8 @@ def test_forbid_ssl_v3_from_server
779779

780780
def test_tls_v1_1
781781
start_server_version(:TLSv1_1) { |port|
782-
server_connect(port) { |ssl| assert_equal("TLSv1.1", ssl.ssl_version) }
782+
ctx = OpenSSL::SSL::SSLContext.new(:TLSv1_1)
783+
server_connect(port, ctx) { |ssl| assert_equal("TLSv1.1", ssl.ssl_version) }
783784
}
784785
end
785786

0 commit comments

Comments
 (0)