From: Dr. Stephen Henson Date: Mon, 1 Mar 2010 14:22:21 +0000 (+0000) Subject: use supplied ENGINE in genrsa X-Git-Tag: OpenSSL-fips-2_0-rc1~1234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a05b8d0edeb612ace8b8902a3eba34d4f500e887;p=openssl use supplied ENGINE in genrsa --- 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;