Skip to content
Snippets Groups Projects
Commit 479615f1 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Somewhat complete rrset test implementation. Needs some polishing and possibly...

Somewhat complete rrset test implementation. Needs some polishing and possibly more sophisticated way of testing rrsigs.
parent dcc15de1
Branches
Tags
No related merge requests found
......@@ -193,13 +193,12 @@ static int check_rrset( const dnslib_rrset_t *rrset, int i,
const dnslib_rrset_t *rrsigs;
for (int i = 0; i < TEST_RRSETS && !errors; i++) {
rrsigs = dnslib_rrset_rrsigs(rrset);
if (strcmp((const char *)rrsigs->rdata->items[0].raw_data, signature_strings[i])) {
diag("Signatures are not equal to those set when creating.");
errors++;
}
}
if (strcmp((const char *)rrsigs->rdata->items[0].raw_data, signature_strings[i])) {
diag("Signatures are not equal to those set when creating. Comparing "
"%s with %s", rrsigs->rdata->items[0].raw_data, signature_strings[i]);
errors++;
}
}
return errors;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment