diff options
Diffstat (limited to 'dns.c')
-rw-r--r-- | dns.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 */ |