[tor-commits] [tor/master] Introducing helper function to validate DNS name strings.