Normalize wildcard hostname by stripping "*." prefix Returns the normalized hostname without the wildcard prefix. Used for wildcard certificate matching.
(hostname: &str)
| 219 | /// Returns the normalized hostname without the wildcard prefix. |
| 220 | /// Used for wildcard certificate matching. |
| 221 | fn normalize_wildcard_hostname(hostname: &str) -> &str { |
| 222 | hostname.strip_prefix("*.").unwrap_or(hostname) |
| 223 | } |
| 224 | |
| 225 | /// Process Subject Alternative Name (SAN) general names into Python tuples |
| 226 | /// |
no test coverage detected