Skip to content

Commit

Permalink
bpo-33936: Don't call obsolete init methods with OpenSSL 1.1.0+ (pyth…
Browse files Browse the repository at this point in the history
…onGH-16140)

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


https://bugs.python.org/issue33936
  • Loading branch information
tiran authored and miss-islington committed Sep 16, 2019
1 parent 336b306 commit 724f1a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_hashlib no longer calls obsolete OpenSSL initialization function with
OpenSSL 1.1.0+.
2 changes: 1 addition & 1 deletion Modules/_hashopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 724f1a5

Please sign in to comment.