Exemplo n.º 1
0
 def test_nss_unknown(self):
     (out, err, rc) = run([exe, "+rsa_rc4_128_md5,+unknown"])
     assert rc == 0
     assert_equal(out, 'rsa_rc4_128_md5')
Exemplo n.º 2
0
 def test_nss_single(self):
     (out, err, rc) = run([exe, "+aes_128_sha_256"])
     assert rc == 0
     assert_equal(out, 'aes_128_sha_256')
Exemplo n.º 3
0
 def test_openssl_cipherlist(self):
     (out, err, rc) = run([exe, "DES-CBC3-SHA:RC4-SHA"])
     assert rc == 0
     assert_equal(out, 'rsa_rc4_128_sha, rsa_3des_sha')
Exemplo n.º 4
0
 def test_openssl_cipher(self):
     (out, err, rc) = run([exe, "DES-CBC3-SHA"])
     assert rc == 0
     assert_equal(out, 'rsa_3des_sha')
Exemplo n.º 5
0
 def test_nss_subtraction(self):
     (out, err, rc) = run([exe, "+rsa_rc4_128_md5,+rsa_rc4_128_sha,-rsa_rc4_128_md5"])
     assert rc == 0
     assert_equal(out, 'rsa_rc4_128_sha')
Exemplo n.º 6
0
 def test_nss_rsa_rc4_128(self):
     # Test NSS cipher parsing
     (out, err, rc) = run([exe, "+rsa_rc4_128_md5,+rsa_rc4_128_sha"])
     assert rc == 0
     assert_equal(out, 'rsa_rc4_128_md5, rsa_rc4_128_sha')
Exemplo n.º 7
0
 def test_SSLv3_equals_TLSv1(self):
     (nss, err, rc) = run([exe, "--o", "SSLv3"])
     (nss2, err, rc2) = run([exe, "--o", "TLSv1"])
     assert rc == 0
     assert rc2 == 0
     assert_equal(nss, nss2)