Force all names to lowercase ASCII as it is the canonical form
[dnssec-prover] / src / rr.rs
index 1755685cabb527075526cb8ec14a28d490117c1a..f7faef51b58520d5600e0e106952a1f253ca53d8 100644 (file)
--- a/src/rr.rs
+++ b/src/rr.rs
@@ -65,7 +65,7 @@ impl TryFrom<String> for Name {
                        if label.len() > 63 { return Err(()); }
                }
 
-               Ok(Name(s))
+               Ok(Name(s.to_ascii_lowercase()))
        }
 }
 impl TryFrom<&str> for Name {