Commit 5d55d52b authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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
(cherry picked from commit 724f1a57)
Co-authored-by: default avatarChristian Heimes <christian@python.org>
parent d8903416
_hashlib no longer calls obsolete OpenSSL initialization function with
OpenSSL 1.1.0+.
......@@ -901,7 +901,7 @@ init_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