From 77f2f71d060cf201d74450b7a6c468db0a5a7ad6 Mon Sep 17 00:00:00 2001 From: pegasusot Date: Tue, 15 Oct 2024 03:43:52 -0300 Subject: [PATCH] Remove the SSL connection verification --- src/database/database.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/database/database.cpp b/src/database/database.cpp index 9ac892ef2be..6d31fd85a0f 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -41,6 +41,9 @@ bool Database::connect(const std::string* host, const std::string* user, const s // automatic reconnect bool reconnect = true; mysql_options(handle, MYSQL_OPT_RECONNECT, &reconnect); + + uint8_t ssl_disabled = 0; + mysql_options(handle, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl_disabled); // connects to database if (!mysql_real_connect(handle, host->c_str(), user->c_str(), password->c_str(), database->c_str(), port, sock->c_str(), 0)) {