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)
This commit is contained in:
Dr. David von Oheimb 2023-01-16 19:38:01 +01:00 committed by Tomas Mraz
parent c007203b94
commit fedab100a4

View 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();