1// Copyright (C) 2011 Richard J. Moore <rich@kde.org>
2// Copyright (C) 2019 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QOCSPRESPONSE_P_H
6#define QOCSPRESPONSE_P_H
7
8#include <private/qtnetworkglobal_p.h>
9
10#include <qsslcertificate.h>
11#include <qocspresponse.h>
12
13#include <qshareddata.h>
14
15//
16// W A R N I N G
17// -------------
18//
19// This file is not part of the Qt API. It exists purely as an
20// implementation detail. This header file may change from version to
21// version without notice, or even be removed.
22//
23// We mean it.
24//
25
26QT_BEGIN_NAMESPACE
27
28class QOcspResponsePrivate : public QSharedData
29{
30public:
31
32 QOcspCertificateStatus certificateStatus = QOcspCertificateStatus::Unknown;
33 QOcspRevocationReason revocationReason = QOcspRevocationReason::None;
34
35 QSslCertificate signerCert;
36 QSslCertificate subjectCert;
37};
38
39inline bool operator==(const QOcspResponsePrivate &lhs, const QOcspResponsePrivate &rhs)
40{
41 return lhs.certificateStatus == rhs.certificateStatus
42 && lhs.revocationReason == rhs.revocationReason
43 && lhs.signerCert == rhs.signerCert
44 && lhs.subjectCert == rhs.subjectCert;
45}
46
47QT_END_NAMESPACE
48
49#endif // QOCSPRESPONSE_P_H
50

source code of qtbase/src/network/ssl/qocspresponse_p.h