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 #define HAVE_X509_check_host #endif