![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QSslError class provides an SSL error. More...
#include <qsslerror.h>
Public Member Functions | |
QSslError () | |
Constructs a QSslError object with no error and default certificate. | |
QSslError (SslError error) | |
Constructs a QSslError object. | |
QSslError (SslError error, const QSslCertificate &certificate) | |
Constructs a QSslError object. | |
QSslError (const QSslError &other) | |
Constructs an identical copy of other. | |
void | swap (QSslError &other) noexcept |
~QSslError () | |
Destroys the QSslError object. | |
QSslError & | operator= (QSslError &&other) noexcept |
QSslError & | operator= (const QSslError &other) |
bool | operator== (const QSslError &other) const |
bool | operator!= (const QSslError &other) const |
SslError | error () const |
Returns the type of the error. | |
QString | errorString () const |
Returns a short localized human-readable description of the error. | |
QSslCertificate | certificate () const |
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate. |
Friends | |
Q_NETWORK_EXPORT friend QDebug | print (QDebug debug, QSslError::SslError error) |
QDebug | operator<< (QDebug debug, SslError error) |
The QSslError class provides an SSL error.
\reentrant
\inmodule QtNetwork
QSslError provides a simple API for managing errors during QSslSocket's SSL handshake.
Definition at line 26 of file qsslerror.h.
enum QSslError::SslError |
Describes all recognized errors that can occur during an SSL handshake.
\value NoError \value UnableToGetIssuerCertificate \value UnableToDecryptCertificateSignature \value UnableToDecodeIssuerPublicKey \value CertificateSignatureFailed \value CertificateNotYetValid \value CertificateExpired \value InvalidNotBeforeField \value InvalidNotAfterField \value SelfSignedCertificate \value SelfSignedCertificateInChain \value UnableToGetLocalIssuerCertificate \value UnableToVerifyFirstCertificate \value CertificateRevoked \value InvalidCaCertificate \value PathLengthExceeded \value InvalidPurpose \value CertificateUntrusted \value CertificateRejected \value SubjectIssuerMismatch \value AuthorityIssuerSerialNumberMismatch \value NoPeerCertificate \value HostNameMismatch \value UnspecifiedError \value NoSslSupport \value CertificateBlacklisted \value CertificateStatusUnknown \value OcspNoResponseFound \value OcspMalformedRequest \value OcspMalformedResponse \value OcspInternalError \value OcspTryLater \value OcspSigRequred \value OcspUnauthorized \value OcspResponseCannotBeTrusted \value OcspResponseCertIdUnknown \value OcspResponseExpired \value OcspStatusUnknown
Definition at line 30 of file qsslerror.h.
QSslError::QSslError | ( | ) |
Constructs a QSslError object with no error and default certificate.
Definition at line 97 of file qsslerror.cpp.
|
explicit |
Constructs a QSslError object.
The argument specifies the error that occurred.
Definition at line 107 of file qsslerror.cpp.
QSslError::QSslError | ( | SslError | error, |
const QSslCertificate & | certificate ) |
Constructs a QSslError object.
The two arguments specify the error that occurred, and which certificate the error relates to.
Definition at line 119 of file qsslerror.cpp.
QSslError::QSslError | ( | const QSslError & | other | ) |
Constructs an identical copy of other.
Definition at line 129 of file qsslerror.cpp.
QSslError::~QSslError | ( | ) |
Destroys the QSslError object.
Definition at line 138 of file qsslerror.cpp.
QSslCertificate QSslError::certificate | ( | ) | const |
Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate.
Definition at line 319 of file qsslerror.cpp.
QSslError::SslError QSslError::error | ( | ) | const |
Returns the type of the error.
Definition at line 183 of file qsslerror.cpp.
QString QSslError::errorString | ( | ) | const |
Returns a short localized human-readable description of the error.
Definition at line 193 of file qsslerror.cpp.
|
inline |
Returns true
if this error is not equal to other; otherwise returns false.
Definition at line 87 of file qsslerror.h.
Definition at line 84 of file qsslerror.h.
bool QSslError::operator== | ( | const QSslError & | other | ) | const |
Returns true
if this error is equal to other; otherwise returns false
.
Definition at line 164 of file qsslerror.cpp.
Definition at line 80 of file qsslerror.h.
Definition at line 99 of file qsslerror.h.
|
friend |
Definition at line 344 of file qsslerror.cpp.