From: Matt Corallo Date: Mon, 26 Feb 2024 04:41:58 +0000 (+0000) Subject: Force all names to lowercase ASCII as it is the canonical form X-Git-Tag: v0.5.4~50 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=7d040061cb932f44f46a7f52c4f5404ee3b7c29b;p=dnssec-prover Force all names to lowercase ASCII as it is the canonical form --- diff --git a/src/rr.rs b/src/rr.rs index 1755685..f7faef5 100644 --- a/src/rr.rs +++ b/src/rr.rs @@ -65,7 +65,7 @@ impl TryFrom for Name { if label.len() > 63 { return Err(()); } } - Ok(Name(s)) + Ok(Name(s.to_ascii_lowercase())) } } impl TryFrom<&str> for Name {