summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authordtucker <dtucker>2010-01-08 07:52:27 +0000
committerdtucker <dtucker>2010-01-08 07:52:27 +0000
commit10649b29affb59c4d7d5ab1cc25979aa3d1ceb87 (patch)
treeb5256ca0c780d8088fe5786aa7867b07933bc8ba /key.c
parente955cbb029aba3cf5f6993e936b6da30c889aff1 (diff)
downloadopenssh-10649b29affb59c4d7d5ab1cc25979aa3d1ceb87.tar.gz
- markus@cvs.openbsd.org 2009/12/11 18:16:33
[key.c] switch from 35 to the more common value of RSA_F4 == (2**16)+1 == 65537 for the RSA public exponent; discussed with provos; ok djm@
Diffstat (limited to 'key.c')
-rw-r--r--key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/key.c b/key.c
index 3e17da60..f2edf6d5 100644
--- a/key.c
+++ b/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.80 2008/10/10 05:00:12 stevesk Exp $ */
+/* $OpenBSD: key.c,v 1.81 2009/12/11 18:16:33 markus Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -685,7 +685,7 @@ rsa_generate_private_key(u_int bits)
{
RSA *private;
- private = RSA_generate_key(bits, 35, NULL, NULL);
+ private = RSA_generate_key(bits, RSA_F4, NULL, NULL);
if (private == NULL)
fatal("rsa_generate_private_key: key generation failed.");
return private;