summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-04-22 11:24:21 +1000
committerDamien Miller <djm@mindrot.org>2012-04-22 11:24:21 +1000
commit839f743464ae1cdd7d75b2e759738a9e8d00d609 (patch)
treef0e5021fec6f21f3ff0c4266e846fd635c40944b
parenta116d13c4daeb5416766bc506065eb495409977e (diff)
- djm@cvs.openbsd.org 2012/04/11 13:34:17
[ssh-keyscan.1 ssh-keyscan.c] now that sshd defaults to offering ECDSA keys, ssh-keyscan should also look for them by default; bz#1971
-rw-r--r--ChangeLog4
-rw-r--r--ssh-keyscan.111
-rw-r--r--ssh-keyscan.c4
3 files changed, 13 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index f58907574..9c9b3fd0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,10 @@
29 [sshd.c] 29 [sshd.c]
30 don't spin in accept() when out of fds (ENFILE/ENFILE) - back off for a 30 don't spin in accept() when out of fds (ENFILE/ENFILE) - back off for a
31 while; ok deraadt@ markus@ 31 while; ok deraadt@ markus@
32 - djm@cvs.openbsd.org 2012/04/11 13:34:17
33 [ssh-keyscan.1 ssh-keyscan.c]
34 now that sshd defaults to offering ECDSA keys, ssh-keyscan should also
35 look for them by default; bz#1971
32 36
3320120420 3720120420
34 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] 38 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
diff --git a/ssh-keyscan.1 b/ssh-keyscan.1
index fe9bb6e07..f2b0fc8fa 100644
--- a/ssh-keyscan.1
+++ b/ssh-keyscan.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ssh-keyscan.1,v 1.29 2010/08/31 11:54:45 djm Exp $ 1.\" $OpenBSD: ssh-keyscan.1,v 1.30 2012/04/11 13:34:17 djm Exp $
2.\" 2.\"
3.\" Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. 3.\" Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
4.\" 4.\"
@@ -6,7 +6,7 @@
6.\" permitted provided that due credit is given to the author and the 6.\" permitted provided that due credit is given to the author and the
7.\" OpenBSD project by leaving this copyright notice intact. 7.\" OpenBSD project by leaving this copyright notice intact.
8.\" 8.\"
9.Dd $Mdocdate: August 31 2010 $ 9.Dd $Mdocdate: April 11 2012 $
10.Dt SSH-KEYSCAN 1 10.Dt SSH-KEYSCAN 1
11.Os 11.Os
12.Sh NAME 12.Sh NAME
@@ -94,8 +94,11 @@ or
94.Dq rsa 94.Dq rsa
95for protocol version 2. 95for protocol version 2.
96Multiple values may be specified by separating them with commas. 96Multiple values may be specified by separating them with commas.
97The default is 97The default is to fetch
98.Dq rsa . 98.Dq rsa
99and
100.Dq ecdsa
101keys.
99.It Fl v 102.It Fl v
100Verbose mode. 103Verbose mode.
101Causes 104Causes
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index b085dd417..c9de130f4 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keyscan.c,v 1.85 2011/03/15 10:36:02 okan Exp $ */ 1/* $OpenBSD: ssh-keyscan.c,v 1.86 2012/04/11 13:34:17 djm Exp $ */
2/* 2/*
3 * Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. 3 * Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
4 * 4 *
@@ -57,7 +57,7 @@ int ssh_port = SSH_DEFAULT_PORT;
57#define KT_RSA 4 57#define KT_RSA 4
58#define KT_ECDSA 8 58#define KT_ECDSA 8
59 59
60int get_keytypes = KT_RSA; /* Get only RSA keys by default */ 60int get_keytypes = KT_RSA|KT_ECDSA;/* Get RSA and ECDSA keys by default */
61 61
62int hash_hosts = 0; /* Hash hostname on output */ 62int hash_hosts = 0; /* Hash hostname on output */
63 63