Cleanup RAND_load_file,RAND_write_file
authorRich Salz <rsalz@openssl.org>
Wed, 5 Jul 2017 20:08:19 +0000 (16:08 -0400)
committerRich Salz <rsalz@openssl.org>
Thu, 6 Jul 2017 17:59:11 +0000 (13:59 -0400)
commit9ee344f5cd5e935c60d3bf7c3ce9ee21895069db
tree1ea4f471479184095329b3d8087e149081ea0918
parent60eba30f60de55e3c782469fa555eede82606099
Cleanup RAND_load_file,RAND_write_file

Document an internal assumption that these are only for use with files,
and return an error if not. That made the code much simpler.
Leave it as writing 1024 bytes, even though we don't need more than 256
from a security perspective.  But the amount isn't specified, now, so we
can change it later if we want.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3864)
crypto/err/openssl.txt
crypto/rand/rand_err.c
crypto/rand/randfile.c
doc/man3/RAND_load_file.pod
include/openssl/randerr.h