42 #include <ldns/ldns.h>
44 static const char* rrsigs_str =
"rrsig";
59 ods_log_error(
"[%s] unable to create RRSIGs: create allocator "
60 "failed", rrsigs_str);
67 ods_log_error(
"[%s] unable to create RRSIGs: allocator failed",
92 ldns_status status = LDNS_STATUS_OK;
95 ods_log_error(
"[%s] unable to add RRSIG: no storage", rrsigs_str);
101 ods_log_error(
"[%s] unable to add RRSIG: no RRSIG RR", rrsigs_str);
116 if (status != LDNS_STATUS_OK) {
130 rrsigs->
next = new_rrsigs;
133 }
else if (cmp > 0) {
137 new_rrsigs->
rr = rrsigs->
rr;
143 rrsigs->
next = new_rrsigs;
175 ldns_rr_free(rrsigs->
rr);
204 fprintf(fd,
";;RRSIG %s %u\n",
209 ldns_rr_print(fd, print->
rr);
void * allocator_alloc(allocator_type *allocator, size_t size)
ldns_status util_dnssec_rrs_compare(ldns_rr *rr1, ldns_rr *rr2, int *cmp)
rrsigs_type * rrsigs_create(void)
enum ods_enum_status ods_status
void ods_log_error(const char *format,...)
allocator_type * allocator_create(void *(*allocator)(size_t size), void(*deallocator)(void *))
char * allocator_strdup(allocator_type *allocator, const char *string)
void rrsigs_cleanup(rrsigs_type *rrsigs)
allocator_type * allocator
void allocator_cleanup(allocator_type *allocator)
ods_status rrsigs_add_sig(rrsigs_type *rrsigs, ldns_rr *rr, const char *l, uint32_t f)
void rrsigs_print(FILE *fd, rrsigs_type *rrsigs, int print_key)
void allocator_deallocate(allocator_type *allocator, void *data)
#define ods_log_assert(x)
void ods_log_warning(const char *format,...)