summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-07 19:28:40 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-07 19:28:40 (GMT)
commit438a8db763d219796529869ae01dc5944106c7e7 (patch)
tree19430f25916b67a525b36c34d90d45e74cedc51f /Lib/test/test_ssl.py
parenta65766e5ea15bdbd280a845ae54c9e371625c510 (diff)
downloadcpython-438a8db763d219796529869ae01dc5944106c7e7.zip
cpython-438a8db763d219796529869ae01dc5944106c7e7.tar.gz
cpython-438a8db763d219796529869ae01dc5944106c7e7.tar.bz2
everyone should support AES ciphers
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 6b00a37..b429e44 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -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)