From: Dr. David von Oheimb Date: Mon, 16 Jan 2023 18:38:01 +0000 (+0100) Subject: APPS load_key_certs_crls(): improve diagnostics on not finding expected types of... X-Git-Tag: openssl-3.2.0-alpha1~1345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fedab100a4b8f4c3b81de632f29c159fb46ac3f2;p=thirdparty%2Fopenssl.git APPS load_key_certs_crls(): improve diagnostics on not finding expected types of contents Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20156) --- diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 16d0cf9a85a..6b4f9e586a0 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -1071,7 +1071,9 @@ int load_key_certs_crls(const char *uri, int format, int maybe_stdin, if (failed == NULL) { failed = FAIL_NAME; if (failed != NULL) - BIO_printf(bio_err, "Could not read"); + BIO_printf(bio_err, "Could not find"); + } else { + BIO_printf(bio_err, "Could not read"); } if (failed != NULL) { unsigned long err = ERR_peek_last_error();