summaryrefslogtreecommitdiff
path: root/dns.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-06-20 21:51:11 +1000
committerDamien Miller <djm@mindrot.org>2012-06-20 21:51:11 +1000
commit3bde12aeef60c9e1221316aff1fe1aca78eca027 (patch)
tree391e98a1c7a72c4f02afb0407dbcc9a4ef6174aa /dns.h
parentac58ce86e6f4dcb245d5e1aa28a5c7a9f4a56072 (diff)
- djm@cvs.openbsd.org 2012/05/23 03:28:28
[dns.c dns.h key.c key.h ssh-keygen.c] add support for RFC6594 SSHFP DNS records for ECDSA key types. patch from bugzilla-m67 AT nulld.me in bz#1978; ok + tweak markus@
Diffstat (limited to 'dns.h')
-rw-r--r--dns.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/dns.h b/dns.h
index 90cfd7b92..d5f428177 100644
--- a/dns.h
+++ b/dns.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dns.h,v 1.11 2010/02/26 20:29:54 djm Exp $ */ 1/* $OpenBSD: dns.h,v 1.12 2012/05/23 03:28:28 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2003 Wesley Griffin. All rights reserved. 4 * Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -29,14 +29,17 @@
29#define DNS_H 29#define DNS_H
30 30
31enum sshfp_types { 31enum sshfp_types {
32 SSHFP_KEY_RESERVED, 32 SSHFP_KEY_RESERVED = 0,
33 SSHFP_KEY_RSA, 33 SSHFP_KEY_RSA = 1,
34 SSHFP_KEY_DSA 34 SSHFP_KEY_DSA = 2,
35 SSHFP_KEY_ECDSA = 3
35}; 36};
36 37
37enum sshfp_hashes { 38enum sshfp_hashes {
38 SSHFP_HASH_RESERVED, 39 SSHFP_HASH_RESERVED = 0,
39 SSHFP_HASH_SHA1 40 SSHFP_HASH_SHA1 = 1,
41 SSHFP_HASH_SHA256 = 2,
42 SSHFP_HASH_MAX = 3
40}; 43};
41 44
42#define DNS_RDATACLASS_IN 1 45#define DNS_RDATACLASS_IN 1