summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorWillem Toorop <willem@NLnetLabs.nl>2012-01-25 16:58:43 +0100
committerWillem Toorop <willem@NLnetLabs.nl>2012-01-25 16:58:43 +0100
commit2e82dcf14a398ee0772ad48c95d73b17cb7adba8 (patch)
tree86048ce65ae0f64d9551306cbec86a8dbe2cc5b7 /rr.c
parent68d40c4d0c239572d4db3485857d0981e6c0d361 (diff)
downloadldns-2e82dcf14a398ee0772ad48c95d73b17cb7adba8.tar.gz
Canonicalize "Signer's Name" in RRSIG in ldns_rr2canonical too.
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rr.c b/rr.c
index b61e1193..09f4ad86 100644
--- a/rr.c
+++ b/rr.c
@@ -1736,6 +1736,9 @@ ldns_rr2canonical(ldns_rr *rr)
/*
* lowercase the rdata dnames if the rr type is one
* of the list in chapter 7 of RFC3597
+ * Also added RRSIG, because a "Signer's Name" should be canonicalized
+ * too. See dnssec-bis-updates-16. We can add it to this list because
+ * the "Signer's Name" is the only dname type rdata field in a RRSIG.
*/
switch(ldns_rr_get_type(rr)) {
case LDNS_RR_TYPE_NS:
@@ -1760,6 +1763,7 @@ ldns_rr2canonical(ldns_rr *rr)
case LDNS_RR_TYPE_SRV:
case LDNS_RR_TYPE_DNAME:
case LDNS_RR_TYPE_A6:
+ case LDNS_RR_TYPE_RRSIG:
for (i = 0; i < ldns_rr_rd_count(rr); i++) {
ldns_dname2canonical(ldns_rr_rdf(rr, i));
}