summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/genrsa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c
index a9f40e8adf..37e9310910 100644
--- a/apps/genrsa.c
+++ b/apps/genrsa.c
@@ -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;