mirror of
https://github.com/curl/curl.git
synced 2026-08-03 04:00:33 +03:00
psa_hash_abort()
This commit is contained in:
parent
3c6d596905
commit
37ec5ba194
2 changed files with 4 additions and 0 deletions
|
|
@ -160,6 +160,8 @@ static void my_md5_final(unsigned char *digest, void *ctx)
|
|||
size_t actual_length;
|
||||
(void)psa_hash_finish(ctx, digest, MD5_DIGEST_LEN, &actual_length);
|
||||
}
|
||||
else
|
||||
(void)psa_hash_abort(ctx);
|
||||
}
|
||||
|
||||
#elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && \
|
||||
|
|
|
|||
|
|
@ -171,6 +171,8 @@ static void my_sha256_final(unsigned char *digest, void *ctx)
|
|||
(void)psa_hash_finish(ctx, digest, CURL_SHA256_DIGEST_LENGTH,
|
||||
&actual_length);
|
||||
}
|
||||
else
|
||||
(void)psa_hash_abort(ctx);
|
||||
}
|
||||
|
||||
#elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue