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 |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- QSslError ist Teil von Network Programming API und Implicitly Shared Classes.
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.
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()
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.