diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-10 10:42:27 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-10 10:42:27 -0600 |
commit | 2153c57164c0307ce864554136db15d1d201c739 (patch) | |
tree | 8e7c60a6dcc474ee5fee8f2cf3aec3461df245ec | |
parent | 694dab0aa1ca1bc2096c7dbabf573641633e81df (diff) | |
download | cryptography-2153c57164c0307ce864554136db15d1d201c739.tar.gz cryptography-2153c57164c0307ce864554136db15d1d201c739.tar.bz2 cryptography-2153c57164c0307ce864554136db15d1d201c739.zip |
init the ssl library in the backend
Also add some comments since this is mildly convoluted.
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 284fa989..07ee58c1 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -43,7 +43,11 @@ class Backend(object): self._ffi = self._binding.ffi self._lib = self._binding.lib + # adds all ciphers/digests for EVP self._lib.OpenSSL_add_all_algorithms() + # registers available SSL/TLS ciphers and digests + self._lib.SSL_library_init() + # loads error strings for libcrypto and libssl functions self._lib.SSL_load_error_strings() self._cipher_registry = {} |