commit | a9bf2ac7265c143eb11538a0ecd491d96edbf4da | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Fri Feb 17 18:47:54 2012 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Fri Feb 17 18:47:54 2012 +0100 |
tree | abfd09cb6b633c82f9b5923b63078ef7dade2588 | |
parent | f1fd388c775acee4d1e5f560b3ae9dfb9ad7cd16 [diff] |
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.
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 @@ # 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;