/*1* util.h2* util.c header file3* in ldns4* (c) 2005 NLnet Labs5*6* See the file LICENSE for the license7*8*/910#ifndef _DRILL_UTIL_H_11#define _DRILL_UTIL_H_12#include <ldns/ldns.h>131415/**16* Read keys from filename and append to key_list.17*/18ldns_status read_key_file(const char *filename, ldns_rr_list *key_list,19bool silently);2021/**22* return a address rdf, either A or AAAA23* NULL if anything goes wrong24*/25ldns_rdf * ldns_rdf_new_addr_frm_str(char *);2627/**28* print all the ds of the keys in the packet29*/30void print_ds_of_keys(ldns_pkt *p);3132/**33* print some rdfs of a signature34*/35void print_rrsig_abbr(FILE *fp, ldns_rr *sig);36/**37* print some rdfs of a dnskey38*/39void print_dnskey_abbr(FILE *fp, ldns_rr *key);40/**41* print some rdfs of a ds42*/43void print_ds_abbr(FILE *fp, ldns_rr *ds);4445/**46* print some rdfs of a rr in a rr_list47*/48void print_rr_list_abbr(FILE *fp, ldns_rr_list *sig, const char *usr);4950/**51* Alloc some memory, with error checking52*/53void *xmalloc(size_t s);5455/**56* Realloc some memory, with error checking57*/58void *xrealloc(void *p, size_t s);5960/**61* Free the data62*/63void xfree(void *q);64#endif /* _DRILL_UTIL_H_ */656667