summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--dns.c7
-rw-r--r--dns.h5
-rw-r--r--ssh-keygen.c5
4 files changed, 17 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 909d0e169..ff9c3cb46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
120140519 120140519
2 - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine 2 - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine
3 OpenBSD 3 OpenBSD
4 - OpenBSD CVS Sync
5 - logan@cvs.openbsd.org 2014/04/20 09:24:26
6 [dns.c dns.h ssh-keygen.c]
7 Add support for SSHFP DNS records for ED25519 key types.
8 OK from djm@
4 9
520140430 1020140430
6 - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already 11 - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already
diff --git a/dns.c b/dns.c
index 630b97ae8..c780f8ba7 100644
--- a/dns.c
+++ b/dns.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dns.c,v 1.29 2013/05/17 00:13:13 djm Exp $ */ 1/* $OpenBSD: dns.c,v 1.30 2014/04/20 09:24:26 logan Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2003 Wesley Griffin. All rights reserved. 4 * Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -96,6 +96,11 @@ dns_read_key(u_int8_t *algorithm, u_int8_t *digest_type,
96 if (!*digest_type) 96 if (!*digest_type)
97 *digest_type = SSHFP_HASH_SHA256; 97 *digest_type = SSHFP_HASH_SHA256;
98 break; 98 break;
99 case KEY_ED25519:
100 *algorithm = SSHFP_KEY_ED25519;
101 if (!*digest_type)
102 *digest_type = SSHFP_HASH_SHA256;
103 break;
99 default: 104 default:
100 *algorithm = SSHFP_KEY_RESERVED; /* 0 */ 105 *algorithm = SSHFP_KEY_RESERVED; /* 0 */
101 *digest_type = SSHFP_HASH_RESERVED; /* 0 */ 106 *digest_type = SSHFP_HASH_RESERVED; /* 0 */
diff --git a/dns.h b/dns.h
index d5f428177..b9feae6be 100644
--- a/dns.h
+++ b/dns.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dns.h,v 1.12 2012/05/23 03:28:28 djm Exp $ */ 1/* $OpenBSD: dns.h,v 1.13 2014/04/20 09:24:26 logan Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2003 Wesley Griffin. All rights reserved. 4 * Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -32,7 +32,8 @@ enum sshfp_types {
32 SSHFP_KEY_RESERVED = 0, 32 SSHFP_KEY_RESERVED = 0,
33 SSHFP_KEY_RSA = 1, 33 SSHFP_KEY_RSA = 1,
34 SSHFP_KEY_DSA = 2, 34 SSHFP_KEY_DSA = 2,
35 SSHFP_KEY_ECDSA = 3 35 SSHFP_KEY_ECDSA = 3,
36 SSHFP_KEY_ED25519 = 4
36}; 37};
37 38
38enum sshfp_hashes { 39enum sshfp_hashes {
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 75dea318f..d37b7f7f2 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.243 2014/03/15 17:28:26 deraadt Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.244 2014/04/20 09:24:26 logan Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2498,7 +2498,8 @@ main(int argc, char **argv)
2498 _PATH_HOST_DSA_KEY_FILE, rr_hostname); 2498 _PATH_HOST_DSA_KEY_FILE, rr_hostname);
2499 n += do_print_resource_record(pw, 2499 n += do_print_resource_record(pw,
2500 _PATH_HOST_ECDSA_KEY_FILE, rr_hostname); 2500 _PATH_HOST_ECDSA_KEY_FILE, rr_hostname);
2501 2501 n += do_print_resource_record(pw,
2502 _PATH_HOST_ED25519_KEY_FILE, rr_hostname);
2502 if (n == 0) 2503 if (n == 0)
2503 fatal("no keys found."); 2504 fatal("no keys found.");
2504 exit(0); 2505 exit(0);