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// Qt-Security score:significant reason:default
5
6#ifndef QOCSPRESPONSE_P_H
7#define QOCSPRESPONSE_P_H
8
9#include <private/qtnetworkglobal_p.h>
10
11#include <qsslcertificate.h>
12#include <qocspresponse.h>
13
14#include <qshareddata.h>
15
16//
17// W A R N I N G
18// -------------
19//
20// This file is not part of the Qt API. It exists purely as an
21// implementation detail. This header file may change from version to
22// version without notice, or even be removed.
23//
24// We mean it.
25//
26
27QT_BEGIN_NAMESPACE
28
29class QOcspResponsePrivate : public QSharedData
30{
31public:
32
33 QOcspCertificateStatus certificateStatus = QOcspCertificateStatus::Unknown;
34 QOcspRevocationReason revocationReason = QOcspRevocationReason::None;
35
36 QSslCertificate signerCert;
37 QSslCertificate subjectCert;
38};
39
40inline bool operator==(const QOcspResponsePrivate &lhs, const QOcspResponsePrivate &rhs)
41{
42 return lhs.certificateStatus == rhs.certificateStatus
43 && lhs.revocationReason == rhs.revocationReason
44 && lhs.signerCert == rhs.signerCert
45 && lhs.subjectCert == rhs.subjectCert;
46}
47
48QT_END_NAMESPACE
49
50#endif // QOCSPRESPONSE_P_H
51

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