aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-31 09:54:07 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-31 09:54:07 -0700
commitda04f66ce0ba039fd97c301d71a0c1517359aa90 (patch)
tree4789dfb6abe70669ce833ca4157bf24c40ab5349
parent5c02ef3260aa4ffc5920aca4bc5d8aa88b430c14 (diff)
downloadcryptography-da04f66ce0ba039fd97c301d71a0c1517359aa90.tar.gz
cryptography-da04f66ce0ba039fd97c301d71a0c1517359aa90.tar.bz2
cryptography-da04f66ce0ba039fd97c301d71a0c1517359aa90.zip
Removed some dead code
-rw-r--r--cryptography/bindings/openssl/api.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index 3fdde06f..65f33488 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -26,11 +26,9 @@ class API(object):
self._populate_ffi(ffi)
self._ffi = ffi
self._lib = ffi.verify("""
- #include <openssl/err.h>
#include <openssl/evp.h>
""")
self._lib.OpenSSL_add_all_algorithms()
- self._lib.ERR_load_crypto_strings()
def _populate_ffi(self, ffi):
ffi.cdef("""
@@ -41,7 +39,6 @@ class API(object):
typedef ... ENGINE;
void OpenSSL_add_all_algorithms();
- void ERR_load_crypto_strings();
const EVP_CIPHER *EVP_get_cipherbyname(const char *);
int EVP_EncryptInit_ex(EVP_CIPHER_CTX *, const EVP_CIPHER *,
@@ -53,8 +50,6 @@ class API(object):
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *);
EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *);
int EVP_CIPHER_block_size(const EVP_CIPHER *);
-
- unsigned long ERR_get_error();
""")
def create_block_cipher_context(self, cipher, mode):