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 cd59fe077efe0ad4a1010f6be9b8759cd3e94d57..7953f9ddc177439cfd727fd247fbc90229602f4f 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)