|
|
@ -3,6 +3,11 @@ require 'parallel' |
|
|
|
|
|
|
|
module CryptCheck |
|
|
|
module Tls |
|
|
|
def self.analyze(hostname, port) |
|
|
|
host = Host.new hostname, port |
|
|
|
self.aggregate host |
|
|
|
end |
|
|
|
|
|
|
|
def self.aggregate(hosts) |
|
|
|
hosts = [hosts] unless hosts.respond_to? :collect |
|
|
|
hosts.inject([]) { |l, h| l + h.to_h } |
|
|
|