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 57aef3b commit 1af307eCopy full SHA for 1af307e
modules/db_mysql/my_con.c
@@ -144,6 +144,7 @@ int db_mysql_connect(struct my_con* ptr)
144
(tls_opts & MY_CON_TLS_CA_DIR) ? ptr->tls_dom->ca_directory:NULL,
145
(tls_opts & MY_CON_TLS_CIPHERS) ? ptr->tls_dom->ciphers_list:NULL);
146
}
147
+ mysql_options(ptr->con, MYSQL_OPT_SSL_ENFORCE, (void *)&use_tls);
148
149
/* set connect, read and write timeout, the value counts three times */
150
mysql_options(ptr->con, MYSQL_OPT_CONNECT_TIMEOUT, (void *)&db_mysql_timeout_interval);
0 commit comments