Ver código fonte

Fix debug output

master
Aeris 4 anos atrás
pai
commit
92424828e1
2 arquivos alterados com 2 adições e 1 exclusões
  1. 1
    1
      lib/cryptcheck/tls/cipher.rb
  2. 1
    0
      lib/cryptcheck/tls/server.rb

+ 1
- 1
lib/cryptcheck/tls/cipher.rb Ver arquivo

@@ -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
- 0
lib/cryptcheck/tls/server.rb Ver arquivo

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

Carregando…
Cancelar
Salvar