mirror of
https://github.com/python/cpython.git
synced 2025-07-22 10:45:22 +00:00
rc4 is a long time favorite
This commit is contained in:
parent
438a8db763
commit
f78b78aed4
1 changed files with 2 additions and 2 deletions
|
@ -3165,8 +3165,8 @@ else:
|
||||||
def test_shared_ciphers(self):
|
def test_shared_ciphers(self):
|
||||||
server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||||
client_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
client_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
||||||
client_context.set_ciphers("AES128")
|
client_context.set_ciphers("RC4")
|
||||||
server_context.set_ciphers("AES128:AES256")
|
server_context.set_ciphers("AES:RC4")
|
||||||
stats = server_params_test(client_context, server_context)
|
stats = server_params_test(client_context, server_context)
|
||||||
ciphers = stats['server_shared_ciphers'][0]
|
ciphers = stats['server_shared_ciphers'][0]
|
||||||
self.assertGreater(len(ciphers), 0)
|
self.assertGreater(len(ciphers), 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue