mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
PR: 2058
Submitted by: Julia Lawall <julia@diku.dk> Approved by: steve@openssl.org Correct EVP_DigestVerifyFinal error handling.
This commit is contained in:
parent
fb552ac616
commit
d71061122c
@ -800,7 +800,7 @@ int CMS_SignerInfo_verify(CMS_SignerInfo *si)
|
||||
}
|
||||
r = EVP_DigestVerifyFinal(&mctx,
|
||||
si->signature->data, si->signature->length);
|
||||
if (!r)
|
||||
if (r <= 0)
|
||||
CMSerr(CMS_F_CMS_SIGNERINFO_VERIFY, CMS_R_VERIFICATION_FAILURE);
|
||||
err:
|
||||
EVP_MD_CTX_cleanup(&mctx);
|
||||
|
Loading…
Reference in New Issue
Block a user