aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-10-18 16:39:16 -0400
committerMichał Górny <mgorny@gentoo.org>2019-12-29 10:20:45 +0100
commit5ba6f61e8716cdc0b41ece15b8ce917d632025cb (patch)
treea0c41254970b5a2d06f00fc229d87c31f844a9d4
parentInstall shared libs in LIBDEST (diff)
downloadcpython-gentoo-3.8.1.tar.gz
cpython-gentoo-3.8.1.tar.bz2
cpython-gentoo-3.8.1.zip
Call OPENSSL_init_crypto for openssl >= 1.1.0gentoo-3.8.1
-rw-r--r--Modules/_hashopenssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index 3e5f9c3e0df..87ede23e474 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -1109,6 +1109,8 @@ PyInit__hashlib(void)
/* Load all digest algorithms and initialize cpuid */
OPENSSL_add_all_algorithms_noconf();
ERR_load_crypto_strings();
+#else
+ OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS|OPENSSL_INIT_ADD_ALL_DIGESTS, NULL);
#endif
/* TODO build EVP_functions openssl_* entries dynamically based