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

ruby-changes:38891

From: nobu <ko1@a...>
Date: Fri, 19 Jun 2015 15:04:23 +0900 (JST)
Subject: [ruby-changes:38891] nobu:r50972 (trunk): test_gem_remote_fetcher.rb: get rid of errors

nobu	2015-06-19 15:04:00 +0900 (Fri, 19 Jun 2015)

  New Revision: 50972

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

  Log:
    test_gem_remote_fetcher.rb: get rid of errors
    
    * test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server):
      temporary measure for "dh key too small" error of OpenSSL
      1.0.2c+.

  Modified files:
    trunk/test/rubygems/test_gem_remote_fetcher.rb
Index: test/rubygems/test_gem_remote_fetcher.rb
===================================================================
--- test/rubygems/test_gem_remote_fetcher.rb	(revision 50971)
+++ test/rubygems/test_gem_remote_fetcher.rb	(revision 50972)
@@ -898,7 +898,7 @@ gems: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L898
       server.mount_proc("/insecure_redirect") { |req, res|
         res.set_redirect(WEBrick::HTTPStatus::MovedPermanently, req.query['to'])
       }
-      server.ssl_context.tmp_dh_callback = proc { OpenSSL::PKey::DH.new 128 }
+      server.ssl_context.tmp_dh_callback = proc {|_, _, k| OpenSSL::PKey::DH.new(k) }
       t = Thread.new do
         begin
           server.start

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

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