Fix from stable branch.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 12 May 2008 16:24:31 +0000 (16:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 12 May 2008 16:24:31 +0000 (16:24 +0000)
apps/req.c

index cd59fe0..7953f9d 100644 (file)
@@ -617,8 +617,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)