summaryrefslogtreecommitdiffstats
path: root/crypto/hmac
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-12-02 22:47:31 +0100
committerRichard Levitte <levitte@openssl.org>2015-12-07 17:40:20 +0100
commitdc0099e1dd013abe52d0ff4901e02cca030bec97 (patch)
tree15025f8afe5cbc06e62eef9bb9be713854bde6c5 /crypto/hmac
parente0a3a803d93dac94dfd8c7c54445be73f7572032 (diff)
Cleanup: rename HMAC_CTX_init to HMAC_CTX_reset
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/hmac')
-rw-r--r--crypto/hmac/hmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c
index 2fe5119385..c0f45131fa 100644
--- a/crypto/hmac/hmac.c
+++ b/crypto/hmac/hmac.c
@@ -173,7 +173,7 @@ HMAC_CTX *HMAC_CTX_new(void)
{
HMAC_CTX *ctx = (HMAC_CTX *)OPENSSL_zalloc(sizeof(HMAC_CTX));
if (ctx)
- if (!HMAC_CTX_init(ctx)) {
+ if (!HMAC_CTX_reset(ctx)) {
HMAC_CTX_free(ctx);
ctx = NULL;
}
@@ -201,7 +201,7 @@ void HMAC_CTX_free(HMAC_CTX *ctx)
}
}
-int HMAC_CTX_init(HMAC_CTX *ctx)
+int HMAC_CTX_reset(HMAC_CTX *ctx)
{
hmac_ctx_cleanup(ctx);
if (ctx->i_ctx == NULL)