mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in
test_tls_v1_2 to prevent upstream bug. [Bug #7197] [ruby-dev:46240] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2606d23c5
commit
831af844ef
2 changed files with 9 additions and 1 deletions
|
@ -472,7 +472,9 @@ if OpenSSL::SSL::SSLContext::METHODS.include? :TLSv1_2
|
|||
|
||||
def test_tls_v1_2
|
||||
start_server_version(:TLSv1_2) { |server, port|
|
||||
server_connect(port) { |ssl| assert_equal("TLSv1.2", ssl.ssl_version) }
|
||||
ctx = OpenSSL::SSL::SSLContext.new
|
||||
ctx.ssl_version = :TLSv1_2_client
|
||||
server_connect(port, ctx) { |ssl| assert_equal("TLSv1.2", ssl.ssl_version) }
|
||||
}
|
||||
end if OpenSSL::OPENSSL_VERSION_NUMBER > 0x10001000
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue