Fix#389 - Older MariaDB does not include this option (#390)

This commit is contained in:
TheWitness authored and GitHub committed 2026-02-11 13:27:31 -05:00
1 parent fca27a38f1
commit da69fa46cb
1 file changed
+2
+2
View File
@@ -293,6 +293,7 @@ void db_connect(int type, MYSQL *mysql) {
char *ssl_cert = NULL;
/* if the users has explicitly said to disable SSL, do that now */
#ifdef MYSQL_OPT_SSL_VERIFY_SERVER_CERT
if (type == LOCAL) {
if (set.db_ssl == 0) {
bool ssl_enforce = 0;
@@ -304,6 +305,7 @@ void db_connect(int type, MYSQL *mysql) {
MYSQL_SET_OPTION(MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_enforce, "ssl disable");
}
}
#endif
if (type == REMOTE) {
STRDUP_OR_DIE(ssl_key, set.rdb_ssl_key, "rdb_ssl_key");