diff options
author | Richard Levitte <levitte@openssl.org> | 2000-06-22 21:16:01 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-06-22 21:16:01 +0000 |
commit | ff4e9d91d94d8065e70ba5e6760346b33bba9654 (patch) | |
tree | 069de2c6794210718eef9f11dac257235cd1cb6c /apps | |
parent | ce2d00b2b46421562de2ffb40ebce6c26a2778d5 (diff) | |
download | openssl-ff4e9d91d94d8065e70ba5e6760346b33bba9654.tar.gz |
Change req so the new parameter '-rand file' uses the given file in
addition to the file given through the RANDFILE option or environment
variable.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/req.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/req.c b/apps/req.c index b9b19b8312..4b9c3a1ed8 100644 --- a/apps/req.c +++ b/apps/req.c @@ -552,13 +552,10 @@ bad: if (newreq && (pkey == NULL)) { - char *randfile; - - if (inrand) - randfile = inrand; - else - randfile = CONF_get_string(req_conf,SECTION,"RANDFILE"); + char *randfile = CONF_get_string(req_conf,SECTION,"RANDFILE"); app_RAND_load_file(randfile, bio_err, 0); + if (inrand) + app_RAND_load_files(inrand); if (newkey <= 0) { |