Merge pull request #1624 from supergicko/sni-power-for-ssl

Adding SNI utilization to ssl resource
This commit is contained in:
Christoph Hartmann 2017-04-12 11:07:27 +02:00 committed by GitHub
commit 4c64bafb51
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'pry', '~> 0'
spec.add_dependency 'hashie', '~> 3.4'
spec.add_dependency 'mixlib-log'
spec.add_dependency 'sslshake', '~> 1'
spec.add_dependency 'sslshake', '~> 1.1'
spec.add_dependency 'parallel', '~> 1.9'
spec.add_dependency 'faraday', '>=0.9.0'
spec.add_dependency 'toml', '~> 0.1'

View file

@ -71,7 +71,7 @@ class SSL < Inspec.resource(1)
res = Parallel.map(groups, in_threads: 8) do |proto, e|
[proto, SSLShake.hello(x.resource.host, port: x.resource.port,
protocol: proto, ciphers: e.map(&:cipher),
timeout: x.resource.timeout, retries: x.resource.retries)]
timeout: x.resource.timeout, retries: x.resource.retries, servername: x.resource.host)]
end
Hash[res]
}