Skip to content

Commit

Permalink
apps.c: fix error messages (newline and needless text) in load_key_ce…
Browse files Browse the repository at this point in the history
…rts_crls()

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #21659)
  • Loading branch information
DDvO authored and hlandau committed Sep 5, 2023
1 parent 17a0e93 commit 81d037b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/lib/apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand All @@ -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;

Expand Down

0 comments on commit 81d037b

Please sign in to comment.