From 382e5e04410b8f07383b5fc5244a2d93b07b0baf Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 12 Mar 2022 16:49:30 -0500 Subject: remove more global initialization that isn't required on modern openssl (#1108) --- src/OpenSSL/crypto.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/OpenSSL/crypto.py') 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") -- cgit v1.2.1