Deleted Added
full compact
crl2p7.c (68651) crl2p7.c (109998)
1/* apps/crl2p7.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 *

--- 152 unchanged lines hidden (view full) ---

161 BIO_printf(bio_err,"where options are\n");
162 BIO_printf(bio_err," -inform arg input format - DER or PEM\n");
163 BIO_printf(bio_err," -outform arg output format - DER or PEM\n");
164 BIO_printf(bio_err," -in arg input file\n");
165 BIO_printf(bio_err," -out arg output file\n");
166 BIO_printf(bio_err," -certfile arg certificates file of chain to a trusted CA\n");
167 BIO_printf(bio_err," (can be used more than once)\n");
168 BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n");
1/* apps/crl2p7.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 *

--- 152 unchanged lines hidden (view full) ---

161 BIO_printf(bio_err,"where options are\n");
162 BIO_printf(bio_err," -inform arg input format - DER or PEM\n");
163 BIO_printf(bio_err," -outform arg output format - DER or PEM\n");
164 BIO_printf(bio_err," -in arg input file\n");
165 BIO_printf(bio_err," -out arg output file\n");
166 BIO_printf(bio_err," -certfile arg certificates file of chain to a trusted CA\n");
167 BIO_printf(bio_err," (can be used more than once)\n");
168 BIO_printf(bio_err," -nocrl no crl to load, just certs from '-certfile'\n");
169 EXIT(1);
169 ret = 1;
170 goto end;
170 }
171
172 ERR_load_crypto_strings();
173
174 in=BIO_new(BIO_s_file());
175 out=BIO_new(BIO_s_file());
176 if ((in == NULL) || (out == NULL))
177 {

--- 58 unchanged lines hidden (view full) ---

236 }
237 }
238
239 sk_free(certflst);
240
241 if (outfile == NULL)
242 {
243 BIO_set_fp(out,stdout,BIO_NOCLOSE);
171 }
172
173 ERR_load_crypto_strings();
174
175 in=BIO_new(BIO_s_file());
176 out=BIO_new(BIO_s_file());
177 if ((in == NULL) || (out == NULL))
178 {

--- 58 unchanged lines hidden (view full) ---

237 }
238 }
239
240 sk_free(certflst);
241
242 if (outfile == NULL)
243 {
244 BIO_set_fp(out,stdout,BIO_NOCLOSE);
244#ifdef VMS
245#ifdef OPENSSL_SYS_VMS
245 {
246 BIO *tmpbio = BIO_new(BIO_f_linebuffer());
247 out = BIO_push(tmpbio, out);
248 }
249#endif
250 }
251 else
252 {

--- 20 unchanged lines hidden (view full) ---

273 }
274 ret=0;
275end:
276 if (in != NULL) BIO_free(in);
277 if (out != NULL) BIO_free_all(out);
278 if (p7 != NULL) PKCS7_free(p7);
279 if (crl != NULL) X509_CRL_free(crl);
280
246 {
247 BIO *tmpbio = BIO_new(BIO_f_linebuffer());
248 out = BIO_push(tmpbio, out);
249 }
250#endif
251 }
252 else
253 {

--- 20 unchanged lines hidden (view full) ---

274 }
275 ret=0;
276end:
277 if (in != NULL) BIO_free(in);
278 if (out != NULL) BIO_free_all(out);
279 if (p7 != NULL) PKCS7_free(p7);
280 if (crl != NULL) X509_CRL_free(crl);
281
281 EXIT(ret);
282 apps_shutdown();
283 OPENSSL_EXIT(ret);
282 }
283
284/*
285 *----------------------------------------------------------------------
286 * int add_certs_from_file
287 *
288 * Read a list of certificates to be checked from a file.
289 *

--- 54 unchanged lines hidden ---
284 }
285
286/*
287 *----------------------------------------------------------------------
288 * int add_certs_from_file
289 *
290 * Read a list of certificates to be checked from a file.
291 *

--- 54 unchanged lines hidden ---