From bfd9650abf17aad5aa36847c16616f403fcfeeb2 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 25 Mar 2023 10:22:28 +0100 Subject: [PATCH] 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. --- src/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index f9c15fe84..7475a3244 100644 --- a/src/tls.c +++ b/src/tls.c @@ -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. */