Blame bind98-libdns-export.patch
|
Adam Tkac |
36ea44 |
diff -up bind-9.8.0-P2/lib/dns/masterdump.c.libdns-export bind-9.8.0-P2/lib/dns/masterdump.c
|
|
Adam Tkac |
36ea44 |
--- bind-9.8.0-P2/lib/dns/masterdump.c.libdns-export 2011-05-27 10:48:10.216765461 +0200
|
|
Adam Tkac |
36ea44 |
+++ bind-9.8.0-P2/lib/dns/masterdump.c 2011-05-27 10:48:50.428765471 +0200
|
|
Adam Tkac |
36ea44 |
@@ -700,6 +700,26 @@ dns_master_questiontotext(dns_name_t *ow
|
|
Adam Tkac |
36ea44 |
ISC_FALSE, target));
|
|
Adam Tkac |
36ea44 |
}
|
|
Adam Tkac |
36ea44 |
|
|
Adam Tkac |
36ea44 |
+static const char *trustnames[] = {
|
|
Adam Tkac |
36ea44 |
+ "none",
|
|
Adam Tkac |
36ea44 |
+ "pending-additional",
|
|
Adam Tkac |
36ea44 |
+ "pending-answer",
|
|
Adam Tkac |
36ea44 |
+ "additional",
|
|
Adam Tkac |
36ea44 |
+ "glue",
|
|
Adam Tkac |
36ea44 |
+ "answer",
|
|
Adam Tkac |
36ea44 |
+ "authauthority",
|
|
Adam Tkac |
36ea44 |
+ "authanswer",
|
|
Adam Tkac |
36ea44 |
+ "secure",
|
|
Adam Tkac |
36ea44 |
+ "local" /* aka ultimate */
|
|
Adam Tkac |
36ea44 |
+};
|
|
Adam Tkac |
36ea44 |
+
|
|
Adam Tkac |
36ea44 |
+const char *
|
|
Adam Tkac |
36ea44 |
+dns_trust_totext(dns_trust_t trust) {
|
|
Adam Tkac |
36ea44 |
+ if (trust >= sizeof(trustnames)/sizeof(*trustnames))
|
|
Adam Tkac |
36ea44 |
+ return ("bad");
|
|
Adam Tkac |
36ea44 |
+ return (trustnames[trust]);
|
|
Adam Tkac |
36ea44 |
+}
|
|
Adam Tkac |
36ea44 |
+
|
|
Adam Tkac |
36ea44 |
#ifdef BIND9
|
|
Adam Tkac |
36ea44 |
/*
|
|
Adam Tkac |
36ea44 |
* Print an rdataset. 'buffer' is a scratch buffer, which must have been
|
|
Adam Tkac |
36ea44 |
@@ -835,26 +855,6 @@ dump_order_compare(const void *a, const
|
|
Adam Tkac |
36ea44 |
|
|
Adam Tkac |
36ea44 |
#define MAXSORT 64
|
|
Adam Tkac |
36ea44 |
|
|
Adam Tkac |
36ea44 |
-static const char *trustnames[] = {
|
|
Adam Tkac |
36ea44 |
- "none",
|
|
Adam Tkac |
36ea44 |
- "pending-additional",
|
|
Adam Tkac |
36ea44 |
- "pending-answer",
|
|
Adam Tkac |
36ea44 |
- "additional",
|
|
Adam Tkac |
36ea44 |
- "glue",
|
|
Adam Tkac |
36ea44 |
- "answer",
|
|
Adam Tkac |
36ea44 |
- "authauthority",
|
|
Adam Tkac |
36ea44 |
- "authanswer",
|
|
Adam Tkac |
36ea44 |
- "secure",
|
|
Adam Tkac |
36ea44 |
- "local" /* aka ultimate */
|
|
Adam Tkac |
36ea44 |
-};
|
|
Adam Tkac |
36ea44 |
-
|
|
Adam Tkac |
36ea44 |
-const char *
|
|
Adam Tkac |
36ea44 |
-dns_trust_totext(dns_trust_t trust) {
|
|
Adam Tkac |
36ea44 |
- if (trust >= sizeof(trustnames)/sizeof(*trustnames))
|
|
Adam Tkac |
36ea44 |
- return ("bad");
|
|
Adam Tkac |
36ea44 |
- return (trustnames[trust]);
|
|
Adam Tkac |
36ea44 |
-}
|
|
Adam Tkac |
36ea44 |
-
|
|
Adam Tkac |
36ea44 |
static isc_result_t
|
|
Adam Tkac |
36ea44 |
dump_rdatasets_text(isc_mem_t *mctx, dns_name_t *name,
|
|
Adam Tkac |
36ea44 |
dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx,
|