mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Set DH Parameter for SSLContext to clean warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9865ee2c46
commit
7fd6016e1c
2 changed files with 5 additions and 0 deletions
|
@ -83,6 +83,7 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
|||
rescue Errno::EBADF, IOError, Errno::EINVAL, Errno::ECONNABORTED, Errno::ENOTSOCK
|
||||
end
|
||||
|
||||
DHParam = OpenSSL::PKey::DH.new(128)
|
||||
def start_server(port0, verify_mode, start_immediately, args = {}, &block)
|
||||
ctx_proc = args[:ctx_proc]
|
||||
server_proc = args[:server_proc]
|
||||
|
@ -96,6 +97,7 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
|||
#ctx.extra_chain_cert = [ ca_cert ]
|
||||
ctx.cert = @svr_cert
|
||||
ctx.key = @svr_key
|
||||
ctx.tmp_dh_callback = proc { DHParam }
|
||||
ctx.verify_mode = verify_mode
|
||||
ctx_proc.call(ctx) if ctx_proc
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue