refactor: make TlsUtility::generatateCertificate and TlsUtility::persistCertificate const

This commit is contained in:
sithlord48
2025-06-19 17:06:51 -04:00
committed by Nick Bolton
parent 97006889bd
commit 6299f04b59
2 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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.