Skip to content
Snippets Groups Projects
Commit 4acb5268 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

API for getting RRSIGs from RRSet.

parent e61b4381
No related branches found
No related tags found
No related merge requests found
......@@ -253,6 +253,17 @@ const dnslib_rrset_t *dnslib_rrset_rrsigs(const dnslib_rrset_t *rrset)
/*----------------------------------------------------------------------------*/
dnslib_rrset_t *dnslib_rrset_get_rrsigs(dnslib_rrset_t *rrset)
{
if (rrset == NULL) {
return NULL;
} else {
return rrset->rrsigs;
}
}
/*----------------------------------------------------------------------------*/
int dnslib_rrset_compare(const dnslib_rrset_t *r1,
const dnslib_rrset_t *r2,
dnslib_rrset_compare_type_t cmp)
......
......@@ -192,6 +192,8 @@ dnslib_rdata_t *dnslib_rrset_rdata_get_next(dnslib_rrset_t *rrset,
*/
const dnslib_rrset_t *dnslib_rrset_rrsigs(const dnslib_rrset_t *rrset);
dnslib_rrset_t *dnslib_rrset_get_rrsigs(dnslib_rrset_t *rrset);
int dnslib_rrset_compare(const dnslib_rrset_t *r1,
const dnslib_rrset_t *r2,
dnslib_rrset_compare_type_t cmp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment