Add new dns_rdatatype_iskeymaterial() function
The following code block repeats quite often:
if (rdata.type == dns_rdatatype_dnskey ||
rdata.type == dns_rdatatype_cdnskey ||
rdata.type == dns_rdatatype_cds)
Introduce a new function to reduce the repetition.
(cherry picked from commit ef58f2444f)
This commit is contained in:
committed by
Mark Andrews
parent
74109dfea6
commit
0d36d98791
@@ -572,6 +572,13 @@ dns_rdatatype_isdnssec(dns_rdatatype_t type);
|
||||
* \li 'type' is a valid rdata type.
|
||||
*/
|
||||
|
||||
bool
|
||||
dns_rdatatype_iskeymaterial(dns_rdatatype_t type);
|
||||
/*%<
|
||||
* Return true iff the rdata type 'type' is a DNSSEC key
|
||||
* related type, like DNSKEY, CDNSKEY, or CDS.
|
||||
*/
|
||||
|
||||
bool
|
||||
dns_rdatatype_iszonecutauth(dns_rdatatype_t type);
|
||||
/*%<
|
||||
|
||||
Reference in New Issue
Block a user