summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-11 22:15:32 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-12 16:54:32 +0200
commitded5de1587888a66a86aa02549098c8821bd8efb (patch)
tree12b9327dec06d465622c50c4435be0b8fce9e8c0 /src
parent8e0130284ead48da81351d4d2c22fe7eb23703d6 (diff)
Output dnssec status in -bt/-bv mode
Currently this feature is enabled only if running_in_test_harness, because I don't want to break anything else.
Diffstat (limited to 'src')
-rw-r--r--src/src/verify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/src/verify.c b/src/src/verify.c
index b77978bfc..8a408686f 100644
--- a/src/src/verify.c
+++ b/src/src/verify.c
@@ -2364,6 +2364,12 @@ for (addr_list = addr_local, i = 0; i < 2; addr_list = addr_remote, i++)
while (len++ < maxaddlen) fprintf(f," ");
if (h->mx >= 0) fprintf(f, "MX=%d", h->mx);
if (h->port != PORT_NONE) fprintf(f, " port=%d", h->port);
+ if (running_in_test_harness)
+#ifndef DISABLE_DNSSEC
+ fprintf(f, " ad=%s", h->dnssec==DS_YES ? "yes" : "no");
+#else
+ fprintf(f, " ad=no");
+#endif
if (h->status == hstatus_unusable) fprintf(f, " ** unusable **");
fprintf(f, "\n");
}