matchHostname

private fnbool matchHostname(string pattern, string hostname) pure @trusted

Matches a hostname pattern against a hostname.

Supports wildcard matching (e.g., "*.example.com").

Parameters

patternThe pattern from the certificate (may include wildcard).
hostnameThe hostname to match.

Returns

True if the pattern matches the hostname.