diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-04-28 12:51:49 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2021-04-30 16:04:52 +1000 |
commit | e9d62da6c305d947530d91e412fdb21a8d8e3510 (patch) | |
tree | 85779474a2d93c84c351e697aed8627c269c2040 /apps/crl.c | |
parent | 9ac653d81a857a5452f9f25278a24e1dfb226905 (diff) | |
download | openssl-e9d62da6c305d947530d91e412fdb21a8d8e3510.tar.gz |
Fix CRL app so that stdin works.
Fixes #15031
The maybe_stdin needed to be passed to load_key_certs_crls().
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15058)
Diffstat (limited to 'apps/crl.c')
-rw-r--r-- | apps/crl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/crl.c b/apps/crl.c index fbdd2a896c..8a0dc3605d 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -211,7 +211,7 @@ int crl_main(int argc, char **argv) if (!opt_md(digestname, &digest)) goto opthelp; } - x = load_crl(infile, "CRL"); + x = load_crl(infile, 1, "CRL"); if (x == NULL) goto end; @@ -250,13 +250,13 @@ int crl_main(int argc, char **argv) BIO_printf(bio_err, "verify OK\n"); } - if (crldiff) { + if (crldiff != NULL) { X509_CRL *newcrl, *delta; if (!keyfile) { BIO_puts(bio_err, "Missing CRL signing key\n"); goto end; } - newcrl = load_crl(crldiff, "other CRL"); + newcrl = load_crl(crldiff, 0, "other CRL"); if (!newcrl) goto end; pkey = load_key(keyfile, keyformat, 0, NULL, NULL, "CRL signing key"); |