ruby-changes:18790
From: akr <ko1@a...>
Date: Mon, 7 Feb 2011 22:51:09 +0900 (JST)
Subject: [ruby-changes:18790] Ruby:r30816 (trunk): * lib/net/http.rb (Net::HTTP#connect): support SNI (Server Name
akr 2011-02-07 22:37:43 +0900 (Mon, 07 Feb 2011) New Revision: 30816 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30816 Log: * 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 Modified files: trunk/ChangeLog trunk/NEWS trunk/lib/net/http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30815) +++ ChangeLog (revision 30816) @@ -1,3 +1,9 @@ +Mon Feb 7 22:34:20 2011 Tanaka Akira <akr@f...> + + * 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@s...> * lib/rdoc: Upgrade to RDoc 3.5.3 Fixes [Bug #4376] Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 30815) +++ lib/net/http.rb (revision 30816) @@ -780,6 +780,8 @@ @socket.writeline '' HTTPResponse.read_new(@socket).value end + # Server Name Indication (SNI) RFC 3546 + s.hostname = @address if s.respond_to? :hostname= timeout(@open_timeout) { s.connect } if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE s.post_connection_check(@address) Index: NEWS =================================================================== --- NEWS (revision 30815) +++ NEWS (revision 30816) @@ -88,6 +88,9 @@ * IO#winsize * IO.console +* net/http + * SNI (Server Name Indication) supported for HTTPS. + * optparse * support for bash/zsh completion. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/