[Python-checkins] cpython: Load SSL's error strings in hashlib.
christian.heimes
python-checkins at python.org
Mon Oct 21 19:48:31 CEST 2013
http://hg.python.org/cpython/rev/1581d69453d6
changeset: 86551:1581d69453d6
user: Christian Heimes <christian at cheimes.de>
date: Mon Oct 21 19:48:22 2013 +0200
summary:
Load SSL's error strings in hashlib.
Without ERR_load_crypto_strings() functions like ERR_lib_error_string() return NULL.
files:
Misc/NEWS | 2 ++
Modules/_hashopenssl.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -16,6 +16,8 @@
Library
-------
+- Load SSL's error strings in hashlib.
+
- Issue #18527: Upgrade internal copy of zlib to 1.2.8.
- Issue #19274: Add a filterfunc parameter to PyZipFile.writepy.
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -847,6 +847,7 @@
PyObject *m, *openssl_md_meth_names;
OpenSSL_add_all_digests();
+ ERR_load_crypto_strings();
/* TODO build EVP_functions openssl_* entries dynamically based
* on what hashes are supported rather than listing many
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list