load_key_certs_crls(): There is no quiet argument

This fixes broken cherry-pick from the master branch
where there is a quiet argument.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22434)

(cherry picked from commit 307048cd4e)
This commit is contained in:
Tomas Mraz 2023-10-19 10:30:15 +02:00
parent b130e18e43
commit d97993a7a0
1 changed files with 2 additions and 4 deletions

View File

@ -961,13 +961,11 @@ int load_key_certs_crls_suppress(const char *uri, int format, int maybe_stdin,
params, NULL, NULL);
}
if (ctx == NULL) {
if (!quiet)
BIO_printf(bio_err, "Could not open file or uri for loading");
BIO_printf(bio_err, "Could not open file or uri for loading");
goto end;
}
if (expect > 0 && !OSSL_STORE_expect(ctx, expect)) {
if (!quiet)
BIO_printf(bio_err, "Internal error trying to load");
BIO_printf(bio_err, "Internal error trying to load");
goto end;
}