summaryrefslogtreecommitdiff
path: root/dns.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-05-15 13:45:58 +1000
committerDamien Miller <djm@mindrot.org>2014-05-15 13:45:58 +1000
commit16cd3928a87d20c77b13592a74b60b08621d3ce6 (patch)
treeca807fae00ea008b5a897ee8accda358ae07c00f /dns.c
parentec0b67eb3b4e12f296ced1fafa01860c374f7eea (diff)
- logan@cvs.openbsd.org 2014/04/20 09:24:26
[dns.c dns.h ssh-keygen.c] Add support for SSHFP DNS records for ED25519 key types. OK from djm@
Diffstat (limited to 'dns.c')
-rw-r--r--dns.c7
1 files changed, 6 insertions, 1 deletions
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 */