mirror of
https://github.com/Cacti/spine.git
synced 2026-12-02 21:37:07 +09:00
Fix#389 - Older MariaDB does not include this option (#390)
This commit is contained in:
1 parent
fca27a38f1
commit
da69fa46cb
1 file changed
+2
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user