mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Try to really fix compilation failures of the _ssl module under very old OpenSSLs.
This commit is contained in:
parent
f1fd388c77
commit
a9bf2ac726
2 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue