patch-Modules__hashopenssl_c 516 B

1234567891011121314
  1. Index: Modules/_hashopenssl.c
  2. --- Modules/_hashopenssl.c.orig
  3. +++ Modules/_hashopenssl.c
  4. @@ -43,7 +43,8 @@
  5. # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL"
  6. #endif
  7. -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
  8. +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
  9. + (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
  10. /* OpenSSL < 1.1.0 */
  11. #define EVP_MD_CTX_new EVP_MD_CTX_create
  12. #define EVP_MD_CTX_free EVP_MD_CTX_destroy