diff options
author | Damien Miller <djm@mindrot.org> | 2014-05-15 05:45:58 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-05-15 05:45:58 +0200 |
commit | 16cd3928a87d20c77b13592a74b60b08621d3ce6 (patch) | |
tree | ca807fae00ea008b5a897ee8accda358ae07c00f /dns.c | |
parent | - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine (diff) | |
download | openssh-16cd3928a87d20c77b13592a74b60b08621d3ce6.tar.xz openssh-16cd3928a87d20c77b13592a74b60b08621d3ce6.zip |
- 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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: dns.c,v 1.29 2013/05/17 00:13:13 djm Exp $ */ +/* $OpenBSD: dns.c,v 1.30 2014/04/20 09:24:26 logan Exp $ */ /* * Copyright (c) 2003 Wesley Griffin. All rights reserved. @@ -96,6 +96,11 @@ dns_read_key(u_int8_t *algorithm, u_int8_t *digest_type, if (!*digest_type) *digest_type = SSHFP_HASH_SHA256; break; + case KEY_ED25519: + *algorithm = SSHFP_KEY_ED25519; + if (!*digest_type) + *digest_type = SSHFP_HASH_SHA256; + break; default: *algorithm = SSHFP_KEY_RESERVED; /* 0 */ *digest_type = SSHFP_HASH_RESERVED; /* 0 */ |