QSslError Class
The QSslError class describes a problem found while verifying a peer. More…
| Header | #include <QSslError> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Network) |
| Module | Nt Network C++ Classes |
List of all members, including inherited members
Public Types
| enum | SslError |
Public Functions
| QSslError() | |
| QSslError(SslError error) | |
| QSslError(SslError error, const QSslCertificate &certificate) | |
| SslError | error() const |
| QString | errorString() const |
| QSslCertificate | certificate() const |
Detailed Description
See also QSslSocket::sslErrors().
Member Type Documentation
enum QSslError::SslError
Identifies a verification problem.
| Constant | Description |
|---|---|
QSslError::NoError | No problem. |
QSslError::UnableToGetIssuerCertificate | The issuer's certificate is unavailable. |
QSslError::UnableToDecryptCertificateSignature | The signature could not be read. |
QSslError::UnableToDecodeIssuerPublicKey | The issuer's key could not be read. |
QSslError::CertificateSignatureFailed | The signature is invalid. |
QSslError::CertificateNotYetValid | The certificate is not valid yet. |
QSslError::CertificateExpired | The certificate has expired. |
QSslError::InvalidNotBeforeField | The start date is malformed. |
QSslError::InvalidNotAfterField | The expiry date is malformed. |
QSslError::SelfSignedCertificate | The certificate is self-signed and not trusted. |
QSslError::SelfSignedCertificateInChain | The chain ends in an untrusted self-signed certificate. |
QSslError::UnableToGetLocalIssuerCertificate | The issuer is not in the trusted set. |
QSslError::UnableToVerifyFirstCertificate | The first certificate could not be verified. |
QSslError::CertificateRevoked | The certificate was revoked. |
QSslError::InvalidCaCertificate | An issuer is not a valid CA. |
QSslError::PathLengthExceeded | The chain is longer than its CA allows. |
QSslError::InvalidPurpose | The certificate may not be used for this purpose. |
QSslError::CertificateUntrusted | The certificate is not trusted for this purpose. |
QSslError::CertificateRejected | The certificate is marked to reject this purpose. |
QSslError::SubjectIssuerMismatch | The issuer name does not match. |
QSslError::AuthorityIssuerSerialNumberMismatch | The issuer serial number does not match. |
QSslError::NoPeerCertificate | The peer sent no certificate. |
QSslError::HostNameMismatch | The certificate is not valid for this host name. |
QSslError::NoSslSupport | TLS is not available. |
QSslError::CertificateBlacklisted | The certificate is blacklisted. |
QSslError::UnspecifiedError | Another problem occurred. |
Member Function Documentation
QSslError::QSslError()
Constructs an object holding NoError.
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.