ms/do_win64a.bat: forward to NUL, not NUL:.
[openssl.git] / apps / genrsa.c
index a9f40e8adfb3edf1e24eaa69f818adc1ebac1bdf..ece114c876a6e76410bc28204329028a901ec9a7 100644 (file)
@@ -78,7 +78,7 @@
 #include <openssl/pem.h>
 #include <openssl/rand.h>
 
-#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;