mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Load SSL's error strings in hashlib.
Without ERR_load_crypto_strings() functions like ERR_lib_error_string() return NULL.
This commit is contained in:
parent
1a82f7e6a5
commit
b7ddbc855c
2 changed files with 3 additions and 0 deletions
|
@ -847,6 +847,7 @@ PyInit__hashlib(void)
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue