X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fgenrsa.c;h=ece114c876a6e76410bc28204329028a901ec9a7;hb=4eedf86a163284478140c46edb7b462d33898c93;hp=a9f40e8adfb3edf1e24eaa69f818adc1ebac1bdf;hpb=15671a90a9455e1909040a667557ea904692c4f4;p=oweals%2Fopenssl.git diff --git a/apps/genrsa.c b/apps/genrsa.c index a9f40e8adf..ece114c876 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -78,7 +78,7 @@ #include #include -#define DEFBITS 512 +#define DEFBITS 1024 #undef PROG #define PROG genrsa_main @@ -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;