mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #8046 from embhorn/zd18758
Clear ctx in wolfSSL_EVP_DigestInit
This commit is contained in:
@ -10505,6 +10505,8 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
|
|||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wolfSSL_EVP_MD_CTX_init(ctx);
|
||||||
|
|
||||||
/* Set to 0 if no match */
|
/* Set to 0 if no match */
|
||||||
ctx->macType = EvpMd2MacType(md);
|
ctx->macType = EvpMd2MacType(md);
|
||||||
if (md == NULL) {
|
if (md == NULL) {
|
||||||
|
Reference in New Issue
Block a user