everyone should support AES ciphers
This commit is contained in:
parent
a65766e5ea
commit
438a8db763
|
@ -3165,13 +3165,14 @@ else:
|
|||
def test_shared_ciphers(self):
|
||||
server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||
client_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
||||
client_context.set_ciphers("3DES:DES")
|
||||
server_context.set_ciphers("3DES:DES:AES")
|
||||
client_context.set_ciphers("AES128")
|
||||
server_context.set_ciphers("AES128:AES256")
|
||||
stats = server_params_test(client_context, server_context)
|
||||
ciphers = stats['server_shared_ciphers'][0]
|
||||
self.assertGreater(len(ciphers), 0)
|
||||
for name, tls_version, bits in ciphers:
|
||||
self.assertIn("DES", name.split("-"))
|
||||
self.assertIn("AES128", name.split("-"))
|
||||
self.assertEqual(bits, 128)
|
||||
|
||||
def test_read_write_after_close_raises_valuerror(self):
|
||||
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
||||
|
|
Loading…
Reference in New Issue