projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use default digest implementation in dgst.c
[oweals/openssl.git]
/
apps
/
genrsa.c
diff --git
a/apps/genrsa.c
b/apps/genrsa.c
index a9f40e8adfb3edf1e24eaa69f818adc1ebac1bdf..ece114c876a6e76410bc28204329028a901ec9a7 100644
(file)
--- a/
apps/genrsa.c
+++ b/
apps/genrsa.c
@@
-78,7
+78,7
@@
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
-#define DEFBITS
512
+#define DEFBITS
1024
#undef PROG
#define PROG genrsa_main
#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);
BIO_printf(bio_err,"Generating RSA private key, %d bit long modulus\n",
num);
-
+#ifdef OPENSSL_NO_ENGINE
rsa = RSA_new();
rsa = RSA_new();
+#else
+ rsa = RSA_new_method(e);
+#endif
if (!rsa)
goto err;
if (!rsa)
goto err;