summaryrefslogtreecommitdiffstats
path: root/dnstlsa.c
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2023-08-10 01:10:02 +0200
committermanuel <manuel@mausz.at>2023-08-10 01:10:02 +0200
commit29b6e8b053d21f0a1e722e1c3be38371e7efaf10 (patch)
tree797c10e213875cc41957d949060150db4a661ad8 /dnstlsa.c
parentc36bd5f683eea9f6de05fcdda6d65505cbe8c316 (diff)
downloadqmail-29b6e8b053d21f0a1e722e1c3be38371e7efaf10.tar.gz
qmail-29b6e8b053d21f0a1e722e1c3be38371e7efaf10.tar.bz2
qmail-29b6e8b053d21f0a1e722e1c3be38371e7efaf10.zip
add support for querying DNSSEC ad (validated) flag
also migrate from deprecated resolver functions
Diffstat (limited to 'dnstlsa.c')
-rw-r--r--dnstlsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dnstlsa.c b/dnstlsa.c
index ef4235e..2ea99e4 100644
--- a/dnstlsa.c
+++ b/dnstlsa.c
@@ -58,7 +58,6 @@ void main(int argc, char **argv)
58 substdio_putsflush(subfdout, "\n"); 58 substdio_putsflush(subfdout, "\n");
59 } 59 }
60 60
61 dns_init(0);
62 dnsdoe(dns_tlsa(&out, &sa)); 61 dnsdoe(dns_tlsa(&out, &sa));
63 62
64 int pos = 0; 63 int pos = 0;
@@ -90,6 +89,8 @@ void main(int argc, char **argv)
90 substdio_put(subfdout, "0123456789abcdef" + (ch >> 4), 1); 89 substdio_put(subfdout, "0123456789abcdef" + (ch >> 4), 1);
91 substdio_put(subfdout, "0123456789abcdef" + (ch & 0x0F), 1); 90 substdio_put(subfdout, "0123456789abcdef" + (ch & 0x0F), 1);
92 } 91 }
92
93 substdio_puts(subfdout, dns_last_query_validated() ? " [dnssec validated]" : " [no dnssec validated]");
93 substdio_putsflush(subfdout, "\n"); 94 substdio_putsflush(subfdout, "\n");
94 pos += rrlen; 95 pos += rrlen;
95 } 96 }