Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The [x509_check_host docs](https://www.openssl.org/docs/man1.1.1/man3/X509_check_host.html) state: > The functions return 1 for a successful match, 0 for a failed match and -1 for an internal error: typically a memory allocation failure or an ASN.1 decoding error. All functions can also return -2 if the input is malformed. For example, X509_check_host() returns -2 if the provided name contains embedded NULs. The current implementation will return `true` for 1, -1, and -2, therefore returning an incorrect value if any of the above error cases are hit.
- Loading branch information