def validate_params(ssl_version, cipher)
    raise StandardError, "The scanner configuration is invalid" unless valid?
    unless @supported_versions.include? ssl_version
      raise StandardError, "SSL Version must be one of: #{@supported_versions.to_s}"
    end
    if ssl_version == :SSLv2 and sslv2 == false
      raise StandardError, "Your OS hates freedom! Your OpenSSL libs are compiled without SSLv2 support!"
    else
      unless OpenSSL::SSL::SSLContext.new(ssl_version).ciphers.flatten.include? cipher
        raise InvalidCipher, "Must be a valid SSL Cipher for #{ssl_version}!"
      end
    end
  end
def validate_params(ssl_version, cipher)
    raise StandardError, "The scanner configuration is invalid" unless valid?
    unless @supported_versions.include? ssl_version
      raise StandardError, "SSL Version must be one of: #{@supported_versions.to_s}"
    end
    if ssl_version == :SSLv2 and sslv2 == false
      raise StandardError, "Your OS hates freedom! Your OpenSSL libs are compiled without SSLv2 support!"
    else
      unless OpenSSL::SSL::SSLContext.new(ssl_version).ciphers.flatten.include? cipher
        raise InvalidCipher, "Must be a valid SSL Cipher for #{ssl_version}!"
      end
    end
  end
Validates that the SSL Version and Cipher are valid both seperately and
 together as part of an SSL Context.
 @param ssl_version [Symbol] The SSL version to use (:SSLv2,  :SSLv3, :TLSv1)
 @param cipher [String] The SSL Cipher to use
 @raise [StandardError] If an invalid or unsupported SSL Version was supplied
 @raise [StandardError] If the cipher is not valid for that version of SSL