1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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+.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-06-19 06:04:00 +00:00
parent e77f9fcb13
commit 6398515adf

View file

@ -898,7 +898,7 @@ gems:
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