summaryrefslogtreecommitdiffstats
path: root/dns.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-11-17 11:19:29 +0100
committerDamien Miller <djm@mindrot.org>2003-11-17 11:19:29 +0100
commit150b55745b5a0790cfc8d5e6560ab5e7f2f94340 (patch)
treea2e1af4415a75cc498ad8ce318607da5cbf273a5 /dns.h
parent - dtucker@cvs.openbsd.org 2003/11/12 10:12:15 (diff)
downloadopenssh-150b55745b5a0790cfc8d5e6560ab5e7f2f94340.tar.xz
openssh-150b55745b5a0790cfc8d5e6560ab5e7f2f94340.zip
- jakob@cvs.openbsd.org 2003/11/12 16:39:58
[dns.c dns.h readconf.c ssh_config.5 sshconnect.c] update SSHFP validation. ok markus@
Diffstat (limited to 'dns.h')
-rw-r--r--dns.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/dns.h b/dns.h
index 1eb07d96e..c5da22ef6 100644
--- a/dns.h
+++ b/dns.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dns.h,v 1.4 2003/10/14 19:42:10 jakob Exp $ */
+/* $OpenBSD: dns.h,v 1.5 2003/11/12 16:39:58 jakob Exp $ */
/*
* Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -45,11 +45,12 @@ enum sshfp_hashes {
#define DNS_RDATACLASS_IN 1
#define DNS_RDATATYPE_SSHFP 44
-#define DNS_VERIFY_FAILED -1
-#define DNS_VERIFY_OK 0
-#define DNS_VERIFY_ERROR 1
+#define DNS_VERIFY_FOUND 0x00000001
+#define DNS_VERIFY_MATCH 0x00000002
+#define DNS_VERIFY_SECURE 0x00000004
-int verify_host_key_dns(const char *, struct sockaddr *, Key *);
-int export_dns_rr(const char *, Key *, FILE *, int);
+
+int verify_host_key_dns(const char *, struct sockaddr *, const Key *, int *);
+int export_dns_rr(const char *, const Key *, FILE *, int);
#endif /* DNS_H */