diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-10 09:26:09 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-10 09:26:09 -0800 |
commit | d98b881521c4478ca31a90f9c101620ffe11cdbb (patch) | |
tree | 8e7c60a6dcc474ee5fee8f2cf3aec3461df245ec | |
parent | 694dab0aa1ca1bc2096c7dbabf573641633e81df (diff) | |
parent | 2153c57164c0307ce864554136db15d1d201c739 (diff) | |
download | cryptography-d98b881521c4478ca31a90f9c101620ffe11cdbb.tar.gz cryptography-d98b881521c4478ca31a90f9c101620ffe11cdbb.tar.bz2 cryptography-d98b881521c4478ca31a90f9c101620ffe11cdbb.zip |
Merge pull request #455 from reaperhulk/init-ssl-stuff
Init the ssl library in the backend
-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 = {} |