diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-08-03 16:52:49 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2023-09-05 21:04:10 +0200 |
commit | cbec14fec130be42657c76830e4e7f0018096a02 (patch) | |
tree | 3d9d9736ad741af0e903f729b7d59829ee0fdb1c | |
parent | 7c14ec86fefeb3dc92e56e7937d10cbe60f13e67 (diff) |
apps.c: fix error messages (newline and needless text) in load_key_certs_crls()
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21659)
(cherry picked from commit 81d037b8adb0232c8a4d4654f79c883dafb102bc)
-rw-r--r-- | apps/lib/apps.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 4baeb352fe..04425ea1d7 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -944,7 +944,7 @@ int load_key_certs_crls_suppress(const char *uri, int format, int maybe_stdin, BIO *bio; if (!maybe_stdin) { - BIO_printf(bio_err, "No filename or uri specified for loading"); + BIO_printf(bio_err, "No filename or uri specified for loading\n"); goto end; } uri = "<stdin>"; @@ -960,10 +960,8 @@ int load_key_certs_crls_suppress(const char *uri, int format, int maybe_stdin, ctx = OSSL_STORE_open_ex(uri, libctx, propq, get_ui_method(), &uidata, params, NULL, NULL); } - if (ctx == NULL) { - BIO_printf(bio_err, "Could not open file or uri for loading"); + if (ctx == NULL) goto end; - } if (expect > 0 && !OSSL_STORE_expect(ctx, expect)) goto end; |