Skip to content

Commit

Permalink
Make ldns_key_rr2ds() available for CDNSKEY RR
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreenx committed Aug 27, 2024
1 parent aeaf02e commit ffef40f
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 ffef40f

Please sign in to comment.