diff options
author | Mike Gilbert <floppym@gentoo.org> | 2019-10-18 16:39:16 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-12-29 10:20:45 +0100 |
commit | 5ba6f61e8716cdc0b41ece15b8ce917d632025cb (patch) | |
tree | a0c41254970b5a2d06f00fc229d87c31f844a9d4 | |
parent | Install shared libs in LIBDEST (diff) | |
download | cpython-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.c | 2 |
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 |