diff options
author | Christian Heimes <christian@python.org> | 2019-09-16 19:10:05 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-16 19:10:05 (GMT) |
commit | 724f1a57231f9287c37255adf0e4364d12cf693d (patch) | |
tree | d802911645c3536a23c97ab1c06a33bc9f5692ba /Modules/_hashopenssl.c | |
parent | 336b3064d8981bc7f76c5cc6f6a0527df69771d6 (diff) | |
download | cpython-724f1a57231f9287c37255adf0e4364d12cf693d.zip cpython-724f1a57231f9287c37255adf0e4364d12cf693d.tar.gz cpython-724f1a57231f9287c37255adf0e4364d12cf693d.tar.bz2 |
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
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index b86cbd0..d963c7a 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -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(); |