mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/http.rb (Net::HTTP#connect): support SNI (Server Name
Indication) for HTTPS. [ruby-dev:43164] http://stackoverflow.com/questions/4685736/openssl-server-name-indication-support-in-ruby git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60f2c9cf5b
commit
afe7aac47b
3 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Mon Feb 7 22:34:20 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/net/http.rb (Net::HTTP#connect): support SNI (Server Name
|
||||||
|
Indication) for HTTPS. [ruby-dev:43164]
|
||||||
|
http://stackoverflow.com/questions/4685736/openssl-server-name-indication-support-in-ruby
|
||||||
|
|
||||||
Mon Feb 7 16:05:32 2011 Eric Hodel <drbrain@segment7.net>
|
Mon Feb 7 16:05:32 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* lib/rdoc: Upgrade to RDoc 3.5.3 Fixes [Bug #4376]
|
* lib/rdoc: Upgrade to RDoc 3.5.3 Fixes [Bug #4376]
|
||||||
|
|
3
NEWS
3
NEWS
|
@ -88,6 +88,9 @@ with all sufficient information, see the ChangeLog file.
|
||||||
* IO#winsize
|
* IO#winsize
|
||||||
* IO.console
|
* IO.console
|
||||||
|
|
||||||
|
* net/http
|
||||||
|
* SNI (Server Name Indication) supported for HTTPS.
|
||||||
|
|
||||||
* optparse
|
* optparse
|
||||||
* support for bash/zsh completion.
|
* support for bash/zsh completion.
|
||||||
|
|
||||||
|
|
|
@ -780,6 +780,8 @@ module Net #:nodoc:
|
||||||
@socket.writeline ''
|
@socket.writeline ''
|
||||||
HTTPResponse.read_new(@socket).value
|
HTTPResponse.read_new(@socket).value
|
||||||
end
|
end
|
||||||
|
# Server Name Indication (SNI) RFC 3546
|
||||||
|
s.hostname = @address if s.respond_to? :hostname=
|
||||||
timeout(@open_timeout) { s.connect }
|
timeout(@open_timeout) { s.connect }
|
||||||
if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
||||||
s.post_connection_check(@address)
|
s.post_connection_check(@address)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue