aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_hmac.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-06-11 16:00:42 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-06-11 16:00:42 +0000
commit7976a387a4b33e0cd9364a07a8763ece9f90ac03 (patch)
tree9b183083ee46072fb7eb3c09ecd51e8c78b323a4 /ossl_hmac.c
parentf94649cc4ca0111e121e72c77c35f25e48a05799 (diff)
downloadruby-openssl-history-7976a387a4b33e0cd9364a07a8763ece9f90ac03.tar.gz
HMAC fix#2
Diffstat (limited to 'ossl_hmac.c')
-rw-r--r--ossl_hmac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ossl_hmac.c b/ossl_hmac.c
index 449583b..69666a0 100644
--- a/ossl_hmac.c
+++ b/ossl_hmac.c
@@ -86,6 +86,7 @@ hmac_final(HMAC_CTX *ctx, char **buf, int *buf_len)
OSSL_Raise(eHMACError, "Cannot allocate memory for hmac");
}
HMAC_Final(&final, *buf, buf_len);
+ HMAC_CTX_cleanup(&final);
}
static VALUE