refactor: make TlsUtility::generatateCertificate and TlsUtility::persistCertificate const
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user