X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=apps%2Fgenrsa.c;h=37e9310910b2968c0b148531c371d5e06993b9e1;hb=eb3a3911fcb5e8df68f225d47652e7961b60f81a;hp=a9f40e8adfb3edf1e24eaa69f818adc1ebac1bdf;hpb=15671a90a9455e1909040a667557ea904692c4f4;p=openssl.git 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;