summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-12-12 03:35:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-12-12 03:35:31 +0000
commit60938ae772ae3dc21f38e97c524145f6d21bd910 (patch)
treefe310034661b3bef28b6a6d07b5132890bd45a14 /apps
parent4e71d95260e87169da9f951ce15f1d5a2cf5f7d3 (diff)
add -crl_download option to s_server
Diffstat (limited to 'apps')
-rw-r--r--apps/s_server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index dc0cc36fb0..ce83a1bcd4 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -995,6 +995,7 @@ int MAIN(int argc, char *argv[])
char *crl_file = NULL;
int crl_format = FORMAT_PEM;
+ int crl_download = 0;
STACK_OF(X509_CRL) *crls = NULL;
meth=SSLv23_server_method();
@@ -1080,6 +1081,8 @@ int MAIN(int argc, char *argv[])
if (--argc < 1) goto bad;
crl_file= *(++argv);
}
+ else if (strcmp(*argv,"-crl_download") == 0)
+ crl_download = 1;
#ifndef OPENSSL_NO_TLSEXT
else if (strcmp(*argv,"-authz") == 0)
{
@@ -1720,7 +1723,8 @@ bad:
if (!args_ssl_call(ctx, bio_err, cctx, ssl_args, no_ecdhe))
goto end;
- if (!ssl_load_stores(ctx, vfyCApath, vfyCAfile, chCApath, chCAfile, crls, 0))
+ if (!ssl_load_stores(ctx, vfyCApath, vfyCAfile, chCApath, chCAfile,
+ crls, crl_download))
{
BIO_printf(bio_err, "Error loading store locations\n");
ERR_print_errors(bio_err);