diff options
author | Damien Miller <djm@mindrot.org> | 2012-06-20 13:51:11 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2012-06-20 13:51:11 +0200 |
commit | 3bde12aeef60c9e1221316aff1fe1aca78eca027 (patch) | |
tree | 391e98a1c7a72c4f02afb0407dbcc9a4ef6174aa /dns.h | |
parent | - djm@cvs.openbsd.org 2012/01/07 21:11:36 (diff) | |
download | openssh-3bde12aeef60c9e1221316aff1fe1aca78eca027.tar.xz openssh-3bde12aeef60c9e1221316aff1fe1aca78eca027.zip |
- 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.h | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: dns.h,v 1.11 2010/02/26 20:29:54 djm Exp $ */ +/* $OpenBSD: dns.h,v 1.12 2012/05/23 03:28:28 djm Exp $ */ /* * Copyright (c) 2003 Wesley Griffin. All rights reserved. @@ -29,14 +29,17 @@ #define DNS_H enum sshfp_types { - SSHFP_KEY_RESERVED, - SSHFP_KEY_RSA, - SSHFP_KEY_DSA + SSHFP_KEY_RESERVED = 0, + SSHFP_KEY_RSA = 1, + SSHFP_KEY_DSA = 2, + SSHFP_KEY_ECDSA = 3 }; enum sshfp_hashes { - SSHFP_HASH_RESERVED, - SSHFP_HASH_SHA1 + SSHFP_HASH_RESERVED = 0, + SSHFP_HASH_SHA1 = 1, + SSHFP_HASH_SHA256 = 2, + SSHFP_HASH_MAX = 3 }; #define DNS_RDATACLASS_IN 1 |