RAND_load_file(..., -1) now means "read the complete file";

this is what we now use to read $RANDFILE / $HOME/.rnd.
(Previously, after 'cat'ting lots of stuff into .rnd
only the first MB would be looked at.)

Bugfix for apps/enc.c: Continue if RAND_pseudo_bytes returns 0
(only -1 is an error).
This commit is contained in:
Bodo Möller
2000-01-24 10:03:24 +00:00
parent f13b93d3b4
commit 05ccd698b9
4 changed files with 21 additions and 10 deletions

View File

@@ -130,7 +130,7 @@ int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
if (file == NULL)
file = RAND_file_name(buffer, sizeof buffer);
if (file == NULL || !RAND_load_file(file, 1024L*1024L))
if (file == NULL || !RAND_load_file(file, -1))
{
if (!dont_warn)
{