Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b77188 commit c135fa4Copy full SHA for c135fa4
2 files changed
Lib/test/test_ssl.py
@@ -102,7 +102,8 @@ def test_constants(self):
102
ssl.CERT_REQUIRED
103
ssl.OP_CIPHER_SERVER_PREFERENCE
104
ssl.OP_SINGLE_DH_USE
105
- ssl.OP_SINGLE_ECDH_USE
+ if ssl.HAS_ECDH:
106
+ ssl.OP_SINGLE_ECDH_USE
107
if ssl.OPENSSL_VERSION_INFO >= (1, 0):
108
ssl.OP_NO_COMPRESSION
109
self.assertIn(ssl.HAS_SNI, {True, False})
Modules/_ssl.c
@@ -150,6 +150,11 @@ static unsigned int _ssl_locks_count = 0;
150
# define OPENSSL_NO_ECDH
151
#endif
152
153
+/* compression support got added to OpenSSL in 0.9.8 */
154
+#if OPENSSL_VERSION_NUMBER < 0x0090800fL && !defined(OPENSSL_NO_COMP)
155
+# define OPENSSL_NO_COMP
156
+#endif
157
+
158
159
typedef struct {
160
PyObject_HEAD
0 commit comments