diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-12-02 16:16:28 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-12-02 16:16:28 +0000 |
commit | fdb78f3d8867c9b0c21608840ce0bd3135bcd710 (patch) | |
tree | 52488ff5454690b376d5e1f4b65aeb7d67178db5 /apps/crl.c | |
parent | 95ea53186413c293d981ec1b042954a5fa47d8b7 (diff) | |
download | openssl-fdb78f3d8867c9b0c21608840ce0bd3135bcd710.zip openssl-fdb78f3d8867c9b0c21608840ce0bd3135bcd710.tar.gz openssl-fdb78f3d8867c9b0c21608840ce0bd3135bcd710.tar.bz2 |
New option to add CRLs for s_client and s_server.
Diffstat (limited to 'apps/crl.c')
-rw-r--r-- | apps/crl.c | 50 |
1 files changed, 0 insertions, 50 deletions
@@ -93,7 +93,6 @@ static const char *crl_usage[]={ NULL }; -static X509_CRL *load_crl(char *file, int format); static BIO *bio_out=NULL; int MAIN(int, char **); @@ -401,52 +400,3 @@ end: apps_shutdown(); OPENSSL_EXIT(ret); } - -static X509_CRL *load_crl(char *infile, int format) - { - X509_CRL *x=NULL; - BIO *in=NULL; - - if (format == FORMAT_HTTP) - { - load_cert_crl_http(infile, bio_err, NULL, &x); - return x; - } - - in=BIO_new(BIO_s_file()); - if (in == NULL) - { - ERR_print_errors(bio_err); - goto end; - } - - if (infile == NULL) - BIO_set_fp(in,stdin,BIO_NOCLOSE); - else - { - if (BIO_read_filename(in,infile) <= 0) - { - perror(infile); - goto end; - } - } - if (format == FORMAT_ASN1) - x=d2i_X509_CRL_bio(in,NULL); - else if (format == FORMAT_PEM) - x=PEM_read_bio_X509_CRL(in,NULL,NULL,NULL); - else { - BIO_printf(bio_err,"bad input format specified for input crl\n"); - goto end; - } - if (x == NULL) - { - BIO_printf(bio_err,"unable to load CRL\n"); - ERR_print_errors(bio_err); - goto end; - } - -end: - BIO_free(in); - return(x); - } - |