Don't use X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS to fix compile problems.

I guess it's not that important so not doing #if defined() checks for it.
Compile problem reported by val.
This commit is contained in:
Bram Matthys 2023-03-25 10:22:28 +01:00
parent 24622144b1
commit bfd9650abf
No known key found for this signature in database
GPG key ID: BF8116B163EAAE98

View file

@ -1064,7 +1064,7 @@ int verify_certificate(SSL *ssl, const char *hostname, char **errstr)
}
#ifdef HAS_X509_check_host
n = X509_check_host(cert, hostname, strlen(hostname), X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS, NULL);
n = X509_check_host(cert, hostname, strlen(hostname), 0, NULL);
X509_free(cert);
if (n == 1)
return 1; /* Hostname matched. All tests passed. */