QOcspResponse Class

This class represents Online Certificate Status Protocol response. More...

Header: #include <QOcspResponse>
qmake: QT += network
Since: Qt 5.13

This class was introduced in Qt 5.13.

enum class QOcspCertificateStatus { Good, Revoked, Unknown }
enum class QOcspRevocationReason { None, Unspecified, KeyCompromise, CACompromise, AffiliationChanged, …, RemoveFromCRL }

Detailed Description

The QOcspResponse class represents the revocation status of a server's certificate, received by the client-side socket during the TLS handshake. QSslSocket must be configured with OCSP stapling enabled.

See also QSslSocket, QSslSocket::ocspResponses(), certificateStatus(), revocationReason(), responder(), subject(), QOcspCertificateStatus, QOcspRevocationReason, QSslConfiguration::setOcspStaplingEnabled(), QSslConfiguration::ocspStaplingEnabled(), and QSslConfiguration::peerCertificate().

Related Non-Members

enum class QOcspCertificateStatus

Describes the Online Certificate Status

ConstantValueDescription
QOcspResponse::QOcspCertificateStatus::Good0The certificate is not revoked, but this does not necessarily mean that the certificate was ever issued or that the time at which the response was produced is within the certificate's validity interval.
QOcspResponse::QOcspCertificateStatus::Revoked1This state indicates that the certificate has been revoked (either permanently or temporarily - on hold).
QOcspResponse::QOcspCertificateStatus::Unknown2This state indicates that the responder doesn't know about the certificate being requested.

This enum was introduced or modified in Qt 5.13.

See also QOcspRevocationReason.

enum class QOcspRevocationReason

Describes the reason for revocation

This enumeration describes revocation reasons, defined in RFC 5280, section 5.3.1

ConstantValue
QOcspResponse::QOcspRevocationReason::None-1
QOcspResponse::QOcspRevocationReason::Unspecified0
QOcspResponse::QOcspRevocationReason::KeyCompromise1
QOcspResponse::QOcspRevocationReason::CACompromise2
QOcspResponse::QOcspRevocationReason::AffiliationChanged3
QOcspResponse::QOcspRevocationReason::Superseded4
QOcspResponse::QOcspRevocationReason::CessationOfOperation5
QOcspResponse::QOcspRevocationReason::CertificateHold6
QOcspResponse::QOcspRevocationReason::RemoveFromCRL7

This enum was introduced or modified in Qt 5.13.