Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
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
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
79 QSharedDataPointer<QOcspResponsePrivate> d;
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
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:1388
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]