Issue #13635: Add ssl.OP_CIPHER_SERVER_PREFERENCE, so that SSL servers

choose the cipher based on their own preferences, rather than on the
client's.
This commit is contained in:
Antoine Pitrou 2011-12-19 13:27:11 +01:00
parent bfaa79a982
commit 6db4944cc5
5 changed files with 18 additions and 1 deletions

View file

@ -98,6 +98,7 @@ class BasicSocketTests(unittest.TestCase):
ssl.CERT_NONE
ssl.CERT_OPTIONAL
ssl.CERT_REQUIRED
ssl.OP_CIPHER_SERVER_PREFERENCE
self.assertIn(ssl.HAS_SNI, {True, False})
def test_random(self):