projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: rename HMAC_CTX_init to HMAC_CTX_reset
[openssl.git]
/
crypto
/
hmac
/
hmac.c
diff --git
a/crypto/hmac/hmac.c
b/crypto/hmac/hmac.c
index 2fe511938583a92d3b81e1507a8e9556dd889642..c0f45131fa7626dac2498d7c881367d460e00f02 100644
(file)
--- 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)
{
HMAC_CTX *ctx = (HMAC_CTX *)OPENSSL_zalloc(sizeof(HMAC_CTX));
if (ctx)
- if (!HMAC_CTX_
ini
t(ctx)) {
+ if (!HMAC_CTX_
rese
t(ctx)) {
HMAC_CTX_free(ctx);
ctx = NULL;
}
HMAC_CTX_free(ctx);
ctx = NULL;
}
@@
-201,7
+201,7
@@
void HMAC_CTX_free(HMAC_CTX *ctx)
}
}
}
}
-int HMAC_CTX_
ini
t(HMAC_CTX *ctx)
+int HMAC_CTX_
rese
t(HMAC_CTX *ctx)
{
hmac_ctx_cleanup(ctx);
if (ctx->i_ctx == NULL)
{
hmac_ctx_cleanup(ctx);
if (ctx->i_ctx == NULL)