qsslcipher.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/ssl/qsslcipher.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10QSslCipher::QSslCipher()-
11 : d(new QSslCipherPrivate)-
12{-
13}-
14QSslCipher::QSslCipher(const QString &name)-
15 : d(new QSslCipherPrivate)-
16{-
17 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(QSslConfiguration::supportedCiphers())>::type> _container_((const auto ciphers = QSslConfiguration::supportedCiphers())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1)();-
18 for (const QSslCipher &cipher = *_container_.i; _container_.control; _container_.control = 0: ciphers) {-
19 if (cipher.name() == name
cipher.name() == nameDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_qsslsocket - unknown status
FALSEevaluated 2756 times by 1 test
Evaluated by:
  • tst_qsslsocket - unknown status
) {
13-2756
20 *this = cipher;-
21 return;
executed 13 times by 1 test: return;
Executed by:
  • tst_qsslsocket - unknown status
13
22 }-
23 }
executed 2756 times by 1 test: end of block
Executed by:
  • tst_qsslsocket - unknown status
2756
24}
executed 30 times by 1 test: end of block
Executed by:
  • tst_qsslsocket - unknown status
30
25QSslCipher::QSslCipher(const QString &name, QSsl::SslProtocol protocol)-
26 : d(new QSslCipherPrivate)-
27{-
28 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(QSslConfiguration::supportedCiphers())>::type> _container_((const auto ciphers = QSslConfiguration::supportedCiphers())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1)();-
29 for (const QSslCipher &cipher = *_container_.i; _container_.control; _container_.control = 0: ciphers) {-
30 if (cipher.name() == name
cipher.name() == nameDescription
TRUEnever evaluated
FALSEnever evaluated
&& cipher.protocol() == protocol
cipher.protocol() == protocolDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
31 *this = cipher;-
32 return;
never executed: return;
0
33 }-
34 }
never executed: end of block
0
35}
never executed: end of block
0
36-
37-
38-
39-
40QSslCipher::QSslCipher(const QSslCipher &other)-
41 : d(new QSslCipherPrivate)-
42{-
43 *d.data() = *other.d.data();-
44}-
45-
46-
47-
48-
49QSslCipher::~QSslCipher()-
50{-
51}-
52-
53-
54-
55-
56-
57QSslCipher &QSslCipher::operator=(const QSslCipher &other)-
58{-
59 *d.data() = *other.d.data();-
60 return *this;-
61}-
62bool QSslCipher::operator==(const QSslCipher &other) const-
63{-
64 return d->name == other.d->name && d->protocol == other.d->protocol;-
65}-
66bool QSslCipher::isNull() const-
67{-
68 return d->isNull;-
69}-
70-
71-
72-
73-
74-
75-
76-
77QString QSslCipher::name() const-
78{-
79 return d->name;-
80}-
81-
82-
83-
84-
85-
86-
87int QSslCipher::supportedBits()const-
88{-
89 return d->supportedBits;-
90}-
91-
92-
93-
94-
95-
96-
97int QSslCipher::usedBits() const-
98{-
99 return d->bits;-
100}-
101-
102-
103-
104-
105QString QSslCipher::keyExchangeMethod() const-
106{-
107 return d->keyExchangeMethod;-
108}-
109-
110-
111-
112-
113QString QSslCipher::authenticationMethod() const-
114{-
115 return d->authenticationMethod;-
116}-
117-
118-
119-
120-
121QString QSslCipher::encryptionMethod() const-
122{-
123 return d->encryptionMethod;-
124}-
125-
126-
127-
128-
129-
130-
131QString QSslCipher::protocolString() const-
132{-
133 return d->protocolString;-
134}-
135QSsl::SslProtocol QSslCipher::protocol() const-
136{-
137 return d->protocol;-
138}-
139-
140-
141QDebug operator<<(QDebug debug, const QSslCipher &cipher)-
142{-
143 QDebugStateSaver saver(debug);-
144 debug.resetFormat().nospace().noquote();-
145 debug << "QSslCipher(name=" << cipher.name()-
146 << ", bits=" << cipher.usedBits()-
147 << ", proto=" << cipher.protocolString()-
148 << ')';-
149 return debug;-
150}-
151-
152-
153-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9