8#ifndef QT_NO_DEBUG_STREAM
14QT_IMPL_METATYPE_EXTERN(QSslEllipticCurve)
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
40
41
42
43
44
45
48
49
50
51
52
53
54
55
56
57
58
59
60QSslEllipticCurve QSslEllipticCurve::fromShortName(
const QString &name)
62 QSslEllipticCurve result;
66 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
67 result.id = tlsBackend->curveIdFromShortName(name);
73
74
75
76
77
78
79
80
81
82
89 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
90 result.id = tlsBackend->curveIdFromLongName(name);
96
97
98
99
100
105 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
106 name = tlsBackend->shortNameForId(id);
112
113
114
115
116
121 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
122 name = tlsBackend->longNameForId(id);
128
129
130
131
134
135
136
137
140 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
141 return tlsBackend->isTlsNamedCurve(id);
148
149
150
151
152
155
156
157
158
159
160
163
164
165
166
167
168
169
171#ifndef QT_NO_DEBUG_STREAM
173
174
175
176
177
178
179
180
183 QDebugStateSaver saver(debug);
184 debug.resetFormat().nospace();
185 debug <<
"QSslEllipticCurve(" << curve.shortName() <<
')';
Represents an elliptic curve for use by elliptic-curve cipher algorithms.
Q_NETWORK_EXPORT bool isTlsNamedCurve() const noexcept
Returns true if this elliptic curve is one of the named curves that can be used in the key exchange w...
Combined button and popup list for selecting options.