aboutsummaryrefslogtreecommitdiffstats
path: root/apps/gendh.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2014-09-08 17:14:36 -0400
committerRich Salz <rsalz@openssl.org>2014-09-08 17:21:04 -0400
commit44e0c2bae4bfd87d770480902618dbccde84fd81 (patch)
treefec922dd02ccada0d46acea1710604171a5633d8 /apps/gendh.c
parent5f855569c452262a8770ed822c7f98f5fac3e3d6 (diff)
downloadopenssl-44e0c2bae4bfd87d770480902618dbccde84fd81.tar.gz
RT2626: Change default_bits from 1K to 2K
This is a more comprehensive fix. It changes all keygen apps to use 2K keys. It also changes the default to use SHA256 not SHA1. This is from Kurt's upstream Debian changes. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'apps/gendh.c')
-rw-r--r--apps/gendh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gendh.c b/apps/gendh.c
index 4ec776ba93..8df8c62f8a 100644
--- a/apps/gendh.c
+++ b/apps/gendh.c
@@ -78,7 +78,7 @@
#include <openssl/x509.h>
#include <openssl/pem.h>
-#define DEFBITS 512
+#define DEFBITS 2048
#undef PROG
#define PROG gendh_main