QSslError Class

Die Klasse QSslError liefert einen SSL-Fehler. Mehr...

Kopfzeile: #include <QSslError>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

Hinweis: Alle Funktionen in dieser Klasse sind reentrant.

Öffentliche Typen

enum SslError { NoError, UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey, CertificateSignatureFailed, …, OcspStatusUnknown }

Öffentliche Funktionen

QSslError()
QSslError(QSslError::SslError error)
QSslError(QSslError::SslError error, const QSslCertificate &certificate)
QSslError(const QSslError &other)
~QSslError()
QSslCertificate certificate() const
QSslError::SslError error() const
QString errorString() const
void swap(QSslError &other)
bool operator!=(const QSslError &other) const
QSslError &operator=(const QSslError &other)
bool operator==(const QSslError &other) const

Detaillierte Beschreibung

QSslError bietet eine einfache API für die Verwaltung von Fehlern während des SSL-Handshakes von QSslSocket.

Siehe auch QSslSocket, QSslCertificate, und QSslCipher.

Dokumentation der Mitgliedstypen

enum QSslError::SslError

Beschreibt alle erkannten Fehler, die während eines SSL-Handshakes auftreten können.

KonstanteWert
QSslError::NoError0
QSslError::UnableToGetIssuerCertificate1
QSslError::UnableToDecryptCertificateSignature2
QSslError::UnableToDecodeIssuerPublicKey3
QSslError::CertificateSignatureFailed4
QSslError::CertificateNotYetValid5
QSslError::CertificateExpired6
QSslError::InvalidNotBeforeField7
QSslError::InvalidNotAfterField8
QSslError::SelfSignedCertificate9
QSslError::SelfSignedCertificateInChain10
QSslError::UnableToGetLocalIssuerCertificate11
QSslError::UnableToVerifyFirstCertificate12
QSslError::CertificateRevoked13
QSslError::InvalidCaCertificate14
QSslError::PathLengthExceeded15
QSslError::InvalidPurpose16
QSslError::CertificateUntrusted17
QSslError::CertificateRejected18
QSslError::SubjectIssuerMismatch19
QSslError::AuthorityIssuerSerialNumberMismatch20
QSslError::NoPeerCertificate21
QSslError::HostNameMismatch22
QSslError::UnspecifiedError-1
QSslError::NoSslSupport23
QSslError::CertificateBlacklisted24
QSslError::CertificateStatusUnknown25
QSslError::OcspNoResponseFound26
QSslError::OcspMalformedRequest27
QSslError::OcspMalformedResponse28
QSslError::OcspInternalError29
QSslError::OcspTryLater30
QSslError::OcspSigRequred31
QSslError::OcspUnauthorized32
QSslError::OcspResponseCannotBeTrusted33
QSslError::OcspResponseCertIdUnknown34
QSslError::OcspResponseExpired35
QSslError::OcspStatusUnknown36

Siehe auch QSslError::errorString().

Dokumentation der Mitgliedsfunktionen

QSslError::QSslError()

Konstruiert ein QSslError-Objekt ohne Fehler und mit Standardzertifikat.

[explicit] QSslError::QSslError(QSslError::SslError error)

Konstruiert ein QSslError-Objekt. Das Argument gibt die aufgetretene error an.

QSslError::QSslError(QSslError::SslError error, const QSslCertificate &certificate)

Konstruiert ein QSslError-Objekt. Die beiden Argumente geben an, welcher error aufgetreten ist und auf welche certificate sich der Fehler bezieht.

Siehe auch QSslCertificate.

QSslError::QSslError(const QSslError &other)

Konstruiert eine identische Kopie von other.

[noexcept] QSslError::~QSslError()

Zerstört das Objekt QSslError.

QSslCertificate QSslError::certificate() const

Gibt das Zertifikat zurück, das mit diesem Fehler verbunden ist, oder ein Null-Zertifikat, wenn sich der Fehler auf kein Zertifikat bezieht.

Siehe auch error() und errorString().

QSslError::SslError QSslError::error() const

Gibt den Typ des Fehlers zurück.

Siehe auch errorString() und certificate().

QString QSslError::errorString() const

Gibt eine kurze, lokalisierte und von Menschen lesbare Beschreibung des Fehlers zurück.

Siehe auch error() und certificate().

[noexcept] void QSslError::swap(QSslError &other)

Tauscht diese Fehlerinstanz mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

bool QSslError::operator!=(const QSslError &other) const

Gibt true zurück, wenn dieser Fehler nicht gleich other ist; andernfalls wird false zurückgegeben.

QSslError &QSslError::operator=(const QSslError &other)

Weist diesem Fehler den Inhalt von other zu.

bool QSslError::operator==(const QSslError &other) const

Gibt true zurück, wenn dieser Fehler gleich other ist; andernfalls wird false zurückgegeben.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.