projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50425bc
)
PR: 2058
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 30 Sep 2009 23:50:10 +0000
(23:50 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 30 Sep 2009 23:50:10 +0000
(23:50 +0000)
Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org
Correct EVP_DigestVerifyFinal error handling.
crypto/cms/cms_sd.c
patch
|
blob
|
history
diff --git
a/crypto/cms/cms_sd.c
b/crypto/cms/cms_sd.c
index e862872f398943b2e3c1c42f938786c83f13e906..e3192b9c574194d7a57328cd576e57bc23d115ce 100644
(file)
--- a/
crypto/cms/cms_sd.c
+++ b/
crypto/cms/cms_sd.c
@@
-799,7
+799,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);