refactor: make TlsUtility::generatateCertificate and TlsUtility::persistCertificate const
This commit is contained in:
parent
97006889bd
commit
6299f04b59
2 changed files with 4 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ bool TlsUtility::isEnabled() const
|
|||
return Settings::value(Settings::Security::TlsEnabled).toBool();
|
||||
}
|
||||
|
||||
bool TlsUtility::generateCertificate()
|
||||
bool TlsUtility::generateCertificate() const
|
||||
{
|
||||
qDebug(
|
||||
"generating tls certificate, "
|
||||
|
|
@ -50,7 +50,7 @@ bool TlsUtility::generateCertificate()
|
|||
return m_certificate.generateCertificate(certificate, length);
|
||||
}
|
||||
|
||||
bool TlsUtility::persistCertificate()
|
||||
bool TlsUtility::persistCertificate() const
|
||||
{
|
||||
qDebug("persisting tls certificate");
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ class TlsUtility : public QObject
|
|||
public:
|
||||
explicit TlsUtility(QObject *parent = nullptr);
|
||||
|
||||
bool generateCertificate();
|
||||
bool persistCertificate();
|
||||
bool generateCertificate() const;
|
||||
bool persistCertificate() const;
|
||||
|
||||
/**
|
||||
* @brief Combines the availability and the enabled status of TLS.
|
||||
|
|
|
|||
Loading…
Reference in a new issue