lib/scanner/ssl.rb in yawast-0.3.0.beta1 vs lib/scanner/ssl.rb in yawast-0.3.0.beta2
- old
+ new
@@ -3,11 +3,11 @@
require 'digest/sha1'
module Yawast
module Scanner
class Ssl
- def self.info(uri, check_ciphers, sslsessioncount)
+ def self.info(uri, check_ciphers, tdes_session_count)
begin
socket = TCPSocket.new(uri.host, uri.port)
ctx = OpenSSL::SSL::SSLContext.new
ctx.ciphers = OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ciphers]
@@ -96,11 +96,11 @@
get_ciphers(uri)
end
ssl.sysclose
- get_session_msg_count(uri) if sslsessioncount
+ get_tdes_session_msg_count(uri) if tdes_session_count
rescue => e
Yawast::Utilities.puts_error "SSL: Error Reading X509 Details: #{e.message}"
end
end
@@ -176,10 +176,10 @@
end
puts ''
end
- def self.get_session_msg_count(uri)
+ def self.get_tdes_session_msg_count(uri)
# this method will send a number of HEAD requests to see
# if the connection is eventually killed.
puts 'TLS Session Request Limit: Checking number of requests accepted using 3DES suites...'
count = 0