refactor: constants, move kTlsCertificateFileanme to => Settings::defaultValue where used
This commit is contained in:
parent
049f8d718a
commit
5c34d0edc5
2 changed files with 1 additions and 2 deletions
|
|
@ -22,7 +22,6 @@ const auto kCopyright = //
|
||||||
|
|
||||||
const auto kCoreBinName = "@CORE_BINARY@";
|
const auto kCoreBinName = "@CORE_BINARY@";
|
||||||
|
|
||||||
const auto kTlsCertificateFilename = "@CMAKE_PROJECT_NAME@.pem";
|
|
||||||
const auto kTlsFingerprintTrustedServersFilename = "trusted-servers";
|
const auto kTlsFingerprintTrustedServersFilename = "trusted-servers";
|
||||||
const auto kTlsFingerprintTrustedClientsFilename = "trusted-clients";
|
const auto kTlsFingerprintTrustedClientsFilename = "trusted-clients";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ QVariant Settings::defaultValue(const QString &key)
|
||||||
return QRect();
|
return QRect();
|
||||||
|
|
||||||
if (key == Security::Certificate)
|
if (key == Security::Certificate)
|
||||||
return QStringLiteral("%1/%2").arg(Settings::tlsDir(), kTlsCertificateFilename);
|
return QStringLiteral("%1/%2.pem").arg(Settings::tlsDir(), kAppId);
|
||||||
|
|
||||||
if (key == Security::KeySize)
|
if (key == Security::KeySize)
|
||||||
return 2048;
|
return 2048;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue