Fix debug output

v1
Aeris 8 years ago
parent 67b2654e22
commit 92424828e1
  1. 2
      lib/cryptcheck/tls/cipher.rb
  2. 1
      lib/cryptcheck/tls/server.rb

@ -23,7 +23,7 @@ module CryptCheck
attr_reader :protocol, :name, :size, :dh
def initialize(protocol, cipher, dh)
def initialize(protocol, cipher, dh=nil)
@protocol, @dh = protocol, dh
@name, _, @size = cipher
end

@ -259,6 +259,7 @@ module CryptCheck
Logger.info { "#{Tls.colorize method} / #{cipher.colorize} : Supported#{dh}" }
cipher
rescue TLSException => e
cipher = Cipher.new method, cipher
Logger.debug { "#{Tls.colorize method} / #{cipher.colorize} : Not supported (#{e})" }
nil
end

Loading…
Cancel
Save