summaryrefslogtreecommitdiff
path: root/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'dns.c')
-rw-r--r--dns.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dns.c b/dns.c
index 478c3d9c5..e5872c190 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.31 2014/06/24 01:13:21 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2003 Wesley Griffin. All rights reserved. 4 * Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -34,6 +34,8 @@
34#include <stdarg.h> 34#include <stdarg.h>
35#include <stdio.h> 35#include <stdio.h>
36#include <string.h> 36#include <string.h>
37#include <stdarg.h>
38#include <stdlib.h>
37 39
38#include "xmalloc.h" 40#include "xmalloc.h"
39#include "key.h" 41#include "key.h"
@@ -96,6 +98,11 @@ dns_read_key(u_int8_t *algorithm, u_int8_t *digest_type,
96 if (!*digest_type) 98 if (!*digest_type)
97 *digest_type = SSHFP_HASH_SHA256; 99 *digest_type = SSHFP_HASH_SHA256;
98 break; 100 break;
101 case KEY_ED25519:
102 *algorithm = SSHFP_KEY_ED25519;
103 if (!*digest_type)
104 *digest_type = SSHFP_HASH_SHA256;
105 break;
99 default: 106 default:
100 *algorithm = SSHFP_KEY_RESERVED; /* 0 */ 107 *algorithm = SSHFP_KEY_RESERVED; /* 0 */
101 *digest_type = SSHFP_HASH_RESERVED; /* 0 */ 108 *digest_type = SSHFP_HASH_RESERVED; /* 0 */