refactor: constants, move kTlsCertificateFileanme to => Settings::defaultValue where used
This commit is contained in:
@ -22,7 +22,6 @@ const auto kCopyright = //
|
||||
|
||||
const auto kCoreBinName = "@CORE_BINARY@";
|
||||
|
||||
const auto kTlsCertificateFilename = "@CMAKE_PROJECT_NAME@.pem";
|
||||
const auto kTlsFingerprintTrustedServersFilename = "trusted-servers";
|
||||
const auto kTlsFingerprintTrustedClientsFilename = "trusted-clients";
|
||||
|
||||
|
||||
@ -156,7 +156,7 @@ QVariant Settings::defaultValue(const QString &key)
|
||||
return QRect();
|
||||
|
||||
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)
|
||||
return 2048;
|
||||
|
||||
Reference in New Issue
Block a user