summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2014-01-11 08:06:35 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2014-01-11 08:06:35 -0500
commitb64e2a2aaaa81f5020015cf65589755a63a59a70 (patch)
tree14cf4084583a1faaa2a92d31d587bf56b76718fa
parente324fd60462abfe3c39d342f6444311060ff5c7d (diff)
downloadpyopenssl-b64e2a2aaaa81f5020015cf65589755a63a59a70.tar.gz
Add OpenSSL_add_all_algorithms.
-rw-r--r--OpenSSL/crypto.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index d9f136a..103deab 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -2258,4 +2258,13 @@ else:
_initialize_openssl_threads(get_ident, Lock)
del get_ident, Lock
+# 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()