diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs7/verify.c')
-rw-r--r-- | src/lib/libcrypto/pkcs7/verify.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs7/verify.c b/src/lib/libcrypto/pkcs7/verify.c index 32d9783e45..49fc8d8bed 100644 --- a/src/lib/libcrypto/pkcs7/verify.c +++ b/src/lib/libcrypto/pkcs7/verify.c | |||
@@ -56,6 +56,7 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | #include <stdio.h> | 58 | #include <stdio.h> |
59 | #include <string.h> | ||
59 | #include <openssl/bio.h> | 60 | #include <openssl/bio.h> |
60 | #include <openssl/asn1.h> | 61 | #include <openssl/asn1.h> |
61 | #include <openssl/x509.h> | 62 | #include <openssl/x509.h> |
@@ -84,10 +85,18 @@ char *argv[]; | |||
84 | 85 | ||
85 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); | 86 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); |
86 | bio_out=BIO_new_fp(stdout,BIO_NOCLOSE); | 87 | bio_out=BIO_new_fp(stdout,BIO_NOCLOSE); |
88 | #ifndef NO_MD2 | ||
87 | EVP_add_digest(EVP_md2()); | 89 | EVP_add_digest(EVP_md2()); |
90 | #endif | ||
91 | #ifndef NO_MD5 | ||
88 | EVP_add_digest(EVP_md5()); | 92 | EVP_add_digest(EVP_md5()); |
93 | #endif | ||
94 | #ifndef NO_SHA1 | ||
89 | EVP_add_digest(EVP_sha1()); | 95 | EVP_add_digest(EVP_sha1()); |
96 | #endif | ||
97 | #ifndef NO_MDC2 | ||
90 | EVP_add_digest(EVP_mdc2()); | 98 | EVP_add_digest(EVP_mdc2()); |
99 | #endif | ||
91 | 100 | ||
92 | data=BIO_new(BIO_s_file()); | 101 | data=BIO_new(BIO_s_file()); |
93 | 102 | ||
@@ -121,7 +130,7 @@ char *argv[]; | |||
121 | 130 | ||
122 | 131 | ||
123 | /* Load the PKCS7 object from a file */ | 132 | /* Load the PKCS7 object from a file */ |
124 | if ((p7=PEM_read_bio_PKCS7(data,NULL,NULL)) == NULL) goto err; | 133 | if ((p7=PEM_read_bio_PKCS7(data,NULL,NULL,NULL)) == NULL) goto err; |
125 | 134 | ||
126 | /* This stuff is being setup for certificate verification. | 135 | /* This stuff is being setup for certificate verification. |
127 | * When using SSL, it could be replaced with a | 136 | * When using SSL, it could be replaced with a |