RAND_load_file(): return error if reseeding failed
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sat, 20 Oct 2018 14:53:57 +0000 (16:53 +0200)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Fri, 26 Oct 2018 06:50:26 +0000 (08:50 +0200)
commit13ce86259ebe6bba2096f0135337a93dba625ecb
treee165a16840bcc92ba5234701dc81f5e50f255932
parent85299451cbdcb734e67adf14c64597a64dd11737
RAND_load_file(): return error if reseeding failed

The failure of RAND_load_file was only noticed because of the
heap corruption which was reported in #7499 and fixed in commit
5b4cb385c18a. To prevent this in the future, RAND_load_file()
now explicitly checks RAND_status() and reports an error if it
fails.

Related-to: #7449
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7456)
crypto/rand/randfile.c