Fix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.

This commit is contained in:
Antoine Pitrou 2012-02-19 21:22:39 +01:00
parent 7b77188e89
commit c135fa424e
2 changed files with 7 additions and 1 deletions

View file

@ -102,7 +102,8 @@ class BasicSocketTests(unittest.TestCase):
ssl.CERT_REQUIRED
ssl.OP_CIPHER_SERVER_PREFERENCE
ssl.OP_SINGLE_DH_USE
ssl.OP_SINGLE_ECDH_USE
if ssl.HAS_ECDH:
ssl.OP_SINGLE_ECDH_USE
if ssl.OPENSSL_VERSION_INFO >= (1, 0):
ssl.OP_NO_COMPRESSION
self.assertIn(ssl.HAS_SNI, {True, False})