Always seed PRNG for new requests no matter what key type. RSA may need
authorDr. Stephen Henson <steve@openssl.org>
Mon, 12 May 2008 16:07:00 +0000 (16:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 12 May 2008 16:07:00 +0000 (16:07 +0000)
the PRNG for blinding.

PR: 1666

apps/req.c

index f58e65ec852f9d87177d48685be32fa8b3146c0f..5ed08960c1dcf9fb128375fe083b49eba93bae3a 100644 (file)
@@ -719,8 +719,7 @@ bad:
                           message */
                        goto end;
                        }
-               if (EVP_PKEY_type(pkey->type) == EVP_PKEY_DSA || 
-                       EVP_PKEY_type(pkey->type) == EVP_PKEY_EC)
+               else
                        {
                        char *randfile = NCONF_get_string(req_conf,SECTION,"RANDFILE");
                        if (randfile == NULL)