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
Родитель 7ae0d58551
Коммит f977ebb1c9
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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