ruby-changes:40559
From: usa <ko1@a...>
Date: Wed, 18 Nov 2015 20:13:22 +0900 (JST)
Subject: [ruby-changes:40559] usa:r52638 (ruby_2_1): merge revision(s) 51569, 51649: [Backport #11367]
usa 2015-11-18 20:13:07 +0900 (Wed, 18 Nov 2015) New Revision: 52638 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52638 Log: merge revision(s) 51569,51649: [Backport #11367] test_ssl_session.rb: check SSL method * test/openssl/test_ssl_session.rb (test_ctx_server_session_cb): ensure the method to be tested is supported. * test/openssl/test_ssl_session.rb: Fix tests so that they take in to account OpenSSL installations that have SSLv3 disabled by default. Thanks Jeremy Evans <code@j...> for the patches. [Bug #11366] [Bug #11367] Modified directories: branches/ruby_2_1/ Modified files: branches/ruby_2_1/ChangeLog branches/ruby_2_1/test/openssl/test_ssl_session.rb branches/ruby_2_1/version.h Index: ruby_2_1/ChangeLog =================================================================== --- ruby_2_1/ChangeLog (revision 52637) +++ ruby_2_1/ChangeLog (revision 52638) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ChangeLog#L1 +Wed Nov 18 20:10:31 2015 Aaron Patterson <tenderlove@r...> + + * test/openssl/test_ssl_session.rb: Fix tests so that they take in to + account OpenSSL installations that have SSLv3 disabled by default. + Thanks Jeremy Evans <code@j...> for the patches. + [Bug #11366] [Bug #11367] + Wed Nov 18 20:04:50 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> * test/openssl/test_ssl_session.rb (OpenSSL#test_ctx_client_session_cb): Index: ruby_2_1/version.h =================================================================== --- ruby_2_1/version.h (revision 52637) +++ ruby_2_1/version.h (revision 52638) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1 #define RUBY_VERSION "2.1.8" #define RUBY_RELEASE_DATE "2015-11-18" -#define RUBY_PATCHLEVEL 413 +#define RUBY_PATCHLEVEL 414 #define RUBY_RELEASE_YEAR 2015 #define RUBY_RELEASE_MONTH 11 Index: ruby_2_1/test/openssl/test_ssl_session.rb =================================================================== --- ruby_2_1/test/openssl/test_ssl_session.rb (revision 52637) +++ ruby_2_1/test/openssl/test_ssl_session.rb (revision 52638) @@ -307,6 +307,7 @@ __EOS__ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/test/openssl/test_ssl_session.rb#L307 ctx_proc = Proc.new { |ctx, ssl| ctx.session_cache_mode = OpenSSL::SSL::SSLContext::SESSION_CACHE_SERVER + ctx.options = OpenSSL::SSL::OP_NO_TICKET last_server_session = nil # get_cb is called whenever a client proposed to resume a session but @@ -345,7 +346,7 @@ __EOS__ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/test/openssl/test_ssl_session.rb#L346 last_client_session = nil 3.times do sock = TCPSocket.new("127.0.0.1", port) - ssl = OpenSSL::SSL::SSLSocket.new(sock, OpenSSL::SSL::SSLContext.new("SSLv3")) + ssl = OpenSSL::SSL::SSLSocket.new(sock, OpenSSL::SSL::SSLContext.new()) ssl.sync_close = true ssl.session = last_client_session if last_client_session ssl.connect Property changes on: ruby_2_1 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r51569 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/