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

ruby-changes:53019

From: naruse <ko1@a...>
Date: Sat, 20 Oct 2018 20:29:47 +0900 (JST)
Subject: [ruby-changes:53019] naruse:r65233 (trunk): Add negotiated SSL protocol and cipher to Net::HTTP debug output

naruse	2018-10-20 20:29:38 +0900 (Sat, 20 Oct 2018)

  New Revision: 65233

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

  Log:
    Add negotiated SSL protocol and cipher to Net::HTTP debug output
    
    From: Bart de Water <bartdewater@g...>
    https://github.com/ruby/ruby/pull/1877 [Feature #15009]

  Modified files:
    trunk/lib/net/http.rb
Index: lib/net/http.rb
===================================================================
--- lib/net/http.rb	(revision 65232)
+++ lib/net/http.rb	(revision 65233)
@@ -997,7 +997,7 @@ module Net   #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L997
         if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
           s.post_connection_check(@address)
         end
-        D "SSL established"
+        D "SSL established, protocol: #{s.ssl_version}, cipher: #{s.cipher[0]}"
       end
       @socket = BufferedIO.new(s, read_timeout: @read_timeout,
                                write_timeout: @write_timeout,

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

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