Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/network/ssl/qsslconfiguration.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | const QSsl::SslOptions QSslConfigurationPrivate::defaultSslOptions = QSsl::SslOptionDisableEmptyFragments | - | ||||||
5 | |QSsl::SslOptionDisableLegacyRenegotiation | - | ||||||
6 | |QSsl::SslOptionDisableCompression | - | ||||||
7 | |QSsl::SslOptionDisableSessionPersistence; | - | ||||||
8 | - | |||||||
9 | const char QSslConfiguration::NextProtocolSpdy3_0[] = "spdy/3"; | - | ||||||
10 | const char QSslConfiguration::NextProtocolHttp1_1[] = "http/1.1"; | - | ||||||
11 | QSslConfiguration::QSslConfiguration() | - | ||||||
12 | : d(new QSslConfigurationPrivate) | - | ||||||
13 | { | - | ||||||
14 | } executed 5894 times by 12 tests: end of block Executed by:
| 5894 | ||||||
15 | - | |||||||
16 | - | |||||||
17 | - | |||||||
18 | - | |||||||
19 | - | |||||||
20 | QSslConfiguration::QSslConfiguration(const QSslConfiguration &other) | - | ||||||
21 | : d(other.d) | - | ||||||
22 | { | - | ||||||
23 | } executed 1927 times by 9 tests: end of block Executed by:
| 1927 | ||||||
24 | - | |||||||
25 | - | |||||||
26 | - | |||||||
27 | - | |||||||
28 | QSslConfiguration::~QSslConfiguration() | - | ||||||
29 | { | - | ||||||
30 | - | |||||||
31 | } | - | ||||||
32 | - | |||||||
33 | - | |||||||
34 | - | |||||||
35 | - | |||||||
36 | - | |||||||
37 | QSslConfiguration &QSslConfiguration::operator=(const QSslConfiguration &other) | - | ||||||
38 | { | - | ||||||
39 | d = other.d; | - | ||||||
40 | return executed 1476 times by 7 tests: *this;return *this; Executed by:
executed 1476 times by 7 tests: return *this; Executed by:
| 1476 | ||||||
41 | } | - | ||||||
42 | bool QSslConfiguration::operator==(const QSslConfiguration &other) const | - | ||||||
43 | { | - | ||||||
44 | if (d == other.d
| 40-62 | ||||||
45 | return executed 40 times by 2 tests: true;return true; Executed by:
executed 40 times by 2 tests: return true; Executed by:
| 40 | ||||||
46 | return executed 62 times by 3 tests: d->peerCertificate == other.d->peerCertificatereturn d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
47 | d->peerCertificateChain == other.d->peerCertificateChain
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
48 | d->localCertificateChain == other.d->localCertificateChain
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
49 | d->privateKey == other.d->privateKey
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
50 | d->sessionCipher == other.d->sessionCipher
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
51 | d->sessionProtocol == other.d->sessionProtocol
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
52 | d->ciphers == other.d->ciphers
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 21-62 | ||||||
53 | d->ellipticCurves == other.d->ellipticCurves
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
54 | d->caCertificates == other.d->caCertificates
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 2-62 | ||||||
55 | d->protocol == other.d->protocol
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
56 | d->peerVerifyMode == other.d->peerVerifyMode
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
57 | d->peerVerifyDepth == other.d->peerVerifyDepth
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
58 | d->allowRootCertOnDemandLoading == other.d->allowRootCertOnDemandLoading
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
59 | d->sslOptions == other.d->sslOptions
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 3-62 | ||||||
60 | d->sslSession == other.d->sslSession
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
61 | d->sslSessionTicketLifeTimeHint == other.d->sslSessionTicketLifeTimeHint
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
62 | d->nextAllowedProtocols == other.d->nextAllowedProtocols
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 5-62 | ||||||
63 | d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
64 | d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus
executed 62 times by 3 tests: return d->peerCertificate == other.d->peerCertificate && d->peerCertificateChain == other.d->peerCertificateChain && d->localCertificateChain == other.d->localCertificateChain && d->privateKey == other.d->privateKey && d->sessionCipher == other.d->session...ifeTimeHint == other.d->sslSessionTicketLifeTimeHint && d->nextAllowedProtocols == other.d->nextAllowedProtocols && d->nextNegotiatedProtocol == other.d->nextNegotiatedProtocol && d->nextProtocolNegotiationStatus == other.d->nextProtocolNegotiationStatus; Executed by:
| 0-62 | ||||||
65 | } | - | ||||||
66 | bool QSslConfiguration::isNull() const | - | ||||||
67 | { | - | ||||||
68 | return executed 230 times by 3 tests: (d->protocol == QSsl::SecureProtocolsreturn (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
69 | d->peerVerifyMode == QSslSocket::AutoVerifyPeer
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
70 | d->peerVerifyDepth == 0
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
71 | d->allowRootCertOnDemandLoading == true
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 42-230 | ||||||
72 | d->caCertificates.count() == 0
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
73 | d->ciphers.count() == 0
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 49-230 | ||||||
74 | d->ellipticCurves.isEmpty()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
75 | d->localCertificateChain.isEmpty()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
76 | d->privateKey.isNull()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
77 | d->peerCertificate.isNull()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
78 | d->peerCertificateChain.count() == 0
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
79 | d->sslOptions == QSslConfigurationPrivate::defaultSslOptions
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
80 | d->sslSession.isNull()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
81 | d->sslSessionTicketLifeTimeHint == -1
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
82 | d->nextAllowedProtocols.isEmpty()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
83 | d->nextNegotiatedProtocol.isNull()
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
84 | d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone
executed 230 times by 3 tests: return (d->protocol == QSsl::SecureProtocols && d->peerVerifyMode == QSslSocket::AutoVerifyPeer && d->peerVerifyDepth == 0 && d->allowRootCertOnDemandLoading == true && d->caCertificates.count() == 0 && d->ciphers.count() == 0 && d->ellipticCurves.isEmpty...rivate::defaultSslOptions && d->sslSession.isNull() && d->sslSessionTicketLifeTimeHint == -1 && d->nextAllowedProtocols.isEmpty() && d->nextNegotiatedProtocol.isNull() && d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); Executed by:
| 0-230 | ||||||
85 | } | - | ||||||
86 | - | |||||||
87 | - | |||||||
88 | - | |||||||
89 | - | |||||||
90 | - | |||||||
91 | - | |||||||
92 | QSsl::SslProtocol QSslConfiguration::protocol() const | - | ||||||
93 | { | - | ||||||
94 | return executed 1044 times by 7 tests: d->protocol;return d->protocol; Executed by:
executed 1044 times by 7 tests: return d->protocol; Executed by:
| 1044 | ||||||
95 | } | - | ||||||
96 | void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol) | - | ||||||
97 | { | - | ||||||
98 | d->protocol = protocol; | - | ||||||
99 | } executed 2 times by 2 tests: end of block Executed by:
| 2 | ||||||
100 | QSslSocket::PeerVerifyMode QSslConfiguration::peerVerifyMode() const | - | ||||||
101 | { | - | ||||||
102 | return executed 582 times by 7 tests: d->peerVerifyMode;return d->peerVerifyMode; Executed by:
executed 582 times by 7 tests: return d->peerVerifyMode; Executed by:
| 582 | ||||||
103 | } | - | ||||||
104 | void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode) | - | ||||||
105 | { | - | ||||||
106 | d->peerVerifyMode = mode; | - | ||||||
107 | } never executed: end of block | 0 | ||||||
108 | int QSslConfiguration::peerVerifyDepth() const | - | ||||||
109 | { | - | ||||||
110 | return executed 582 times by 7 tests: d->peerVerifyDepth;return d->peerVerifyDepth; Executed by:
executed 582 times by 7 tests: return d->peerVerifyDepth; Executed by:
| 582 | ||||||
111 | } | - | ||||||
112 | void QSslConfiguration::setPeerVerifyDepth(int depth) | - | ||||||
113 | { | - | ||||||
114 | if (depth < 0
| 0 | ||||||
115 | for (bool qt_category_enabled = lcSsl().isWarningEnabled(); qt_category_enabled
never executed: QMessageLogger( __FILE__ , 349 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
116 | __FILE__ never executed: QMessageLogger( __FILE__ , 349 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
117 | , never executed: QMessageLogger( __FILE__ , 349 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
118 | 349 never executed: QMessageLogger( __FILE__ , 349 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
119 | , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) never executed: QMessageLogger( __FILE__ , 349 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
120 | ; never executed: QMessageLogger( __FILE__ , 349 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
121 | return; never executed: return; | 0 | ||||||
122 | } | - | ||||||
123 | d->peerVerifyDepth = depth; | - | ||||||
124 | } never executed: end of block | 0 | ||||||
125 | QList<QSslCertificate> QSslConfiguration::localCertificateChain() const | - | ||||||
126 | { | - | ||||||
127 | return executed 141 times by 4 tests: d->localCertificateChain;return d->localCertificateChain; Executed by:
executed 141 times by 4 tests: return d->localCertificateChain; Executed by:
| 141 | ||||||
128 | } | - | ||||||
129 | void QSslConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain) | - | ||||||
130 | { | - | ||||||
131 | d->localCertificateChain = localChain; | - | ||||||
132 | } never executed: end of block | 0 | ||||||
133 | - | |||||||
134 | - | |||||||
135 | - | |||||||
136 | - | |||||||
137 | - | |||||||
138 | - | |||||||
139 | - | |||||||
140 | QSslCertificate QSslConfiguration::localCertificate() const | - | ||||||
141 | { | - | ||||||
142 | if (d->localCertificateChain.isEmpty()
| 178-360 | ||||||
143 | return executed 360 times by 7 tests: QSslCertificate();return QSslCertificate(); Executed by:
executed 360 times by 7 tests: return QSslCertificate(); Executed by:
| 360 | ||||||
144 | return executed 178 times by 2 tests: d->localCertificateChain[0];return d->localCertificateChain[0]; Executed by:
executed 178 times by 2 tests: return d->localCertificateChain[0]; Executed by:
| 178 | ||||||
145 | } | - | ||||||
146 | void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate) | - | ||||||
147 | { | - | ||||||
148 | d->localCertificateChain = QList<QSslCertificate>(); | - | ||||||
149 | d->localCertificateChain += certificate; | - | ||||||
150 | } never executed: end of block | 0 | ||||||
151 | QSslCertificate QSslConfiguration::peerCertificate() const | - | ||||||
152 | { | - | ||||||
153 | return never executed: d->peerCertificate;return d->peerCertificate; never executed: return d->peerCertificate; | 0 | ||||||
154 | } | - | ||||||
155 | QList<QSslCertificate> QSslConfiguration::peerCertificateChain() const | - | ||||||
156 | { | - | ||||||
157 | return never executed: d->peerCertificateChain;return d->peerCertificateChain; never executed: return d->peerCertificateChain; | 0 | ||||||
158 | } | - | ||||||
159 | QSslCipher QSslConfiguration::sessionCipher() const | - | ||||||
160 | { | - | ||||||
161 | return never executed: d->sessionCipher;return d->sessionCipher; never executed: return d->sessionCipher; | 0 | ||||||
162 | } | - | ||||||
163 | QSsl::SslProtocol QSslConfiguration::sessionProtocol() const | - | ||||||
164 | { | - | ||||||
165 | return never executed: d->sessionProtocol;return d->sessionProtocol; never executed: return d->sessionProtocol; | 0 | ||||||
166 | } | - | ||||||
167 | - | |||||||
168 | - | |||||||
169 | - | |||||||
170 | - | |||||||
171 | - | |||||||
172 | - | |||||||
173 | - | |||||||
174 | QSslKey QSslConfiguration::privateKey() const | - | ||||||
175 | { | - | ||||||
176 | return executed 223 times by 4 tests: d->privateKey;return d->privateKey; Executed by:
executed 223 times by 4 tests: return d->privateKey; Executed by:
| 223 | ||||||
177 | } | - | ||||||
178 | void QSslConfiguration::setPrivateKey(const QSslKey &key) | - | ||||||
179 | { | - | ||||||
180 | d->privateKey = key; | - | ||||||
181 | } never executed: end of block | 0 | ||||||
182 | QList<QSslCipher> QSslConfiguration::ciphers() const | - | ||||||
183 | { | - | ||||||
184 | return executed 595 times by 7 tests: d->ciphers;return d->ciphers; Executed by:
executed 595 times by 7 tests: return d->ciphers; Executed by:
| 595 | ||||||
185 | } | - | ||||||
186 | void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers) | - | ||||||
187 | { | - | ||||||
188 | d->ciphers = ciphers; | - | ||||||
189 | } never executed: end of block | 0 | ||||||
190 | QList<QSslCipher> QSslConfiguration::supportedCiphers() | - | ||||||
191 | { | - | ||||||
192 | return executed 41 times by 1 test: QSslSocketPrivate::supportedCiphers();return QSslSocketPrivate::supportedCiphers(); Executed by:
executed 41 times by 1 test: return QSslSocketPrivate::supportedCiphers(); Executed by:
| 41 | ||||||
193 | } | - | ||||||
194 | QList<QSslCertificate> QSslConfiguration::caCertificates() const | - | ||||||
195 | { | - | ||||||
196 | return executed 595 times by 8 tests: d->caCertificates;return d->caCertificates; Executed by:
executed 595 times by 8 tests: return d->caCertificates; Executed by:
| 595 | ||||||
197 | } | - | ||||||
198 | void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates) | - | ||||||
199 | { | - | ||||||
200 | d->caCertificates = certificates; | - | ||||||
201 | d->allowRootCertOnDemandLoading = false; | - | ||||||
202 | } executed 42 times by 2 tests: end of block Executed by:
| 42 | ||||||
203 | QList<QSslCertificate> QSslConfiguration::systemCaCertificates() | - | ||||||
204 | { | - | ||||||
205 | - | |||||||
206 | return never executed: QSslSocketPrivate::systemCaCertificates();return QSslSocketPrivate::systemCaCertificates(); never executed: return QSslSocketPrivate::systemCaCertificates(); | 0 | ||||||
207 | } | - | ||||||
208 | void QSslConfiguration::setSslOption(QSsl::SslOption option, bool on) | - | ||||||
209 | { | - | ||||||
210 | if (on
| 1-2 | ||||||
211 | d->sslOptions |= option; executed 2 times by 2 tests: d->sslOptions |= option; Executed by:
| 2 | ||||||
212 | else | - | ||||||
213 | d->sslOptions &= ~option; executed 1 time by 1 test: d->sslOptions &= ~option; Executed by:
| 1 | ||||||
214 | } | - | ||||||
215 | bool QSslConfiguration::testSslOption(QSsl::SslOption option) const | - | ||||||
216 | { | - | ||||||
217 | return executed 330 times by 7 tests: d->sslOptions & option;return d->sslOptions & option; Executed by:
executed 330 times by 7 tests: return d->sslOptions & option; Executed by:
| 330 | ||||||
218 | } | - | ||||||
219 | QByteArray QSslConfiguration::sessionTicket() const | - | ||||||
220 | { | - | ||||||
221 | return executed 585 times by 7 tests: d->sslSession;return d->sslSession; Executed by:
executed 585 times by 7 tests: return d->sslSession; Executed by:
| 585 | ||||||
222 | } | - | ||||||
223 | void QSslConfiguration::setSessionTicket(const QByteArray &sessionTicket) | - | ||||||
224 | { | - | ||||||
225 | d->sslSession = sessionTicket; | - | ||||||
226 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||
227 | int QSslConfiguration::sessionTicketLifeTimeHint() const | - | ||||||
228 | { | - | ||||||
229 | return executed 138 times by 4 tests: d->sslSessionTicketLifeTimeHint;return d->sslSessionTicketLifeTimeHint; Executed by:
executed 138 times by 4 tests: return d->sslSessionTicketLifeTimeHint; Executed by:
| 138 | ||||||
230 | } | - | ||||||
231 | QVector<QSslEllipticCurve> QSslConfiguration::ellipticCurves() const | - | ||||||
232 | { | - | ||||||
233 | return executed 582 times by 7 tests: d->ellipticCurves;return d->ellipticCurves; Executed by:
executed 582 times by 7 tests: return d->ellipticCurves; Executed by:
| 582 | ||||||
234 | } | - | ||||||
235 | void QSslConfiguration::setEllipticCurves(const QVector<QSslEllipticCurve> &curves) | - | ||||||
236 | { | - | ||||||
237 | d->ellipticCurves = curves; | - | ||||||
238 | } never executed: end of block | 0 | ||||||
239 | QVector<QSslEllipticCurve> QSslConfiguration::supportedEllipticCurves() | - | ||||||
240 | { | - | ||||||
241 | return executed 2 times by 1 test: QSslSocketPrivate::supportedEllipticCurves();return QSslSocketPrivate::supportedEllipticCurves(); Executed by:
executed 2 times by 1 test: return QSslSocketPrivate::supportedEllipticCurves(); Executed by:
| 2 | ||||||
242 | } | - | ||||||
243 | QByteArray QSslConfiguration::nextNegotiatedProtocol() const | - | ||||||
244 | { | - | ||||||
245 | return executed 229 times by 4 tests: d->nextNegotiatedProtocol;return d->nextNegotiatedProtocol; Executed by:
executed 229 times by 4 tests: return d->nextNegotiatedProtocol; Executed by:
| 229 | ||||||
246 | } | - | ||||||
247 | void QSslConfiguration::setAllowedNextProtocols(QList<QByteArray> protocols) | - | ||||||
248 | - | |||||||
249 | { | - | ||||||
250 | d->nextAllowedProtocols = protocols; | - | ||||||
251 | } executed 112 times by 1 test: end of block Executed by:
| 112 | ||||||
252 | QList<QByteArray> QSslConfiguration::allowedNextProtocols() const | - | ||||||
253 | { | - | ||||||
254 | return executed 136 times by 4 tests: d->nextAllowedProtocols;return d->nextAllowedProtocols; Executed by:
executed 136 times by 4 tests: return d->nextAllowedProtocols; Executed by:
| 136 | ||||||
255 | } | - | ||||||
256 | QSslConfiguration::NextProtocolNegotiationStatus QSslConfiguration::nextProtocolNegotiationStatus() const | - | ||||||
257 | { | - | ||||||
258 | return executed 313 times by 5 tests: d->nextProtocolNegotiationStatus;return d->nextProtocolNegotiationStatus; Executed by:
executed 313 times by 5 tests: return d->nextProtocolNegotiationStatus; Executed by:
| 313 | ||||||
259 | } | - | ||||||
260 | QSslConfiguration QSslConfiguration::defaultConfiguration() | - | ||||||
261 | { | - | ||||||
262 | return executed 1001 times by 11 tests: QSslConfigurationPrivate::defaultConfiguration();return QSslConfigurationPrivate::defaultConfiguration(); Executed by:
executed 1001 times by 11 tests: return QSslConfigurationPrivate::defaultConfiguration(); Executed by:
| 1001 | ||||||
263 | } | - | ||||||
264 | void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration) | - | ||||||
265 | { | - | ||||||
266 | QSslConfigurationPrivate::setDefaultConfiguration(configuration); | - | ||||||
267 | } executed 16 times by 2 tests: end of block Executed by:
| 16 | ||||||
268 | - | |||||||
269 | - | |||||||
270 | - | |||||||
271 | bool QSslConfigurationPrivate::peerSessionWasShared(const QSslConfiguration &configuration) { | - | ||||||
272 | return executed 14 times by 1 test: configuration.d->peerSessionShared;return configuration.d->peerSessionShared; Executed by:
executed 14 times by 1 test: return configuration.d->peerSessionShared; Executed by:
| 14 | ||||||
273 | } | - | ||||||
274 | - | |||||||
275 | - | |||||||
Switch to Source code | Preprocessed file |