Make sure OSSL_STORE_load() isn't caught in an endless loop
authorRichard Levitte <levitte@openssl.org>
Sat, 1 Jul 2017 16:25:43 +0000 (18:25 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 3 Jul 2017 05:47:13 +0000 (07:47 +0200)
commit6e2f49b38429d9df00ed12ade60e3de3b9ba43b3
tree32589f4bb1776f106c3593072dd301570987b9a9
parent50c9ac07bb2aa97c0be6f7f08494943f99391724
Make sure OSSL_STORE_load() isn't caught in an endless loop

The post process callback might potentially say "no" to everything (by
constantly returning NULL) and thereby cause an endless loop.  Ensure
that we stop all processing when "eof" is reached.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/3823)
crypto/store/store_lib.c