From 2e630b184711dd616201071766864d687c4113ad Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 1 Mar 2010 14:22:02 +0000 Subject: [PATCH] use supplied ENGINE in genrsa --- apps/genrsa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.25.1