Skip to content

Commit

Permalink
Remove the SSL connection verification
Browse files Browse the repository at this point in the history
  • Loading branch information
pudimtibia committed Oct 15, 2024
1 parent 92c07cf commit 77f2f71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/database/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 77f2f71

Please sign in to comment.