summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2023-01-16 19:38:01 +0100
committerTomas Mraz <tomas@openssl.org>2023-02-02 08:58:10 +0100
commitfedab100a4b8f4c3b81de632f29c159fb46ac3f2 (patch)
tree3f1c4f49d307281114823047f36d2a40adbaeb36 /apps
parentc007203b94b6921ebc8103cb7ae51af554c86afe (diff)
downloadopenssl-new-fedab100a4b8f4c3b81de632f29c159fb46ac3f2.tar.gz
APPS load_key_certs_crls(): improve diagnostics on not finding expected types of contents
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20156)
Diffstat (limited to 'apps')
-rw-r--r--apps/lib/apps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c
index 16d0cf9a85..6b4f9e586a 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();