Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
5
6
#
ifndef
QOCSPRESPONSE_H
7
#
define
QOCSPRESPONSE_H
8
9
#
include
<
QtNetwork
/
qtnetworkglobal
.
h
>
10
11
#
include
<
QtCore
/
qshareddata
.
h
>
12
#
include
<
QtCore
/
qmetatype
.
h
>
13
#
include
<
QtCore
/
qobject
.
h
>
14
15
#
ifndef
Q_QDOC
16
QT_REQUIRE_CONFIG
(
ssl
);
17
#
endif
18
19
QT_BEGIN_NAMESPACE
20
21
enum
class
QOcspCertificateStatus
22
{
23
Good,
24
Revoked,
25
Unknown
26
};
27
28
enum
class
QOcspRevocationReason
29
{
30
None
= -1,
31
Unspecified
,
32
KeyCompromise
,
33
CACompromise
,
34
AffiliationChanged
,
35
Superseded
,
36
CessationOfOperation
,
37
CertificateHold
,
38
RemoveFromCRL
39
};
40
41
namespace
QTlsPrivate
{
42
class
TlsCryptographOpenSSL
;
43
}
44
45
class
QOcspResponse;
46
Q_NETWORK_EXPORT size_t qHash(
const
QOcspResponse &response, size_t seed = 0)
noexcept
;
47
48
class
QOcspResponsePrivate
;
49
class
Q_NETWORK_EXPORT
QOcspResponse
50
{
51
public
:
52
53
QOcspResponse();
54
QOcspResponse(
const
QOcspResponse &other);
55
QOcspResponse(QOcspResponse && other)
noexcept
;
56
~QOcspResponse();
57
58
QOcspResponse &operator = (
const
QOcspResponse &other);
59
QOcspResponse &operator = (QOcspResponse &&other)
noexcept
;
60
61
QOcspCertificateStatus certificateStatus()
const
;
62
QOcspRevocationReason revocationReason()
const
;
63
64
class
QSslCertificate responder()
const
;
65
QSslCertificate subject()
const
;
66
67
void
swap(QOcspResponse &other)
noexcept
{ d.swap(other.d); }
68
69
private
:
70
bool
isEqual(
const
QOcspResponse &other)
const
;
71
72
friend
class
QTlsPrivate::TlsCryptographOpenSSL;
73
friend
bool
operator==(
const
QOcspResponse &lhs,
const
QOcspResponse &rhs)
74
{
return
lhs.isEqual(rhs); }
75
friend
bool
operator!=(
const
QOcspResponse &lhs,
const
QOcspResponse &rhs)
76
{
return
!lhs.isEqual(rhs); }
77
78
friend
Q_NETWORK_EXPORT size_t qHash(
const
QOcspResponse &response, size_t seed)
noexcept
;
79
80
QSharedDataPointer<QOcspResponsePrivate> d;
81
};
82
83
Q_DECLARE_SHARED
(
QOcspResponse
)
84
85
QT_END_NAMESPACE
86
87
QT_DECL_METATYPE_EXTERN(QOcspResponse, Q_NETWORK_EXPORT)
88
89
#
endif
// QOCSPRESPONSE_H
QDtlsClientVerifierPrivate
Definition
qdtls_p.h:31
QDtlsClientVerifierPrivate::QDtlsClientVerifierPrivate
QDtlsClientVerifierPrivate()
Definition
qdtls.cpp:335
QDtlsClientVerifierPrivate::~QDtlsClientVerifierPrivate
~QDtlsClientVerifierPrivate()
QDtlsPrivate
Definition
qdtls_p.h:39
QDtlsPrivate::QDtlsPrivate
QDtlsPrivate()
QDtlsPrivate::~QDtlsPrivate
~QDtlsPrivate()
QOcspResponsePrivate
Definition
qocspresponse_p.h:30
QOcspResponse
This class represents Online Certificate Status Protocol response.
Definition
qocspresponse.h:50
QSslContext
Definition
qsslcontext_openssl_p.h:32
QSslPreSharedKeyAuthenticator
The QSslPreSharedKeyAuthenticator class provides authentication data for pre shared keys (PSK) cipher...
Definition
qsslpresharedkeyauthenticator.h:19
QSslSocketPrivate
Definition
qsslsocket_p.h:43
QSslSocket
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
Definition
qsslsocket.h:30
QTlsPrivate::TlsCryptographOpenSSL
Definition
qtls_openssl_p.h:38
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QTlsPrivate
Namespace containing onternal types that TLS backends implement.
Definition
qocspresponse.h:41
msgUnsupportedMulticastAddress
static QT_BEGIN_NAMESPACE QString msgUnsupportedMulticastAddress()
Definition
qdtls.cpp:304
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
QOcspRevocationReason
QOcspRevocationReason
Definition
qocspresponse.h:29
QOcspRevocationReason::RemoveFromCRL
@ RemoveFromCRL
Definition
qocspresponse.h:38
QOcspRevocationReason::AffiliationChanged
@ AffiliationChanged
Definition
qocspresponse.h:34
QOcspRevocationReason::CertificateHold
@ CertificateHold
Definition
qocspresponse.h:37
QOcspRevocationReason::CACompromise
@ CACompromise
Definition
qocspresponse.h:33
QOcspRevocationReason::None
@ None
Definition
qocspresponse.h:30
QOcspRevocationReason::Unspecified
@ Unspecified
Definition
qocspresponse.h:31
QOcspRevocationReason::CessationOfOperation
@ CessationOfOperation
Definition
qocspresponse.h:36
QOcspRevocationReason::KeyCompromise
@ KeyCompromise
Definition
qocspresponse.h:32
QOcspRevocationReason::Superseded
@ Superseded
Definition
qocspresponse.h:35
qtbase
src
network
ssl
qocspresponse.h
Generated on
for Qt by
1.18.0