matchHostname
private fn
bool matchHostname(string pattern, string hostname) pure @trustedMatches a hostname pattern against a hostname.
Supports wildcard matching (e.g., "*.example.com").
Parameters
pattern | The pattern from the certificate (may include wildcard). |
hostname | The hostname to match. |
Returns
True if the pattern matches the hostname.