Add OpenSSL_add_all_algorithms.
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 @@
_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()