projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix from stable branch.
[openssl.git]
/
crypto
/
pkcs7
/
verify.c
diff --git
a/crypto/pkcs7/verify.c
b/crypto/pkcs7/verify.c
index 49fc8d8bed6b76c5b9c8056b543c62dc00b19f99..b40f26032ec6f761c874264f2f28886061cf4ffe 100644
(file)
--- a/
crypto/pkcs7/verify.c
+++ b/
crypto/pkcs7/verify.c
@@
-85,16
+85,16
@@
char *argv[];
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
bio_out=BIO_new_fp(stdout,BIO_NOCLOSE);
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
bio_out=BIO_new_fp(stdout,BIO_NOCLOSE);
-#ifndef NO_MD2
+#ifndef
OPENSSL_
NO_MD2
EVP_add_digest(EVP_md2());
#endif
EVP_add_digest(EVP_md2());
#endif
-#ifndef NO_MD5
+#ifndef
OPENSSL_
NO_MD5
EVP_add_digest(EVP_md5());
#endif
EVP_add_digest(EVP_md5());
#endif
-#ifndef NO_SHA1
+#ifndef
OPENSSL_
NO_SHA1
EVP_add_digest(EVP_sha1());
#endif
EVP_add_digest(EVP_sha1());
#endif
-#ifndef NO_MDC2
+#ifndef
OPENSSL_
NO_MDC2
EVP_add_digest(EVP_mdc2());
#endif
EVP_add_digest(EVP_mdc2());
#endif
@@
-179,10
+179,11
@@
char *argv[];
{
ASN1_UTCTIME *tm;
char *str1,*str2;
{
ASN1_UTCTIME *tm;
char *str1,*str2;
+ int rc;
si=sk_PKCS7_SIGNER_INFO_value(sk,i);
si=sk_PKCS7_SIGNER_INFO_value(sk,i);
-
i
=PKCS7_dataVerify(cert_store,&cert_ctx,p7bio,p7,si);
- if (
i
<= 0)
+
rc
=PKCS7_dataVerify(cert_store,&cert_ctx,p7bio,p7,si);
+ if (
rc
<= 0)
goto err;
printf("signer info\n");
if ((tm=get_signed_time(si)) != NULL)
goto err;
printf("signer info\n");
if ((tm=get_signed_time(si)) != NULL)