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

suppress warnings: using default DH parameters.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-06-22 00:21:37 +00:00
parent 7ae0d58551
commit f977ebb1c9

View file

@ -5,6 +5,7 @@ require 'webrick'
begin
require 'openssl'
require 'webrick/https'
require_relative '../openssl/utils'
rescue LoadError
end
require 'webrick/httpproxy'
@ -27,6 +28,7 @@ class TestOpenURISSL
:SSLEnable => true,
:SSLCertificate => OpenSSL::X509::Certificate.new(SERVER_CERT),
:SSLPrivateKey => OpenSSL::PKey::RSA.new(SERVER_KEY),
:SSLTmpDhCallback => proc { OpenSSL::TestUtils::TEST_KEY_DH1024 },
:BindAddress => '127.0.0.1',
:Port => 0})
_, port, _, host = srv.listeners[0].addr