summaryrefslogtreecommitdiff
path: root/tools/dnssec/common.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2016-03-30 21:35:31 +0200
committerLinus Nordberg <linus@nordu.net>2016-04-07 16:06:12 +0200
commit781201c780419377005f358b20017ba9d6edc288 (patch)
treead2c29207e77873a5e15c8d54c3bd3ecf502af97 /tools/dnssec/common.h
parent5cf67186d026fa5bf44ee296efe81052c4b9e487 (diff)
Add validatechain.c and move some code to common.c.
dns-net2wire.c is nothing but an ugly hack on top of getdns_query.c making it save answer, validation_chain and trust anchors to three separate files. Used for testing purposes. validatechain takes the above mentioned three files as input and performs DNSSEC validation.
Diffstat (limited to 'tools/dnssec/common.h')
-rw-r--r--tools/dnssec/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dnssec/common.h b/tools/dnssec/common.h
new file mode 100644
index 0000000..465379d
--- /dev/null
+++ b/tools/dnssec/common.h
@@ -0,0 +1,5 @@
+int dump_tree(FILE *fp, const getdns_dict *response, const char *tree_name, const char *section_name);
+size_t read_buffer(FILE *infp, uint8_t **bufp_out, size_t size_hint);
+getdns_return_t wire_rrs2list(const uint8_t *buf, size_t buf_len, getdns_list **list_out);
+
+