7 * See the file LICENSE for the license
11 #ifndef _DRILL_UTIL_H_
12 #define _DRILL_UTIL_H_
13 #include <ldns/ldns.h>
16 * return a address rdf, either A or AAAA
17 * NULL if anything goes wrong
19 ldns_rdf * ldns_rdf_new_addr_frm_str(char *);
22 * print all the ds of the keys in the packet
24 void print_ds_of_keys(ldns_pkt *p);
27 * print some rdfs of a signature
29 void print_rrsig_abbr(FILE *fp, ldns_rr *sig);
31 * print some rdfs of a dnskey
33 void print_dnskey_abbr(FILE *fp, ldns_rr *key);
35 * print some rdfs of a ds
37 void print_ds_abbr(FILE *fp, ldns_rr *ds);
40 * print some rdfs of a rr in a rr_list
42 void print_rr_list_abbr(FILE *fp, ldns_rr_list *sig, char *usr);
45 * Alloc some memory, with error checking
47 void *xmalloc(size_t s);
50 * Realloc some memory, with error checking
52 void *xrealloc(void *p, size_t s);
58 #endif /* _DRILL_UTIL_H_ */