use supplied ENGINE in genrsa
authorDr. Stephen Henson <steve@openssl.org>
Mon, 1 Mar 2010 14:22:02 +0000 (14:22 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 1 Mar 2010 14:22:02 +0000 (14:22 +0000)
apps/genrsa.c

index a9f40e8..37e9310 100644 (file)
@@ -265,8 +265,11 @@ bad:
 
        BIO_printf(bio_err,"Generating RSA private key, %d bit long modulus\n",
                num);
-
+#ifdef OPENSSL_NO_ENGINE
        rsa = RSA_new();
+#else
+       rsa = RSA_new_method(e);
+#endif
        if (!rsa)
                goto err;