aboutsummaryrefslogtreecommitdiffstats
path: root/main/mariadb/libressl-2.4.patch
blob: 6a3a48f0c33ffecdb2845f833bf04d3e635f3af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
libressl-2.4 does not have X509_check_host

diff --git a/sql-common/client.c b/sql-common/client.c
index b7796ce..e94cd84 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -1769,7 +1769,7 @@ mysql_get_ssl_cipher(MYSQL *mysql __attribute__((unused)))
 
 #if defined(HAVE_OPENSSL)
 
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(HAVE_YASSL)
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(HAVE_YASSL) && !defined(LIBRESSL_VERSION_NUMBER)
 #include <openssl/x509v3.h>
 #define HAVE_X509_check_host
 #endif