patch-Modules__ssl_c 532 B

1234567891011121314151617
  1. XXX maybe this can go away now we have auto-init, I'm not sure exactly
  2. what python's lock protects
  3. Index: Modules/_ssl.c
  4. --- Modules/_ssl.c.orig
  5. +++ Modules/_ssl.c
  6. @@ -213,6 +213,9 @@ extern const SSL_METHOD *TLSv1_2_method(void);
  7. #if defined(OPENSSL_VERSION_1_1) && !defined(OPENSSL_NO_SSL2)
  8. #define OPENSSL_NO_SSL2
  9. #endif
  10. +#if defined(LIBRESSL_VERSION_NUMBER) && defined(WITH_THREAD)
  11. +#define HAVE_OPENSSL_CRYPTO_LOCK
  12. +#endif
  13. #ifndef PY_OPENSSL_1_1_API
  14. /* OpenSSL 1.1 API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7.0 */