mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/ssl.rb: Support to add SSLCiphers option.
[fix GH-1321] Patch by @rhadoo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48d22f8360
commit
8a77a41fc3
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Apr 22 10:51:13 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* lib/webrick/ssl.rb: Support to add SSLCiphers option.
|
||||
[fix GH-1321] Patch by @rhadoo
|
||||
|
||||
Fri Apr 22 10:43:19 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* file.c, win32/file.c: Removed obsoleted safe level checks.
|
||||
|
|
|
@ -52,6 +52,8 @@ module WEBrick
|
|||
# Maximum session lifetime
|
||||
# :SSLOptions ::
|
||||
# Various SSL options
|
||||
# :SSLCiphers ::
|
||||
# Ciphers to be used
|
||||
# :SSLStartImmediately ::
|
||||
# Immediately start SSL upon connection? Defaults to true
|
||||
# :SSLCertName ::
|
||||
|
@ -76,6 +78,7 @@ module WEBrick
|
|||
:SSLVerifyCallback => nil, # custom verification
|
||||
:SSLTimeout => nil,
|
||||
:SSLOptions => nil,
|
||||
:SSLCiphers => nil,
|
||||
:SSLStartImmediately => true,
|
||||
# Must specify if you use auto generated certificate.
|
||||
:SSLCertName => nil,
|
||||
|
@ -191,6 +194,7 @@ module WEBrick
|
|||
ctx.verify_callback = config[:SSLVerifyCallback]
|
||||
ctx.timeout = config[:SSLTimeout]
|
||||
ctx.options = config[:SSLOptions]
|
||||
ctx.ciphers = config[:SSLCiphers]
|
||||
ctx
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue