diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-11 15:50:36 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-11-19 11:36:02 +0100 |
commit | 0c2c560cb96346737bace83eb01f8e8aa5970f81 (patch) | |
tree | 0a40543626670e2cbde9488eebb5559b6f162c29 /apps/storeutl.c | |
parent | 852feb3bd8a42ab441bd726ffc96c5757b7a936c (diff) |
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)
Diffstat (limited to 'apps/storeutl.c')
-rw-r--r-- | apps/storeutl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/storeutl.c b/apps/storeutl.c index fcd874ea5d..facbf63333 100644 --- a/apps/storeutl.c +++ b/apps/storeutl.c @@ -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"); |