Skip to content

Commit

Permalink
Merge pull request #247 from tgreenx/cdnskey_key_rr2ds
Browse files Browse the repository at this point in the history
Make ldns_key_rr2ds() available for CDNSKEY RR
  • Loading branch information
wtoorop authored Aug 27, 2024
2 parents d6b2ca8 + ffef40f commit 9725fb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnssec.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ ldns_key_rr2ds(const ldns_rr *key, ldns_hash h)
const EVP_MD* md = NULL;
#endif

if (ldns_rr_get_type(key) != LDNS_RR_TYPE_DNSKEY) {
if (ldns_rr_get_type(key) != LDNS_RR_TYPE_DNSKEY &&
ldns_rr_get_type(key) != LDNS_RR_TYPE_CDNSKEY) {
return NULL;
}

Expand Down

0 comments on commit 9725fb2

Please sign in to comment.