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/s_client.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/s_client.c')
-rw-r--r-- | apps/s_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 512ac0547b..98f034f112 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1731,7 +1731,7 @@ int s_client_main(int argc, char **argv) } if (cert_file != NULL) { - cert = load_cert_pass(cert_file, cert_format, pass, "client certificate"); + cert = load_cert_pass(cert_file, 1, pass, "client certificate"); if (cert == NULL) goto end; } @@ -1743,7 +1743,7 @@ int s_client_main(int argc, char **argv) if (crl_file != NULL) { X509_CRL *crl; - crl = load_crl(crl_file, crl_format, "CRL"); + crl = load_crl(crl_file, "CRL"); if (crl == NULL) goto end; crls = sk_X509_CRL_new_null(); |