summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-19 20:22:39 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-19 20:22:39 (GMT)
commitc135fa424e768b78fae6ca997d8fe77a0d42447e (patch)
treeb966efbdcbf4cdde4669868cf32d20dc3c4a6215 /Modules/_ssl.c
parent7b77188e89182e0cf00d42f5556f972a739d6beb (diff)
downloadcpython-c135fa424e768b78fae6ca997d8fe77a0d42447e.zip
cpython-c135fa424e768b78fae6ca997d8fe77a0d42447e.tar.gz
cpython-c135fa424e768b78fae6ca997d8fe77a0d42447e.tar.bz2
Fix last remaining build issues of _ssl under old OpenSSLs. Patch by Vinay.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 8225e68..690d0be 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -150,6 +150,11 @@ static unsigned int _ssl_locks_count = 0;
# define OPENSSL_NO_ECDH
#endif
+/* compression support got added to OpenSSL in 0.9.8 */
+#if OPENSSL_VERSION_NUMBER < 0x0090800fL && !defined(OPENSSL_NO_COMP)
+# define OPENSSL_NO_COMP
+#endif
+
typedef struct {
PyObject_HEAD