summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-17 17:47:54 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-17 17:47:54 (GMT)
commita9bf2ac7265c143eb11538a0ecd491d96edbf4da (patch)
treeabfd09cb6b633c82f9b5923b63078ef7dade2588 /Modules
parentf1fd388c775acee4d1e5f560b3ae9dfb9ad7cd16 (diff)
downloadcpython-a9bf2ac7265c143eb11538a0ecd491d96edbf4da.zip
cpython-a9bf2ac7265c143eb11538a0ecd491d96edbf4da.tar.gz
cpython-a9bf2ac7265c143eb11538a0ecd491d96edbf4da.tar.bz2
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index e25f354..8225e68 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -145,6 +145,12 @@ static unsigned int _ssl_locks_count = 0;
# define HAVE_OPENSSL_FINISHED 0
#endif
+/* ECDH support got added to OpenSSL in 0.9.8 */
+#if OPENSSL_VERSION_NUMBER < 0x0090800fL && !defined(OPENSSL_NO_ECDH)
+# define OPENSSL_NO_ECDH
+#endif
+
+
typedef struct {
PyObject_HEAD
SSL_CTX *ctx;