pkcs7.c (127129) | pkcs7.c (215697) |
---|---|
1/* apps/pkcs7.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 68 unchanged lines hidden (view full) --- 77 * -out arg - output file - default stdout 78 * -print_certs 79 */ 80 81int MAIN(int, char **); 82 83int MAIN(int argc, char **argv) 84 { | 1/* apps/pkcs7.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 68 unchanged lines hidden (view full) --- 77 * -out arg - output file - default stdout 78 * -print_certs 79 */ 80 81int MAIN(int, char **); 82 83int MAIN(int argc, char **argv) 84 { |
85#ifndef OPENSSL_NO_ENGINE 86 ENGINE *e = NULL; 87#endif | |
88 PKCS7 *p7=NULL; 89 int i,badops=0; 90 BIO *in=NULL,*out=NULL; 91 int informat,outformat; 92 char *infile,*outfile,*prog; 93 int print_certs=0,text=0,noout=0; 94 int ret=1; 95#ifndef OPENSSL_NO_ENGINE --- 79 unchanged lines hidden (view full) --- 175#endif 176 ret = 1; 177 goto end; 178 } 179 180 ERR_load_crypto_strings(); 181 182#ifndef OPENSSL_NO_ENGINE | 85 PKCS7 *p7=NULL; 86 int i,badops=0; 87 BIO *in=NULL,*out=NULL; 88 int informat,outformat; 89 char *infile,*outfile,*prog; 90 int print_certs=0,text=0,noout=0; 91 int ret=1; 92#ifndef OPENSSL_NO_ENGINE --- 79 unchanged lines hidden (view full) --- 172#endif 173 ret = 1; 174 goto end; 175 } 176 177 ERR_load_crypto_strings(); 178 179#ifndef OPENSSL_NO_ENGINE |
183 e = setup_engine(bio_err, engine, 0); | 180 setup_engine(bio_err, engine, 0); |
184#endif 185 186 in=BIO_new(BIO_s_file()); 187 out=BIO_new(BIO_s_file()); 188 if ((in == NULL) || (out == NULL)) 189 { 190 ERR_print_errors(bio_err); 191 goto end; --- 127 unchanged lines hidden --- | 181#endif 182 183 in=BIO_new(BIO_s_file()); 184 out=BIO_new(BIO_s_file()); 185 if ((in == NULL) || (out == NULL)) 186 { 187 ERR_print_errors(bio_err); 188 goto end; --- 127 unchanged lines hidden --- |