[前][次][番号順一覧][スレッド一覧]

ruby-changes:55281

From: shugo <ko1@a...>
Date: Wed, 10 Apr 2019 08:35:06 +0900 (JST)
Subject: [ruby-changes:55281] shugo:r67488 (trunk): Support SNI

shugo	2019-04-10 08:35:02 +0900 (Wed, 10 Apr 2019)

  New Revision: 67488

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67488

  Log:
    Support SNI
    
    This fixes connecting using TLS 1.3 to imap.gmail.com
    
    [Fix GH-2077] [Feature #15594]
    
    From: Marc-Antoine Perennou <Marc-Antoine@P...>

  Modified files:
    trunk/lib/net/imap.rb
Index: lib/net/imap.rb
===================================================================
--- lib/net/imap.rb	(revision 67487)
+++ lib/net/imap.rb	(revision 67488)
@@ -1530,6 +1530,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L1530
       end
       @sock = SSLSocket.new(@sock, context)
       @sock.sync_close = true
+      @sock.hostname = @host if @sock.respond_to? :hostname=
       ssl_socket_connect(@sock, @open_timeout)
       if context.verify_mode != VERIFY_NONE
         @sock.post_connection_check(@host)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]