Index: Modules/_ssl.c =================================================================== --- Modules/_ssl.c (revision 837716) +++ Modules/_ssl.c (working copy) @@ -2542,9 +2542,11 @@ static PyThread_type_lock *_ssl_locks = NULL; +#if OPENSSL_VERSION_NUMBER < 0x10000000 static unsigned long _ssl_thread_id_function (void) { return PyThread_get_thread_ident(); } +#endif static void _ssl_thread_locking_function (int mode, int n, const char *file, int line) { @@ -2597,7 +2599,9 @@ } } CRYPTO_set_locking_callback(_ssl_thread_locking_function); +#if OPENSSL_VERSION_NUMBER < 0x10000000 CRYPTO_set_id_callback(_ssl_thread_id_function); +#endif } return 1; }