projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce2d00b
)
Change req so the new parameter '-rand file' uses the given file in
author
Richard Levitte
<levitte@openssl.org>
Thu, 22 Jun 2000 21:16:01 +0000
(21:16 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 22 Jun 2000 21:16:01 +0000
(21:16 +0000)
addition to the file given through the RANDFILE option or environment
variable.
apps/req.c
patch
|
blob
|
history
diff --git
a/apps/req.c
b/apps/req.c
index b9b19b83129caac4105481af399b3c0b9da82df0..4b9c3a1ed88b82a15362ee23a66bc0582de7034d 100644
(file)
--- 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)
{