]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add new dns_rdatatype_iskeymaterial() function
authorMatthijs Mekking <matthijs@isc.org>
Wed, 15 Mar 2023 10:51:33 +0000 (11:51 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 23 May 2023 06:53:23 +0000 (08:53 +0200)
commitef58f2444f4bc76891f89ad3344348232994a4df
tree1835a6d451e9d4420ecee8c1e54c3029adec5e6b
parent81cb18b8a230441d0b5fe5e34bad728cad4e4e9b
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.
lib/dns/include/dns/rdata.h
lib/dns/rdata.c
lib/dns/update.c
lib/dns/zone.c
lib/ns/query.c
lib/ns/update.c