7#ifndef QT_NO_DEBUG_STREAM
8#include <QtCore/qdebug.h>
10#include <QtCore/qhashfunctions.h>
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
65
66
67
68
69
70
72QSslKeyingMaterial::QSslKeyingMaterial()
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
104 m_requestedSize(size)
108QSslKeyingMaterial::QSslKeyingMaterial(
const QByteArray &label, qsizetype size,
const QByteArray &context)
111 m_requestedSize(size)
125
126
127
128
129
130
131
132
136 return !m_label.isEmpty() && requestedSize() > 0;
140
141
142
143
144
145
146
147
148
151
152
153
154
155
156
157
158
159
160
161
162
163
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
184
185
186
187
188
189
190
191
192
193
196
197
198
201
202
203
204
207 return qHashMulti(seed, material.m_label, material.m_context, material.m_value,
208 material.m_requestedSize);
214 return lhs.m_requestedSize == rhs.m_requestedSize
215 && lhs.m_label == rhs.m_label
216 && lhs.m_context == rhs.m_context
217 && lhs.m_value == rhs.m_value;
220#ifndef QT_NO_DEBUG_STREAM
222
223
224
225
226
227
228
231 QDebugStateSaver saver(debug);
232 debug.resetFormat().nospace();
233 debug <<
"QSslKeyingMaterial("
234 << keying.label() <<
',' << keying.context()
235 <<
", requested size: " << keying.requestedSize()
236 <<
", actual size: " << keying.value().size() <<
')';
Describes exported keying material derived from a TLS session.
Q_NETWORK_EXPORT bool isValid() const noexcept
Returns true if this QSslKeyingMaterial object describes a valid exporter request.
size_t qHash(const QSslKeyingMaterial &material, size_t seed) noexcept
\qhashold{QHash}
bool comparesEqual(const QSslKeyingMaterial &lhs, const QSslKeyingMaterial &rhs) noexcept