diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-08-03 16:52:49 +0200 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-09-05 11:47:59 +0100 |
commit | 81d037b8adb0232c8a4d4654f79c883dafb102bc (patch) | |
tree | 2827f746cb18320d6f0d342af0c4cc94f9e7ace0 /apps | |
parent | 17a0e930d2607e1d571c82912d5e1fa3393b2053 (diff) | |
download | openssl-81d037b8adb0232c8a4d4654f79c883dafb102bc.tar.gz |
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)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lib/apps.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 1acc991bb8..824ef16c2c 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -987,7 +987,7 @@ int load_key_certs_crls(const char *uri, int format, int maybe_stdin, if (!maybe_stdin) { if (!quiet) - 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>"; @@ -1003,11 +1003,8 @@ int load_key_certs_crls(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) { - if (!quiet) - 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; |