diff options
author | 2019-10-18 21:05:37 -0400 | |
---|---|---|
committer | 2019-10-18 21:05:37 -0400 | |
commit | 838b6612b964efa1ceba6bdd548cff6fb9da68c3 (patch) | |
tree | c2bcfdd8f5a86224247414500f4f93e673b54210 /dev-lang/python/files | |
parent | net-misc/you-get: version bump, 0.4.1355 (diff) | |
download | gentoo-838b6612b964efa1ceba6bdd548cff6fb9da68c3.tar.gz gentoo-838b6612b964efa1ceba6bdd548cff6fb9da68c3.tar.bz2 gentoo-838b6612b964efa1ceba6bdd548cff6fb9da68c3.zip |
dev-lang/python: re-enable all openssl algorithms
Package-Manager: Portage-2.3.77_p5, Repoman-2.3.17_p81
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-lang/python/files')
-rw-r--r-- | dev-lang/python/files/python-3.7.5-hashlib.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-lang/python/files/python-3.7.5-hashlib.patch b/dev-lang/python/files/python-3.7.5-hashlib.patch new file mode 100644 index 000000000000..a70a47963109 --- /dev/null +++ b/dev-lang/python/files/python-3.7.5-hashlib.patch @@ -0,0 +1,25 @@ +From 2c0c356ca109d1550bfb09b0da7dec3f80db77a3 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Fri, 18 Oct 2019 16:39:16 -0400 +Subject: [PATCH] Call OPENSSL_init_crypto for openssl >= 1.1.0 + +--- + Modules/_hashopenssl.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c +index b13ade60496..8abbde5120f 100644 +--- a/Modules/_hashopenssl.c ++++ b/Modules/_hashopenssl.c +@@ -1077,6 +1077,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 +-- +2.23.0 + |