aboutsummaryrefslogtreecommitdiffstats
path: root/test/open-uri
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-22 00:21:37 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-22 00:21:37 +0000
commitf977ebb1c9404db16019d26d3785b365556e51e1 (patch)
tree3272c1cc909c004866e249ee92106fe0090f914e /test/open-uri
parent7ae0d58551b002b6ef4332b0263a02b411766b80 (diff)
downloadruby-f977ebb1c9404db16019d26d3785b365556e51e1.tar.gz
suppress warnings: using default DH parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/open-uri')
-rw-r--r--test/open-uri/test_ssl.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/open-uri/test_ssl.rb b/test/open-uri/test_ssl.rb
index 4978f93030..f653cd77ec 100644
--- a/test/open-uri/test_ssl.rb
+++ b/test/open-uri/test_ssl.rb
@@ -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