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();
|
return Settings::value(Settings::Security::TlsEnabled).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TlsUtility::generateCertificate()
|
bool TlsUtility::generateCertificate() const
|
||||||
{
|
{
|
||||||
qDebug(
|
qDebug(
|
||||||
"generating tls certificate, "
|
"generating tls certificate, "
|
||||||
|
|
@ -50,7 +50,7 @@ bool TlsUtility::generateCertificate()
|
||||||
return m_certificate.generateCertificate(certificate, length);
|
return m_certificate.generateCertificate(certificate, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TlsUtility::persistCertificate()
|
bool TlsUtility::persistCertificate() const
|
||||||
{
|
{
|
||||||
qDebug("persisting tls certificate");
|
qDebug("persisting tls certificate");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ class TlsUtility : public QObject
|
||||||
public:
|
public:
|
||||||
explicit TlsUtility(QObject *parent = nullptr);
|
explicit TlsUtility(QObject *parent = nullptr);
|
||||||
|
|
||||||
bool generateCertificate();
|
bool generateCertificate() const;
|
||||||
bool persistCertificate();
|
bool persistCertificate() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Combines the availability and the enabled status of TLS.
|
* @brief Combines the availability and the enabled status of TLS.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue