]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
APPS load_key_certs_crls(): improve diagnostics on not finding expected types of...
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 16 Jan 2023 18:38:01 +0000 (19:38 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Feb 2023 07:58:10 +0000 (08:58 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20156)

apps/lib/apps.c

index 16d0cf9a85af1eac244a3708d197be73aef224ca..6b4f9e586a0fd6c40c3f8b9e207550325cde9754 100644 (file)
@@ -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();