[前][次][番号順一覧][スレッド一覧]

ruby-changes:26385

From: emboss <ko1@a...>
Date: Tue, 18 Dec 2012 11:32:42 +0900 (JST)
Subject: [ruby-changes:26385] emboss:r38436 (trunk): * test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in

emboss	2012-12-18 11:32:28 +0900 (Tue, 18 Dec 2012)

  New Revision: 38436

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38436

  Log:
    * test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in
      test_tls_v1_2 to prevent upstream bug.
      [Bug #7197] [ruby-dev:46240]

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_ssl.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38435)
+++ ChangeLog	(revision 38436)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Dec 18 12:28:52 2012  Martin Bosslet  <Martin.Bosslet@g...>
+
+	* test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in
+	  test_tls_v1_2 to prevent upstream bug.
+	  [Bug #7197] [ruby-dev:46240]
+
 Tue Dec 18 11:52:34 2012  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* ext/openssl/lib/ssl.rb: Enable insertion of empty fragments as a
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb	(revision 38435)
+++ test/openssl/test_ssl.rb	(revision 38436)
@@ -472,7 +472,9 @@ if OpenSSL::SSL::SSLContext::METHODS.inc https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl.rb#L472
 
   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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]