mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
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.
This commit is contained in:
parent
ce2d00b2b4
commit
ff4e9d91d9
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user