diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-07-12 23:55:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-07-12 23:55:30 +0000 |
commit | fd13f0ee52122e7a1f6deec1c4fd73fa1a0cb36b (patch) | |
tree | 613018755fbdbd583f7734cf51697206f997a615 /apps/req.c | |
parent | b364e5d27bb23433f5cbe3543add1ccdc0681006 (diff) |
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.c | 5 |
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)) |