mirror of
https://github.com/curl/curl.git
synced 2026-07-10 07:07:16 +03:00
openssl: replace stray legacy API variant with EVP_DigestInit_ex()
To match rest of code, use the modern variant and avoid an unnecessary internal reset/cleanup. Closes #22222
This commit is contained in:
parent
5b10939ef7
commit
6fbb65126d
1 changed files with 1 additions and 1 deletions
|
|
@ -5451,7 +5451,7 @@ static CURLcode ossl_sha256sum(const unsigned char *input,
|
|||
mdctx = EVP_MD_CTX_new();
|
||||
if(!mdctx)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
if(!EVP_DigestInit(mdctx, EVP_sha256())) {
|
||||
if(!EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL)) {
|
||||
result = CURLE_FAILED_INIT;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue