Deskflow 1.25.0.83
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
deskflow::gui::TlsUtility Namespace Reference

Functions

bool isEnabled ()
 Checks the settings values Settings::Security::TlsEnabled.
bool isCertValid (const QString &certPath=Settings::value(Settings::Security::Certificate).toString())
 isCertValid
int getCertKeyLength (const QString &certPath=Settings::value(Settings::Security::Certificate).toString())
 Get the lenght of a key.
QByteArray certFingerprint (const QString &certPath=Settings::value(Settings::Security::Certificate).toString())
 get the SHA256 fingerprint of a certificatefile.
bool generateCertificate ()

Function Documentation

◆ certFingerprint()

QByteArray deskflow::gui::TlsUtility::certFingerprint ( const QString & certPath = Settings::value(Settings::Security::Certificate).toString())

get the SHA256 fingerprint of a certificatefile.

Parameters
certPathpath of the file to fingerprint, when not set uses the vaule of Settings::Security::Certificate
Returns
A QByteArray of the SHA256 fingerprint of the file or empty array if invalid file is passed

◆ generateCertificate()

bool deskflow::gui::TlsUtility::generateCertificate ( )

◆ getCertKeyLength()

int deskflow::gui::TlsUtility::getCertKeyLength ( const QString & certPath = Settings::value(Settings::Security::Certificate).toString())

Get the lenght of a key.

Parameters
certPathpath of the file to check, when unset will use the value of Settings::Security::Certificate
Returns
the bitsize of the key or -1 if there was an error reading the file

◆ isCertValid()

bool deskflow::gui::TlsUtility::isCertValid ( const QString & certPath = Settings::value(Settings::Security::Certificate).toString())

isCertValid

Parameters
certPaththe path of the file to check, when not set uses Settings::Security::Certificate value
Returns
true if the certificate is valid

◆ isEnabled()

bool deskflow::gui::TlsUtility::isEnabled ( )

Checks the settings values Settings::Security::TlsEnabled.

Returns
true when tls is enabled