From da69fa46cb1a0f59e62406e7cfefd09cb37d325c Mon Sep 17 00:00:00 2001 From: TheWitness Date: Wed, 11 Feb 2026 13:27:31 -0500 Subject: [PATCH] Fix#389 - Older MariaDB does not include this option (#390) --- sql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql.c b/sql.c index cce6b7e9..bee40406 100644 --- a/sql.c +++ b/sql.c @@ -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");