boring icon indicating copy to clipboard operation
boring copied to clipboard

Fix x509_check_host return value

Open evanrittenhouse opened this issue 1 year ago • 2 comments

The x509_check_host docs state:

X509_check_host checks if x509 matches the DNS name chk. It returns one on match, zero on mismatch, or a negative number on error.

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.

evanrittenhouse avatar Jul 23 '24 22:07 evanrittenhouse