summaryrefslogtreecommitdiffstats
path: root/apps/genrsa.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-01 14:22:21 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-01 14:22:21 +0000
commita05b8d0edeb612ace8b8902a3eba34d4f500e887 (patch)
tree76227a893cdbc416c7f2bc40d4c77f52e72f3437 /apps/genrsa.c
parentff2fdbf2f84ce3ccd93e245c577c4ed7f6341cb1 (diff)
use supplied ENGINE in genrsa
Diffstat (limited to 'apps/genrsa.c')
-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;