We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee79042 commit c80786bCopy full SHA for c80786b
modules/db_mysql/my_con.c
@@ -145,7 +145,9 @@ int db_mysql_connect(struct my_con* ptr)
145
(tls_opts & MY_CON_TLS_CIPHERS) ? ptr->tls_dom->ciphers_list:NULL);
146
}
147
#if (defined LIBMARIADB) || (MYSQL_VERSION_ID < 80000)
148
+#if (MYSQL_VERSION_ID >= 50700)
149
mysql_options(ptr->con, MYSQL_OPT_SSL_ENFORCE, (void *)&use_tls);
150
+#endif
151
#else
152
tls_opts = (use_tls?SSL_MODE_PREFERRED:SSL_MODE_DISABLED);
153
mysql_options(ptr->con, MYSQL_OPT_SSL_MODE, (void *)&tls_opts);
0 commit comments