#include <TlsChecker.h>
|
static void | logSslConfig (const QSslConfiguration &pCfg, const MessageLogger &pLogger) |
static QStringList | getFatalErrors (const QList< QSslError > &pErrors) |
static bool | containsFatalError (const QSharedPointer< QNetworkReply > &pReply, const QList< QSslError > &pErrors) |
static QString | sslErrorsToString (const QList< QSslError > &pErrors) |
static bool | checkCertificate (const QSslCertificate &pCertificate, QCryptographicHash::Algorithm pAlgorithm, const QSet< QString > &pAcceptedCertificateHashes) |
| Checks, whether the certificate's hash is contained in a set of accepted certificate hashes.
|
static bool | hasValidCertificateKeyLength (const QSslCertificate &pCertificate, const std::function< int(QSsl::KeyAlgorithm)> &pFuncMinKeySize=cDefaultFuncMinKeySize) |
| Checks, whether the key length of the SSL certificate is of sufficient length.
|
static bool | hasValidEphemeralKeyLength (const QSslKey &pEphemeralServerKey, const std::function< int(QSsl::KeyAlgorithm)> &pFuncMinKeySize=cDefaultFuncMinKeySize) |
| Checks, whether the length of the ephemeral key is of sufficient length.
|
static FailureCode::FailureInfoMap | getEphemeralKeyInfoMap (const QSslKey &pEphemeralServerKey) |
static QSslCertificate | getRootCertificate (const QList< QSslCertificate > &pCertificates) |
◆ checkCertificate()
bool TlsChecker::checkCertificate |
( |
const QSslCertificate & | pCertificate, |
|
|
QCryptographicHash::Algorithm | pAlgorithm, |
|
|
const QSet< QString > & | pAcceptedCertificateHashes ) |
|
staticnodiscard |
Checks, whether the certificate's hash is contained in a set of accepted certificate hashes.
◆ containsFatalError()
bool TlsChecker::containsFatalError |
( |
const QSharedPointer< QNetworkReply > & | pReply, |
|
|
const QList< QSslError > & | pErrors ) |
|
staticnodiscard |
◆ getEphemeralKeyInfoMap()
◆ getFatalErrors()
QStringList TlsChecker::getFatalErrors |
( |
const QList< QSslError > & | pErrors | ) |
|
|
staticnodiscard |
◆ getRootCertificate()
QSslCertificate TlsChecker::getRootCertificate |
( |
const QList< QSslCertificate > & | pCertificates | ) |
|
|
staticnodiscard |
◆ hasValidCertificateKeyLength()
bool TlsChecker::hasValidCertificateKeyLength |
( |
const QSslCertificate & | pCertificate, |
|
|
const std::function< int(QSsl::KeyAlgorithm)> & | pFuncMinKeySize = cDefaultFuncMinKeySize ) |
|
staticnodiscard |
Checks, whether the key length of the SSL certificate is of sufficient length.
◆ hasValidEphemeralKeyLength()
bool TlsChecker::hasValidEphemeralKeyLength |
( |
const QSslKey & | pEphemeralServerKey, |
|
|
const std::function< int(QSsl::KeyAlgorithm)> & | pFuncMinKeySize = cDefaultFuncMinKeySize ) |
|
staticnodiscard |
Checks, whether the length of the ephemeral key is of sufficient length.
◆ logSslConfig()
void TlsChecker::logSslConfig |
( |
const QSslConfiguration & | pCfg, |
|
|
const MessageLogger & | pLogger ) |
|
static |
◆ sslErrorsToString()
QString TlsChecker::sslErrorsToString |
( |
const QList< QSslError > & | pErrors | ) |
|
|
staticnodiscard |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: