X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fpkcs7.c;h=0e1427cc315513ac91a7ed82396828b1f8591f82;hp=9f96edc5655951aeeca559ee764085bee79b191e;hb=37b7185b5dafec8c1798b2f7ebb3e5c22bf74fa4;hpb=9fe84296a437312d5ab634f89087ff1a02c86db5 diff --git a/apps/pkcs7.c b/apps/pkcs7.c index 9f96edc565..0e1427cc31 100644 --- a/apps/pkcs7.c +++ b/apps/pkcs7.c @@ -61,12 +61,12 @@ #include #include #include "apps.h" -#include "err.h" -#include "objects.h" -#include "evp.h" -#include "x509.h" -#include "pkcs7.h" -#include "pem.h" +#include +#include +#include +#include +#include +#include #undef PROG #define PROG pkcs7_main @@ -81,9 +81,7 @@ * -print_certs */ -int MAIN(argc, argv) -int argc; -char **argv; +int MAIN(int argc, char **argv) { PKCS7 *p7=NULL; int i,badops=0; @@ -197,7 +195,7 @@ bad: if (informat == FORMAT_ASN1) p7=d2i_PKCS7_bio(in,NULL); else if (informat == FORMAT_PEM) - p7=PEM_read_bio_PKCS7(in,NULL,NULL); + p7=PEM_read_bio_PKCS7(in,NULL,NULL,NULL); else { BIO_printf(bio_err,"bad input format specified for pkcs7 object\n"); @@ -223,8 +221,8 @@ bad: if (print_certs) { - STACK *certs=NULL; - STACK *crls=NULL; + STACK_OF(X509) *certs=NULL; + STACK_OF(X509_CRL) *crls=NULL; i=OBJ_obj2nid(p7->type); switch (i) @@ -245,9 +243,9 @@ bad: { X509 *x; - for (i=0; icrl->issuer,buf,256); BIO_puts(out,"issuer= ");