Commit 724f1a57 authored by Christian Heimes's avatar Christian Heimes Committed by Miss Islington (bot)

bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (GH-16140)



``OPENSSL_VERSION_1_1`` was never defined in ``_hashopenssl.c``. 


https://bugs.python.org/issue33936
parent 336b3064
_hashlib no longer calls obsolete OpenSSL initialization function with
OpenSSL 1.1.0+.
......@@ -1138,7 +1138,7 @@ PyInit__hashlib(void)
{
PyObject *m, *openssl_md_meth_names;
#ifndef OPENSSL_VERSION_1_1
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
/* Load all digest algorithms and initialize cpuid */
OPENSSL_add_all_algorithms_noconf();
ERR_load_crypto_strings();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment