mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
parent
e9c8709b3f
commit
e33afe4012
@ -447,6 +447,10 @@ int32_t mz_crypt_hmac_copy(void *src_handle, void *target_handle)
|
||||
return MZ_PARAM_ERROR;
|
||||
|
||||
mz_crypt_hmac_reset(target_handle);
|
||||
|
||||
if (target->ctx == NULL)
|
||||
target->ctx = HMAC_CTX_new();
|
||||
|
||||
result = HMAC_CTX_copy(target->ctx, source->ctx);
|
||||
if (!result)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user