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 24 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 28 of file qsslerror.h.
QSslError::QSslError | ( | ) |
Constructs a QSslError object with no error and default certificate.
Definition at line 102 of file qsslerror.cpp.
|
explicit |
Constructs a QSslError object.
The argument specifies the error that occurred.
Definition at line 112 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 124 of file qsslerror.cpp.
QSslError::QSslError | ( | const QSslError & | other | ) |
Constructs an identical copy of other.
Definition at line 134 of file qsslerror.cpp.
QSslError::~QSslError | ( | ) |
Destroys the QSslError object.
Definition at line 143 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 324 of file qsslerror.cpp.
QSslError::SslError QSslError::error | ( | ) | const |
Returns the type of the error.
Definition at line 188 of file qsslerror.cpp.
QString QSslError::errorString | ( | ) | const |
Returns a short localized human-readable description of the error.
Definition at line 198 of file qsslerror.cpp.
|
inline |
Returns true
if this error is not equal to other; otherwise returns false.
Definition at line 85 of file qsslerror.h.
Definition at line 82 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 169 of file qsslerror.cpp.
Definition at line 78 of file qsslerror.h.
Definition at line 97 of file qsslerror.h.
|
friend |
Definition at line 350 of file qsslerror.cpp.