diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2022-03-12 16:49:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 05:49:30 +0800 |
commit | 382e5e04410b8f07383b5fc5244a2d93b07b0baf (patch) | |
tree | bbf706c68b8a731a9ae49297bb1c17bfe4486942 | |
parent | 40e865b1992ba7b6e890f96539b6bdf1051e4def (diff) | |
download | pyopenssl-git-382e5e04410b8f07383b5fc5244a2d93b07b0baf.tar.gz |
remove more global initialization that isn't required on modern openssl (#1108)
-rw-r--r-- | src/OpenSSL/crypto.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 8116578..5385541 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -3239,19 +3239,3 @@ load_pkcs12 = utils.deprecated( ), DeprecationWarning, ) - - -# There are no direct unit tests for this initialization. It is tested -# indirectly since it is necessary for functions like dump_privatekey when -# using encryption. -# -# Thus OpenSSL.test.test_crypto.FunctionTests.test_dump_privatekey_passphrase -# and some other similar tests may fail without this (though they may not if -# the Python runtime has already done some initialization of the underlying -# OpenSSL library (and is linked against the same one that cryptography is -# using)). -_lib.OpenSSL_add_all_algorithms() - -# Set the default string mask to match OpenSSL upstream (since 2005) and -# RFC5280 recommendations. -_lib.ASN1_STRING_set_default_mask_asc(b"utf8only") |