diff options
author | Richard Levitte <levitte@openssl.org> | 2020-10-24 16:31:57 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-10-26 09:43:39 +0100 |
commit | 22dddfb925da8775eaf4ee8c377da41e6535afe1 (patch) | |
tree | 86eae67fce686dd241e2540b7b03b42b247f7918 /apps/x509.c | |
parent | b6120b5f5442c3ddd081a9378ec89b888c3bb0fe (diff) |
APPS: Remove the format argument where it's not used
Also, restore a behaviour change, where load_cert() would look at
stdin when the input file name is NULL, and make sure to call
load_cert_pass() with a corresponding argument where load_cert() was
used in OpenSSL 1.1.1.
Fixes #13235
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13236)
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/x509.c b/apps/x509.c index 509d6e8741..8f9b7c8e40 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -629,7 +629,7 @@ int x509_main(int argc, char **argv) if (!X509_set_pubkey(x, fkey != NULL ? fkey : X509_REQ_get0_pubkey(req))) goto end; } else { - x = load_cert_pass(infile, FORMAT_UNDEF, passin, "certificate"); + x = load_cert_pass(infile, 1, passin, "certificate"); if (x == NULL) goto end; if (fkey != NULL && !X509_set_pubkey(x, fkey)) @@ -639,7 +639,7 @@ int x509_main(int argc, char **argv) } if (CA_flag) { - xca = load_cert_pass(CAfile, CAformat, passin, "CA certificate"); + xca = load_cert_pass(CAfile, 1, passin, "CA certificate"); if (xca == NULL) goto end; } |