Try to really fix compilation failures of the _ssl module under very old OpenSSLs.

This commit is contained in:
Antoine Pitrou 2012-02-17 18:47:54 +01:00
parent f1fd388c77
commit a9bf2ac726
2 changed files with 11 additions and 1 deletions

View file

@ -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;