Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qocspresponse.h
Go to the documentation of this file.
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_H
6#define QOCSPRESPONSE_H
7
8#include <QtNetwork/qtnetworkglobal.h>
9
10#include <QtCore/qshareddata.h>
11#include <QtCore/qmetatype.h>
12#include <QtCore/qobject.h>
13
14#ifndef Q_QDOC
16#endif
17
19
21{
22 Good,
23 Revoked,
25};
26
28{
29 None = -1,
38};
39
40namespace QTlsPrivate {
42}
43
44class QOcspResponse;
45Q_NETWORK_EXPORT size_t qHash(const QOcspResponse &response, size_t seed = 0) noexcept;
46
48class Q_NETWORK_EXPORT QOcspResponse
49{
50public:
51
56
59
62
63 class QSslCertificate responder() const;
64 QSslCertificate subject() const;
65
66 void swap(QOcspResponse &other) noexcept { d.swap(other.d); }
67
68private:
69 bool isEqual(const QOcspResponse &other) const;
70
72 friend bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)
73 { return lhs.isEqual(rhs); }
74 friend bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
75 { return !lhs.isEqual(rhs); }
76
77 friend Q_NETWORK_EXPORT size_t qHash(const QOcspResponse &response, size_t seed) noexcept;
78
80};
81
82Q_DECLARE_SHARED(QOcspResponse)
83
85
87
88#endif // QOCSPRESPONSE_H
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
This class represents Online Certificate Status Protocol response.
QOcspResponse & operator=(const QOcspResponse &other)
QOcspCertificateStatus certificateStatus() const
void swap(QOcspResponse &other) noexcept
QOcspRevocationReason revocationReason() const
friend Q_NETWORK_EXPORT size_t qHash(const QOcspResponse &response, size_t seed) noexcept
friend bool operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs)
Returns true if lhs and rhs are responses for different certificates, or signed by different responde...
friend bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs)
Returns true if lhs and rhs are the responses for the same certificate, signed by the same responder,...
QOcspResponse(const QOcspResponse &other)
QOcspResponse(QOcspResponse &&other) noexcept
\inmodule QtCore
Definition qshareddata.h:35
The QSslCertificate class provides a convenient API for an X509 certificate.
Combined button and popup list for selecting options.
Namespace containing onternal types that TLS backends implement.
#define QT_DECL_METATYPE_EXTERN(TYPE, EXPORT)
Definition qmetatype.h:1367
Q_NETWORK_EXPORT size_t qHash(const QOcspResponse &response, size_t seed=0) noexcept
QOcspRevocationReason
QOcspCertificateStatus
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196
#define QT_REQUIRE_CONFIG(feature)
QSharedPointer< T > other(t)
[5]