--- src/global/dict_mysql.org 2017-06-23 10:25:56.580165000 +0200 +++ src/global/dict_mysql.c 2017-06-23 10:14:55.081609000 +0200 @@ -656,7 +656,11 @@ dict_mysql->tls_key_file, dict_mysql->tls_cert_file, dict_mysql->tls_CAfile, dict_mysql->tls_CApath, dict_mysql->tls_ciphers); -#if MYSQL_VERSION_ID >= 50023 +#if MYSQL_VERSION_ID >= 80000 + if (dict_mysql->tls_verify_cert != -1) + mysql_options(host->db, MYSQL_OPT_SSL_MODE, + &dict_mysql->tls_verify_cert); +#elif MYSQL_VERSION_ID >= 50023 if (dict_mysql->tls_verify_cert != -1) mysql_options(host->db, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &dict_mysql->tls_verify_cert);