fix: Use string data instead of path data for fingerprint logging

This commit is contained in:
Nick Bolton 2025-03-03 18:13:40 +00:00 committed by Chris Rizzitello
parent 9eeda33293
commit 1f08cafffe

View file

@ -677,13 +677,14 @@ bool SecureSocket::verifyCertFingerprint(const deskflow::fs::path &fingerprintDb
db.read(fingerprintDbPath); db.read(fingerprintDbPath);
const bool emptyDB = db.fingerprints().empty(); const bool emptyDB = db.fingerprints().empty();
const auto &path = fingerprintDbPath.string();
if (file.good() && emptyDB) { if (file.good() && emptyDB) {
LOG((CLOG_ERR "failed to open trusted fingerprints file: %s", fingerprintDbPath.c_str())); LOG((CLOG_ERR "failed to open trusted fingerprints file: %s", path.c_str()));
return false; return false;
} }
if (!emptyDB) { if (!emptyDB) {
LOG((CLOG_NOTE "read %d fingerprints from %s", db.fingerprints().size(), fingerprintDbPath.c_str())); LOG((CLOG_NOTE "read %d fingerprint(s) from file: %s", db.fingerprints().size(), path.c_str()));
} }
if (!db.isTrusted(sha256)) { if (!db.isTrusted(sha256)) {