Sha256: fb52d8da0d26c1eefd971ff1ee53f37f5146fd2f63ebbe60e4852ba3d9f9cd02

Contents?: true

Size: 757 Bytes

Versions: 6

Compression:

Stored size: 757 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/yawast'
require File.dirname(__FILE__) + '/base'

class TestSharedHttp < Minitest::Test
  include TestBase

  def test_check_tdes
    override_stdout

    res = Yawast::Scanner::Plugins::SSL::Sweet32.check_tdes

    assert stdout_value.include?('OpenSSL supports 3DES'), "Header line not found in #{stdout_value}"
    assert res, '3DES support check failed'

    restore_stdout
  end

  def test_session_count
    override_stdout

    uri = URI::Parser.new.parse 'https://3des.badssl.com/'
    Yawast::Scanner::Plugins::SSL::Sweet32.get_tdes_session_msg_count uri, 1

    assert stdout_value.include?('Connection not terminated after'), "SWEET32 warning not found in #{stdout_value}"

    restore_stdout
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yawast-0.7.0.beta3 test/test_ssl_sweet32.rb
yawast-0.7.0.beta2 test/test_ssl_sweet32.rb
yawast-0.7.0.beta1 test/test_ssl_sweet32.rb
yawast-0.6.0 test/test_ssl_sweet32.rb
yawast-0.6.0.beta6 test/test_ssl_sweet32.rb
yawast-0.6.0.beta5 test/test_ssl_sweet32.rb