6.0.0-rc4Source

QSslError Class

The QSslError class describes a problem found while verifying a peer. More…

Header#include <QSslError>
CMaketarget_link_libraries(app PRIVATE Nt::Network)
ModuleNt Network C++ Classes

List of all members, including inherited members

Public Types

enumSslError

Public Functions

QSslError()
QSslError(SslError error)
QSslError(SslError error, const QSslCertificate &certificate)
SslErrorerror() const
QStringerrorString() const
QSslCertificatecertificate() const

Detailed Description

See also QSslSocket::sslErrors().

Member Type Documentation

enum QSslError::SslError

Identifies a verification problem.

ConstantDescription
QSslError::NoErrorNo problem.
QSslError::UnableToGetIssuerCertificateThe issuer's certificate is unavailable.
QSslError::UnableToDecryptCertificateSignatureThe signature could not be read.
QSslError::UnableToDecodeIssuerPublicKeyThe issuer's key could not be read.
QSslError::CertificateSignatureFailedThe signature is invalid.
QSslError::CertificateNotYetValidThe certificate is not valid yet.
QSslError::CertificateExpiredThe certificate has expired.
QSslError::InvalidNotBeforeFieldThe start date is malformed.
QSslError::InvalidNotAfterFieldThe expiry date is malformed.
QSslError::SelfSignedCertificateThe certificate is self-signed and not trusted.
QSslError::SelfSignedCertificateInChainThe chain ends in an untrusted self-signed certificate.
QSslError::UnableToGetLocalIssuerCertificateThe issuer is not in the trusted set.
QSslError::UnableToVerifyFirstCertificateThe first certificate could not be verified.
QSslError::CertificateRevokedThe certificate was revoked.
QSslError::InvalidCaCertificateAn issuer is not a valid CA.
QSslError::PathLengthExceededThe chain is longer than its CA allows.
QSslError::InvalidPurposeThe certificate may not be used for this purpose.
QSslError::CertificateUntrustedThe certificate is not trusted for this purpose.
QSslError::CertificateRejectedThe certificate is marked to reject this purpose.
QSslError::SubjectIssuerMismatchThe issuer name does not match.
QSslError::AuthorityIssuerSerialNumberMismatchThe issuer serial number does not match.
QSslError::NoPeerCertificateThe peer sent no certificate.
QSslError::HostNameMismatchThe certificate is not valid for this host name.
QSslError::NoSslSupportTLS is not available.
QSslError::CertificateBlacklistedThe certificate is blacklisted.
QSslError::UnspecifiedErrorAnother problem occurred.

Member Function Documentation

QSslError::QSslError()

Constructs an object holding NoError.

[explicit] QSslError::QSslError(SslError error)

Constructs an object holding error.

QSslError::QSslError(SslError error, const QSslCertificate &certificate)

Constructs an object holding error, caused by certificate.

QSslCertificate QSslError::certificate() const

Returns the certificate that caused the problem, which may be null.

SslError QSslError::error() const

Returns the kind of problem.

QString QSslError::errorString() const

Returns a description of the problem.