9#ifndef QT_NO_DEBUG_STREAM
15QT_IMPL_METATYPE_EXTERN(QSslEllipticCurve)
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
41
42
43
44
45
46
49
50
51
52
53
54
55
56
57
58
59
60
61QSslEllipticCurve QSslEllipticCurve::fromShortName(
const QString &name)
63 QSslEllipticCurve result;
67 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
68 result.id = tlsBackend->curveIdFromShortName(name);
74
75
76
77
78
79
80
81
82
83
90 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
91 result.id = tlsBackend->curveIdFromLongName(name);
97
98
99
100
101
106 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
107 name = tlsBackend->shortNameForId(id);
113
114
115
116
117
122 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
123 name = tlsBackend->longNameForId(id);
129
130
131
132
135
136
137
138
141 if (
const auto *tlsBackend = QSslSocketPrivate::tlsBackendInUse())
142 return tlsBackend->isTlsNamedCurve(id);
149
150
151
152
153
156
157
158
159
160
161
164
165
166
167
169#ifndef QT_NO_DEBUG_STREAM
171
172
173
174
175
176
177
178
181 QDebugStateSaver saver(debug);
182 debug.resetFormat().nospace();
183 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.