aboutsummaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-07-12 23:55:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-07-12 23:55:30 +0000
commitfd13f0ee52122e7a1f6deec1c4fd73fa1a0cb36b (patch)
tree613018755fbdbd583f7734cf51697206f997a615 /apps/req.c
parentb364e5d27bb23433f5cbe3543add1ccdc0681006 (diff)
downloadopenssl-fd13f0ee52122e7a1f6deec1c4fd73fa1a0cb36b.tar.gz
Make req seed the PRNG if signing with
an already existing DSA key. Document the new smime options.
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c
index fd26ed8343..6a225bb431 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -547,6 +547,11 @@ bad:
BIO_printf(bio_err,"unable to load Private key\n");
goto end;
}
+ if (EVP_PKEY_type(pkey->type) == EVP_PKEY_DSA)
+ {
+ char *randfile = CONF_get_string(req_conf,SECTION,"RANDFILE");
+ app_RAND_load_file(randfile, bio_err, 0);
+ }
}
if (newreq && (pkey == NULL))