diff options
author | Florian Mickler <florian@mickler.org> | 2020-01-13 02:05:22 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-05-24 14:37:00 +0200 |
commit | 2c6e33d86362e1b1201edef62205237f1c8e3724 (patch) | |
tree | 60eb1527414b57b210f3ecf9961273c594eb4cb2 /apps/ocsp.c | |
parent | ca29cc1453945fe92c86a312c0f94a8976a46856 (diff) |
openssl ocsp: make index.txt parsing error more verbose
If index.txt exists but has some problems (like for example consisting of a single \n character in it,
or some field-number error in one of the lines) openssl will just exit without any error message.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15360)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r-- | apps/ocsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c index c7cee0faf0..cf4f629db1 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -620,6 +620,9 @@ int ocsp_main(int argc, char **argv) if (ridx_filename != NULL) { rdb = load_index(ridx_filename, NULL); if (rdb == NULL || index_index(rdb) <= 0) { + BIO_printf(bio_err, + "Problem with index file: %s (could not load/parse file)\n", + ridx_filename); ret = 1; goto end; } |