refactor: constants, move kTlsFingerprintTrustedServersFilename => Settings::defaultValue where used
This commit is contained in:
parent
5c34d0edc5
commit
2b4b6a8470
3 changed files with 2 additions and 4 deletions
|
|
@ -22,7 +22,6 @@ const auto kCopyright = //
|
|||
|
||||
const auto kCoreBinName = "@CORE_BINARY@";
|
||||
|
||||
const auto kTlsFingerprintTrustedServersFilename = "trusted-servers";
|
||||
const auto kTlsFingerprintTrustedClientsFilename = "trusted-clients";
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ QString Settings::tlsDir()
|
|||
|
||||
QString Settings::tlsTrustedServersDb()
|
||||
{
|
||||
return QStringLiteral("%1/%2").arg(instance()->tlsDir(), kTlsFingerprintTrustedServersFilename);
|
||||
return QStringLiteral("%1/trusted-servers").arg(instance()->tlsDir());
|
||||
}
|
||||
|
||||
QString Settings::tlsTrustedClientsDb()
|
||||
|
|
|
|||
|
|
@ -41,8 +41,7 @@ private:
|
|||
#endif
|
||||
|
||||
inline static const QString m_expectedTlsDir = QStringLiteral("%1/tls").arg(m_settingsPath);
|
||||
inline static const QString m_expectedTlsServerDB =
|
||||
QStringLiteral("%1/%2").arg(m_expectedTlsDir, kTlsFingerprintTrustedServersFilename);
|
||||
inline static const QString m_expectedTlsServerDB = QStringLiteral("%1/trusted-servers").arg(m_expectedTlsDir);
|
||||
inline static const QString m_expectedTlsClientDB =
|
||||
QStringLiteral("%1/%2").arg(m_expectedTlsDir, kTlsFingerprintTrustedClientsFilename);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue