aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-05 15:31:58 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-05 15:31:58 -0800
commit44ca536328e0c50263aaec57c89e4ab3dae3b2b3 (patch)
tree5d30ab83c5c3f60982755a709528e59e1ba58144
parent9d1c2ea124dd258df616279f860e74821871033a (diff)
downloadcryptography-44ca536328e0c50263aaec57c89e4ab3dae3b2b3.tar.gz
cryptography-44ca536328e0c50263aaec57c89e4ab3dae3b2b3.tar.bz2
cryptography-44ca536328e0c50263aaec57c89e4ab3dae3b2b3.zip
Fix
-rw-r--r--cryptography/hazmat/bindings/openssl/backend.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cryptography/hazmat/bindings/openssl/backend.py b/cryptography/hazmat/bindings/openssl/backend.py
index 0f3268ac..d844f3fc 100644
--- a/cryptography/hazmat/bindings/openssl/backend.py
+++ b/cryptography/hazmat/bindings/openssl/backend.py
@@ -317,8 +317,9 @@ class HMACs(object):
evp_md = self._backend.lib.EVP_get_digestbyname(
hash_cls.name.encode('ascii'))
assert evp_md != self._backend.ffi.NULL
- res = self._backend.lib.HMAC_Init_ex(ctx, key, len(key), evp_md,
- self._backend.ffi.NULL)
+ res = self._backend.lib.Cryptography_HMAC_Init_ex(
+ ctx, key, len(key), evp_md, self._backend.ffi.NULL
+ )
assert res != 0
return ctx