QSslError Class
Die Klasse „QSslError“ stellt einen SSL-Fehler dar. Mehr dazu...
| Header: | #include <QSslError> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- QSslError ist Teil der Netzwerkprogrammier-API und der implizit gemeinsam genutzten Klassen.
Hinweis: Alle Funktionen 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 |
Ausführliche Beschreibung
QSslError stellt eine einfache API zur Fehlerbehandlung während des SSL-Handshakes von „ QSslSocket “ bereit.
Siehe auch QSslSocket, QSslCertificate und QSslCipher.
Dokumentation zu den Mitgliedstypen
enum QSslError::SslError
Beschreibt alle bekannten Fehler, die während eines SSL-Handshakes auftreten können.
| Konstante | Wert |
|---|---|
QSslError::NoError | 0 |
QSslError::UnableToGetIssuerCertificate | 1 |
QSslError::UnableToDecryptCertificateSignature | 2 |
QSslError::UnableToDecodeIssuerPublicKey | 3 |
QSslError::CertificateSignatureFailed | 4 |
QSslError::CertificateNotYetValid | 5 |
QSslError::CertificateExpired | 6 |
QSslError::InvalidNotBeforeField | 7 |
QSslError::InvalidNotAfterField | 8 |
QSslError::SelfSignedCertificate | 9 |
QSslError::SelfSignedCertificateInChain | 10 |
QSslError::UnableToGetLocalIssuerCertificate | 11 |
QSslError::UnableToVerifyFirstCertificate | 12 |
QSslError::CertificateRevoked | 13 |
QSslError::InvalidCaCertificate | 14 |
QSslError::PathLengthExceeded | 15 |
QSslError::InvalidPurpose | 16 |
QSslError::CertificateUntrusted | 17 |
QSslError::CertificateRejected | 18 |
QSslError::SubjectIssuerMismatch | 19 |
QSslError::AuthorityIssuerSerialNumberMismatch | 20 |
QSslError::NoPeerCertificate | 21 |
QSslError::HostNameMismatch | 22 |
QSslError::UnspecifiedError | -1 |
QSslError::NoSslSupport | 23 |
QSslError::CertificateBlacklisted | 24 |
QSslError::CertificateStatusUnknown | 25 |
QSslError::OcspNoResponseFound | 26 |
QSslError::OcspMalformedRequest | 27 |
QSslError::OcspMalformedResponse | 28 |
QSslError::OcspInternalError | 29 |
QSslError::OcspTryLater | 30 |
QSslError::OcspSigRequred | 31 |
QSslError::OcspUnauthorized | 32 |
QSslError::OcspResponseCannotBeTrusted | 33 |
QSslError::OcspResponseCertIdUnknown | 34 |
QSslError::OcspResponseExpired | 35 |
QSslError::OcspStatusUnknown | 36 |
Siehe auch ` QSslError::errorString()`.
Dokumentation der Mitgliedsfunktionen
QSslError::QSslError()
Erstellt ein QSslError-Objekt ohne Fehler und mit einem Standardzertifikat.
[explicit] QSslError::QSslError(QSslError::SslError error)
Erstellt ein QSslError-Objekt. Das Argument gibt den aufgetretenen Fehler „ error “ an.
QSslError::QSslError(QSslError::SslError error, const QSslCertificate &certificate)
Erstellt ein QSslError-Objekt. Die beiden Argumente geben an, welcher Fehler ( error ) aufgetreten ist und auf welche Verbindung ( certificate ) sich der Fehler bezieht.
Siehe auch „ QSslCertificate “.
QSslError::QSslError(const QSslError &other)
Erstellt eine identische Kopie von other.
[noexcept] QSslError::~QSslError()
Löscht das „ QSslError “-Objekt.
QSslCertificate QSslError::certificate() const
Gibt das mit diesem Fehler verbundene Zertifikat zurück oder ein Null-Zertifikat, falls der Fehler nicht mit einem Zertifikat in Zusammenhang steht.
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 für Menschen lesbare Beschreibung des Fehlers zurück.
Siehe auch error() und certificate().
[noexcept] void QSslError::swap(QSslError &other)
Ersetzt diese Fehlerinstanz durch „ other “. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.
bool QSslError::operator!=(const QSslError &other) const
Gibt „ true “ zurück, wenn dieser Fehler nicht mit „ other “ übereinstimmt; 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 mit „ other “ übereinstimmt; andernfalls wird „ false “ zurückgegeben.
© 2026 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.