diff options
author | emboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-18 02:32:28 +0000 |
---|---|---|
committer | emboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-18 02:32:28 +0000 |
commit | 831af844ef2d4d716da07eda331c50d1e73005e3 (patch) | |
tree | 03fc5c10b18ec318f3c2c38cb6779b3540fc4163 /test/openssl/test_ssl.rb | |
parent | c2606d23c5cb25bdddf8e32a811da773b82b2d60 (diff) | |
download | ruby-831af844ef2d4d716da07eda331c50d1e73005e3.tar.gz |
* 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
Diffstat (limited to 'test/openssl/test_ssl.rb')
-rw-r--r-- | test/openssl/test_ssl.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index d4f578a33e..cb18c1ae51 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -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 |