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}
executed 8449 times by 17 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslcipher - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
8449
14QSslCipher::QSslCipher(const QString &name)-
15 : d(new QSslCipherPrivate)-
16{-
17 const auto ciphers = QSslConfiguration::supportedCiphers();-
18 for (const QSslCipher &cipher : 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 const auto ciphers = QSslConfiguration::supportedCiphers();-
29 for (const QSslCipher &cipher : 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}
executed 3376 times by 16 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
3376
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
executed 733 times by 8 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
*this;
executed 733 times by 8 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
733
61}-
62bool QSslCipher::operator==(const QSslCipher &other) const-
63{-
64 return
executed 2102 times by 3 tests: return d->name == other.d->name && d->protocol == other.d->protocol;
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qsslsocket - unknown status
d->name == other.d->name && d->protocol == other.d->protocol;
executed 2102 times by 3 tests: return d->name == other.d->name && d->protocol == other.d->protocol;
Executed by:
  • tst_QNetworkReply
  • tst_Spdy
  • tst_qsslsocket - unknown status
2102
65}-
66bool QSslCipher::isNull() const-
67{-
68 return
executed 1211 times by 15 tests: return d->isNull;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
d->isNull;
executed 1211 times by 15 tests: return d->isNull;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
1211
69}-
70-
71-
72-
73-
74-
75-
76-
77QString QSslCipher::name() const-
78{-
79 return
executed 36207 times by 16 tests: return d->name;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
d->name;
executed 36207 times by 16 tests: return d->name;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
36207
80}-
81-
82-
83-
84-
85-
86-
87int QSslCipher::supportedBits()const-
88{-
89 return
never executed: return d->supportedBits;
d->supportedBits;
never executed: return d->supportedBits;
0
90}-
91-
92-
93-
94-
95-
96-
97int QSslCipher::usedBits() const-
98{-
99 return
executed 1875 times by 15 tests: return d->bits;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
d->bits;
executed 1875 times by 15 tests: return d->bits;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsslcertificate - unknown status
  • tst_qsslellipticcurve - unknown status
  • tst_qsslerror - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsslsocket_onDemandCertificates_member - unknown status
  • tst_qsslsocket_onDemandCertificates_static - unknown status
  • tst_qtcpsocket - unknown status
1875
100}-
101-
102-
103-
104-
105QString QSslCipher::keyExchangeMethod() const-
106{-
107 return
never executed: return d->keyExchangeMethod;
d->keyExchangeMethod;
never executed: return d->keyExchangeMethod;
0
108}-
109-
110-
111-
112-
113QString QSslCipher::authenticationMethod() const-
114{-
115 return
never executed: return d->authenticationMethod;
d->authenticationMethod;
never executed: return d->authenticationMethod;
0
116}-
117-
118-
119-
120-
121QString QSslCipher::encryptionMethod() const-
122{-
123 return
never executed: return d->encryptionMethod;
d->encryptionMethod;
never executed: return d->encryptionMethod;
0
124}-
125-
126-
127-
128-
129-
130-
131QString QSslCipher::protocolString() const-
132{-
133 return
executed 720 times by 1 test: return d->protocolString;
Executed by:
  • tst_qsslsocket - unknown status
d->protocolString;
executed 720 times by 1 test: return d->protocolString;
Executed by:
  • tst_qsslsocket - unknown status
720
134}-
135QSsl::SslProtocol QSslCipher::protocol() const-
136{-
137 return
never executed: return d->protocol;
d->protocol;
never executed: return d->protocol;
0
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
executed 720 times by 1 test: return debug;
Executed by:
  • tst_qsslsocket - unknown status
debug;
executed 720 times by 1 test: return debug;
Executed by:
  • tst_qsslsocket - unknown status
720
150}-
151-
152-
153-
Switch to Source codePreprocessed file

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