mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 10:53:13 +02:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user