Fixed X.509 hostname comparison (with non-regular characters)

In situations with 'weird' certificate names or hostnames (containing
non-western allowed names) the check would falsely report a name or
wildcard match.
2 files changed