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

ruby-changes:62935

From: nicholas <ko1@a...>
Date: Mon, 14 Sep 2020 17:27:10 +0900 (JST)
Subject: [ruby-changes:62935] f1d32010e6 (master): [ruby/net-smtp] Add SNI support to net/smtp

https://git.ruby-lang.org/ruby.git/commit/?id=f1d32010e6

From f1d32010e6e263ae94ee480a0d537727e91485ed Mon Sep 17 00:00:00 2001
From: "nicholas a. evans" <nick@e...>
Date: Wed, 27 Feb 2019 14:25:51 -0500
Subject: [ruby/net-smtp] Add SNI support to net/smtp

https://github.com/ruby/net-smtp/commit/b706942392

diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index a195f26..810da77 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -600,6 +600,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/smtp.rb#L600
       s = ssl_socket(s, @ssl_context)
       logging "TLS connection started"
       s.sync_close = true
+      s.hostname = @address if s.respond_to? :hostname=
       ssl_socket_connect(s, @open_timeout)
       if @ssl_context.verify_mode && @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
         s.post_connection_check(@address)
-- 
cgit v0.10.2


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

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