102 #ifndef QT_NO_DEBUG_STREAM 103 #include <QtCore/qdebug.h> 232 errStr =
QSslSocket::tr(
"The issuer certificate could not be found");
235 errStr =
QSslSocket::tr(
"The certificate signature could not be decrypted");
238 errStr =
QSslSocket::tr(
"The public key in the certificate could not be read");
241 errStr =
QSslSocket::tr(
"The signature of the certificate is invalid");
250 errStr =
QSslSocket::tr(
"The certificate's notBefore field contains an invalid time");
253 errStr =
QSslSocket::tr(
"The certificate's notAfter field contains an invalid time");
256 errStr =
QSslSocket::tr(
"The certificate is self-signed, and untrusted");
259 errStr =
QSslSocket::tr(
"The root certificate of the certificate chain is self-signed, and untrusted");
262 errStr =
QSslSocket::tr(
"The issuer certificate of a locally looked up certificate could not be found");
271 errStr =
QSslSocket::tr(
"The basicConstraints path length parameter has been exceeded");
274 errStr =
QSslSocket::tr(
"The supplied certificate is unsuitable for this purpose");
277 errStr =
QSslSocket::tr(
"The root CA certificate is not trusted for this purpose");
280 errStr =
QSslSocket::tr(
"The root CA certificate is marked to reject the specified purpose");
283 errStr =
QSslSocket::tr(
"The current candidate issuer certificate was rejected because its" 284 " subject name did not match the issuer name of the current certificate");
287 errStr =
QSslSocket::tr(
"The current candidate issuer certificate was rejected because" 288 " its issuer name and serial number was present and did not match the" 289 " authority key identifier of the current certificate");
292 errStr =
QSslSocket::tr(
"The peer did not present any certificate");
295 errStr =
QSslSocket::tr(
"The host name did not match any of the valid hosts" 296 " for this certificate");
322 #ifndef QT_NO_DEBUG_STREAM The QDebug class provides an output stream for debugging information.
QSslCertificate certificate() const
Returns the certificate associated with this error, or a null certificate if the error does not relat...
#define QT_END_NAMESPACE
This macro expands to.
QSslCertificate certificate
T * data() const
Returns the value of the pointer referenced by this object.
QDebug operator<<(QDebug debug, const QSslError &error)
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
The QString class provides a Unicode character string.
QString errorString() const
Returns a short localized human-readable description of the error.
QScopedPointer< QSslErrorPrivate > d
QSslError::SslError error
#define QT_BEGIN_NAMESPACE
This macro expands to.
SslError
Describes all recognized errors that can occur during an SSL handshake.
~QSslError()
Destroys the QSslError object.
QSslError()
Constructs a QSslError object with no error and default certificate.
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslError class provides an SSL error.
bool operator==(const QSslError &other) const
Returns true if this error is equal to other; otherwise returns false.
SslError error() const
Returns the type of the error.
QSslError & operator=(const QSslError &other)
Assigns the contents of other to this error.