chore: remove unused TlsUtility::persistCertificate
This commit is contained in:
parent
393c2fa9bc
commit
c4a2dfd300
2 changed files with 0 additions and 13 deletions
|
|
@ -83,16 +83,4 @@ bool TlsUtility::generateCertificate() const
|
||||||
return m_certificate.generateCertificate(certificate, length);
|
return m_certificate.generateCertificate(certificate, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TlsUtility::persistCertificate() const
|
|
||||||
{
|
|
||||||
qDebug("persisting tls certificate");
|
|
||||||
|
|
||||||
if (QFile::exists(Settings::value(Settings::Security::Certificate).toString())) {
|
|
||||||
qDebug("tls certificate already exists");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return generateCertificate();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace deskflow::gui
|
} // namespace deskflow::gui
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ public:
|
||||||
explicit TlsUtility(QObject *parent = nullptr);
|
explicit TlsUtility(QObject *parent = nullptr);
|
||||||
|
|
||||||
bool generateCertificate() const;
|
bool generateCertificate() const;
|
||||||
bool persistCertificate() const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Checks the settings values Settings::Security::TlsEnabled
|
* @brief Checks the settings values Settings::Security::TlsEnabled
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue