mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
Merge pull request #1624 from supergicko/sni-power-for-ssl
Adding SNI utilization to ssl resource
This commit is contained in:
commit
4c64bafb51
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue