72#ifndef QT_NO_DEBUG_STREAM
73#include <QtCore/qdebug.h>
83#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
140 *d.get() = *
other.d.get();
157 *d.get() = *
other.d.get();
176 return d->error ==
other.d->error
177 && d->certificate ==
other.d->certificate;
208 errStr = QSslSocket::tr(
"No error");
211 errStr = QSslSocket::tr(
"The issuer certificate could not be found");
214 errStr = QSslSocket::tr(
"The certificate signature could not be decrypted");
217 errStr = QSslSocket::tr(
"The public key in the certificate could not be read");
220 errStr = QSslSocket::tr(
"The signature of the certificate is invalid");
223 errStr = QSslSocket::tr(
"The certificate is not yet valid");
226 errStr = QSslSocket::tr(
"The certificate has expired");
229 errStr = QSslSocket::tr(
"The certificate's notBefore field contains an invalid time");
232 errStr = QSslSocket::tr(
"The certificate's notAfter field contains an invalid time");
235 errStr = QSslSocket::tr(
"The certificate is self-signed, and untrusted");
238 errStr = QSslSocket::tr(
"The root certificate of the certificate chain is self-signed, and untrusted");
241 errStr = QSslSocket::tr(
"The issuer certificate of a locally looked up certificate could not be found");
244 errStr = QSslSocket::tr(
"No certificates could be verified");
247 errStr = QSslSocket::tr(
"One of the CA certificates is invalid");
250 errStr = QSslSocket::tr(
"The basicConstraints path length parameter has been exceeded");
253 errStr = QSslSocket::tr(
"The supplied certificate is unsuitable for this purpose");
256 errStr = QSslSocket::tr(
"The root CA certificate is not trusted for this purpose");
259 errStr = QSslSocket::tr(
"The root CA certificate is marked to reject the specified purpose");
262 errStr = QSslSocket::tr(
"The current candidate issuer certificate was rejected because its"
263 " subject name did not match the issuer name of the current certificate");
266 errStr = QSslSocket::tr(
"The current candidate issuer certificate was rejected because"
267 " its issuer name and serial number was present and did not match the"
268 " authority key identifier of the current certificate");
271 errStr = QSslSocket::tr(
"The peer did not present any certificate");
274 errStr = QSslSocket::tr(
"The host name did not match any of the valid hosts"
275 " for this certificate");
280 errStr = QSslSocket::tr(
"The peer certificate is blacklisted");
283 errStr = QSslSocket::tr(
"No OCSP status response found");
286 errStr = QSslSocket::tr(
"The OCSP status request had invalid syntax");
289 errStr = QSslSocket::tr(
"OCSP response contains an unexpected number of SingleResponse structures");
292 errStr = QSslSocket::tr(
"OCSP responder reached an inconsistent internal state");
295 errStr = QSslSocket::tr(
"OCSP responder was unable to return a status for the requested certificate");
298 errStr = QSslSocket::tr(
"The server requires the client to sign the OCSP request in order to construct a response");
301 errStr = QSslSocket::tr(
"The client is not authorized to request OCSP status from this server");
304 errStr = QSslSocket::tr(
"OCSP responder's identity cannot be verified");
307 errStr = QSslSocket::tr(
"The identity of a certificate in an OCSP response cannot be established");
310 errStr = QSslSocket::tr(
"The certificate status response has expired");
313 errStr = QSslSocket::tr(
"The certificate's status is unknown");
316 errStr = QSslSocket::tr(
"Unknown error");
331 return d->certificate;
347#ifndef QT_NO_DEBUG_STREAM
363#include "moc_qsslerror.cpp"
size_t qHash(const QSslError &key, size_t seed) noexcept
Returns the hash value for the key, using seed to seed the calculation.
The QSslCertificate class provides a convenient API for an X509 certificate.
QSslCertificate certificate
QSslError::SslError error
The QSslError class provides an SSL error.
SslError error() const
Returns the type of the error.
bool operator==(const QSslError &other) const
QString errorString() const
Returns a short localized human-readable description of the error.
~QSslError()
Destroys the QSslError object.
QSslError & operator=(QSslError &&other) noexcept
QSslError()
Constructs a QSslError object with no error and default certificate.
SslError
Describes all recognized errors that can occur during an SSL handshake.
@ OcspResponseCannotBeTrusted
@ UnableToVerifyFirstCertificate
@ AuthorityIssuerSerialNumberMismatch
@ OcspResponseCertIdUnknown
@ UnableToDecodeIssuerPublicKey
@ UnableToDecryptCertificateSignature
@ UnableToGetLocalIssuerCertificate
@ UnableToGetIssuerCertificate
@ SelfSignedCertificateInChain
@ CertificateSignatureFailed
QSslCertificate certificate() const
Returns the certificate associated with this error, or a null certificate if the error does not relat...
\macro QT_RESTRICTED_CAST_FROM_ASCII
QHash< int, QWidget * > hash
[35multi]
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
QDebug operator<<(QDebug debug, const QSslError &error)