Cleanup: rename HMAC_CTX_init to HMAC_CTX_reset
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
e0a3a803d9
commit
dc0099e1dd
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -70,7 +70,7 @@ extern "C" {
|
|||
|
||||
size_t HMAC_size(HMAC_CTX *e);
|
||||
HMAC_CTX *HMAC_CTX_new(void);
|
||||
int HMAC_CTX_init(HMAC_CTX *ctx);
|
||||
int HMAC_CTX_reset(HMAC_CTX *ctx);
|
||||
void HMAC_CTX_free(HMAC_CTX *ctx);
|
||||
|
||||
#ifdef OPENSSL_USE_DEPRECATED
|
||||
|
|
Loading…
Reference in a new issue