/src/qtbase/src/network/ssl/qocspresponse_p.h
Line | Count | Source |
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 | | |
27 | | QT_BEGIN_NAMESPACE |
28 | | |
29 | | class QOcspResponsePrivate : public QSharedData |
30 | | { |
31 | | public: |
32 | | |
33 | | QOcspCertificateStatus certificateStatus = QOcspCertificateStatus::Unknown; |
34 | | QOcspRevocationReason revocationReason = QOcspRevocationReason::None; |
35 | | |
36 | | QSslCertificate signerCert; |
37 | | QSslCertificate subjectCert; |
38 | | }; |
39 | | |
40 | | inline bool operator==(const QOcspResponsePrivate &lhs, const QOcspResponsePrivate &rhs) |
41 | 0 | { |
42 | 0 | return lhs.certificateStatus == rhs.certificateStatus |
43 | 0 | && lhs.revocationReason == rhs.revocationReason |
44 | 0 | && lhs.signerCert == rhs.signerCert |
45 | 0 | && lhs.subjectCert == rhs.subjectCert; |
46 | 0 | } |
47 | | |
48 | | QT_END_NAMESPACE |
49 | | |
50 | | #endif // QOCSPRESPONSE_P_H |