Fixed compile error for old openssl

This commit is contained in:
Armin Novak 2022-10-27 09:39:33 +02:00 committed by Pascal Nowack
parent cfffc5ef2c
commit 4ea4f5e936

View File

@ -184,7 +184,7 @@ WINPR_HMAC_CTX* winpr_HMAC_New(void)
if (!(ctx->hmac = (HMAC_CTX*)calloc(1, sizeof(HMAC_CTX))))
goto fail;
HMAC_CTX_init(hmac);
HMAC_CTX_init(ctx->hmac);
#else
if (!(ctx->hmac = HMAC_CTX_new()))
@ -198,6 +198,7 @@ WINPR_HMAC_CTX* winpr_HMAC_New(void)
fail:
winpr_HMAC_Free(ctx);
return NULL;
}
BOOL winpr_HMAC_Init(WINPR_HMAC_CTX* ctx, WINPR_MD_TYPE md, const BYTE* key, size_t keylen)