Browse Source

Fix debug output

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

2
lib/cryptcheck/tls/cipher.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

1
lib/cryptcheck/tls/server.rb

@ -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