Skip to content

Commit

Permalink
mysql: if SSL is not used, do not enforce it
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Nov 14, 2024
1 parent 57aef3b commit 1af307e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/db_mysql/my_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ int db_mysql_connect(struct my_con* ptr)
(tls_opts & MY_CON_TLS_CA_DIR) ? ptr->tls_dom->ca_directory:NULL,
(tls_opts & MY_CON_TLS_CIPHERS) ? ptr->tls_dom->ciphers_list:NULL);
}
mysql_options(ptr->con, MYSQL_OPT_SSL_ENFORCE, (void *)&use_tls);

/* set connect, read and write timeout, the value counts three times */
mysql_options(ptr->con, MYSQL_OPT_CONNECT_TIMEOUT, (void *)&db_mysql_timeout_interval);
Expand Down

0 comments on commit 1af307e

Please sign in to comment.