aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-03-10 09:38:03 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-03-10 09:51:49 -0400
commit68b40906e0fa2a3f29521ded880f1620e1a4efeb (patch)
treeb0b5672b508ef6ec205dec651e1a80b7fdf35338 /src/_cffi_src
parent851b7f002aaf0781bf1590e8e212c8dff0e25de1 (diff)
downloadcryptography-68b40906e0fa2a3f29521ded880f1620e1a4efeb.tar.gz
cryptography-68b40906e0fa2a3f29521ded880f1620e1a4efeb.tar.bz2
cryptography-68b40906e0fa2a3f29521ded880f1620e1a4efeb.zip
HMAC_CTX_new doesn't need commented out code for no reason
Diffstat (limited to 'src/_cffi_src')
-rw-r--r--src/_cffi_src/openssl/hmac.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/_cffi_src/openssl/hmac.py b/src/_cffi_src/openssl/hmac.py
index 42e5cfb6..bcc8a861 100644
--- a/src/_cffi_src/openssl/hmac.py
+++ b/src/_cffi_src/openssl/hmac.py
@@ -87,11 +87,6 @@ HMAC_CTX *Cryptography_HMAC_CTX_new(void) {
/* This uses OPENSSL_zalloc in 1.1.0, which is malloc + memset */
HMAC_CTX *ctx = (HMAC_CTX *)OPENSSL_malloc(sizeof(HMAC_CTX));
memset(ctx, 0, sizeof(HMAC_CTX));
- /*if (ctx)
- if (!HMAC_CTX_reset(ctx)) {
- HMAC_CTX_free(ctx);
- ctx = NULL;
- }*/
return ctx;
#endif
}