fix: Use string data instead of path data for fingerprint logging
This commit is contained in:
parent
9eeda33293
commit
1f08cafffe
1 changed files with 3 additions and 2 deletions
|
|
@ -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)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue