提交 ff4e9d91 编写于 作者: R Richard Levitte

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.
上级 ce2d00b2
...@@ -552,13 +552,10 @@ bad: ...@@ -552,13 +552,10 @@ bad:
if (newreq && (pkey == NULL)) if (newreq && (pkey == NULL))
{ {
char *randfile; char *randfile = CONF_get_string(req_conf,SECTION,"RANDFILE");
if (inrand)
randfile = inrand;
else
randfile = CONF_get_string(req_conf,SECTION,"RANDFILE");
app_RAND_load_file(randfile, bio_err, 0); app_RAND_load_file(randfile, bio_err, 0);
if (inrand)
app_RAND_load_files(inrand);
if (newkey <= 0) if (newkey <= 0)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册