add option to get a certificate or CRL from a URL
[openssl.git] / apps / crl.c
index c395b2afd5d45c2461b4e9fa5cc94cf7483de10a..888cf7ff8d35bf59fdfe648f0903da1eaa59f133 100644 (file)
@@ -407,6 +407,12 @@ 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)
                {