Home
last modified time | relevance | path

Searched refs:matches_dns (Results 1 - 1 of 1) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/ssl/
H A Dconnector.rs482 if matches_dns(pattern, domain) { in verify_subject_alt_names()
508 Err(_) => matches_dns(pattern, domain), in verify_subject_name()
515 fn matches_dns(mut pattern: &str, mut hostname: &str) -> bool { in matches_dns() functions
577 use crate::ssl::connector::verify::matches_dns; in test_dns_match()
578 assert!(matches_dns("website.tld", "website.tld")); // A name should match itself. in test_dns_match()
579 assert!(matches_dns("website.tld", "wEbSiTe.tLd")); // DNS name matching ignores case of hostname. in test_dns_match()
580 assert!(matches_dns("wEbSiTe.TlD", "website.tld")); // DNS name matching ignores case of subject. in test_dns_match()
582 assert!(matches_dns("xn--bcher-kva.tld", "xn--bcher-kva.tld")); // Likewise, nothing special to punycode names. in test_dns_match()
583 assert!(matches_dns("xn--bcher-kva.tld", "xn--BcHer-Kva.tLd")); // And punycode must be compared similarly case-insensitively. in test_dns_match()
585 assert!(matches_dns("* in test_dns_match()
[all...]

Completed in 8 milliseconds