mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
apps/storeutl: Add error output in case of parse/decryption/mac errors in input files
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/4930)
This commit is contained in:
parent
852feb3bd8
commit
0c2c560cb9
@ -395,18 +395,20 @@ static int process(const char *uri, const UI_METHOD *uimeth, PW_CB_DATA *uidata,
|
||||
info == NULL ? NULL : OSSL_STORE_INFO_type_string(type);
|
||||
|
||||
if (info == NULL) {
|
||||
if (OSSL_STORE_eof(store_ctx))
|
||||
break;
|
||||
|
||||
if (OSSL_STORE_error(store_ctx)) {
|
||||
if (recursive)
|
||||
ERR_clear_error();
|
||||
else
|
||||
ERR_print_errors(bio_err);
|
||||
if (OSSL_STORE_eof(store_ctx))
|
||||
break;
|
||||
ret++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (OSSL_STORE_eof(store_ctx))
|
||||
break;
|
||||
|
||||
BIO_printf(bio_err,
|
||||
"ERROR: OSSL_STORE_load() returned NULL without "
|
||||
"eof or error indications\n");
|
||||
|
Loading…
Reference in New Issue
Block a user