refactor: new Setting::tlsTrustedServersDb() method to return trusted server fingerprint db

This commit is contained in:
sithlord48
2025-03-17 21:41:14 -04:00
committed by Nick Bolton
parent dcd2c62880
commit 38f00da704
4 changed files with 8 additions and 4 deletions

View File

@ -524,9 +524,7 @@ int SecureSocket::secureConnect(int socket)
retry = 0;
// No error, set ready, process and return ok
m_secureReady = true;
std::string dbDir = deskflow::string::sprintf(
"%s/%s", Settings::tlsDir().toStdString().c_str(), kTlsFingerprintTrustedServersFilename
);
std::string dbDir = Settings::tlsTrustedServersDb().toStdString().c_str();
if (verifyCertFingerprint(dbDir)) {
LOG((CLOG_INFO "connected to secure socket"));
if (!showCertificate()) {