| 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 5898 times by 12 tests: end of blockExecuted by:
| 5898 | ||||||
| 15 | - | |||||||
| 16 | - | |||||||
| 17 | - | |||||||
| 18 | - | |||||||
| 19 | - | |||||||
| 20 | QSslConfiguration::QSslConfiguration(const QSslConfiguration &other) | - | ||||||
| 21 | : d(other.d) | - | ||||||
| 22 | { | - | ||||||
| 23 | } executed 1931 times by 9 tests: end of blockExecuted by:
| 1931 | ||||||
| 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 1484 times by 7 tests: *this;return *this;Executed by:
executed 1484 times by 7 tests: return *this;Executed by:
| 1484 | ||||||
| 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->peerCertificate &&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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 62 | ||||||
| 54 | d->ephemeralServerKey == other.d->ephemeralServerKey && 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:
| 62 | ||||||
| 55 | 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:
| 62 | ||||||
| 56 | 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:
| 62 | ||||||
| 57 | 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:
| 62 | ||||||
| 58 | 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:
| 62 | ||||||
| 59 | 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:
| 62 | ||||||
| 60 | 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:
| 62 | ||||||
| 61 | 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:
| 62 | ||||||
| 62 | 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:
| 62 | ||||||
| 63 | 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:
| 62 | ||||||
| 64 | 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:
| 62 | ||||||
| 65 | 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:
| 62 | ||||||
| 66 | } | - | ||||||
| 67 | bool QSslConfiguration::isNull() const | - | ||||||
| 68 | { | - | ||||||
| 69 | return executed 231 times by 3 tests: (d->protocol == QSsl::SecureProtocols &&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:
executed 231 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:
| 231 | ||||||
| 70 | d->peerVerifyMode == QSslSocket::AutoVerifyPeer && executed 231 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:
| 231 | ||||||
| 71 | d->peerVerifyDepth == 0 && executed 231 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:
| 231 | ||||||
| 72 | d->allowRootCertOnDemandLoading == true && executed 231 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:
| 231 | ||||||
| 73 | d->caCertificates.count() == 0 && executed 231 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:
| 231 | ||||||
| 74 | d->ciphers.count() == 0 && executed 231 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:
| 231 | ||||||
| 75 | d->ellipticCurves.isEmpty() && executed 231 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:
| 231 | ||||||
| 76 | d->ephemeralServerKey.isNull() && executed 231 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:
| 231 | ||||||
| 77 | d->localCertificateChain.isEmpty() && executed 231 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:
| 231 | ||||||
| 78 | d->privateKey.isNull() && executed 231 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:
| 231 | ||||||
| 79 | d->peerCertificate.isNull() && executed 231 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:
| 231 | ||||||
| 80 | d->peerCertificateChain.count() == 0 && executed 231 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:
| 231 | ||||||
| 81 | d->sslOptions == QSslConfigurationPrivate::defaultSslOptions && executed 231 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:
| 231 | ||||||
| 82 | d->sslSession.isNull() && executed 231 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:
| 231 | ||||||
| 83 | d->sslSessionTicketLifeTimeHint == -1 && executed 231 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:
| 231 | ||||||
| 84 | d->nextAllowedProtocols.isEmpty() && executed 231 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:
| 231 | ||||||
| 85 | d->nextNegotiatedProtocol.isNull() && executed 231 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:
| 231 | ||||||
| 86 | d->nextProtocolNegotiationStatus == QSslConfiguration::NextProtocolNegotiationNone); executed 231 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:
| 231 | ||||||
| 87 | } | - | ||||||
| 88 | - | |||||||
| 89 | - | |||||||
| 90 | - | |||||||
| 91 | - | |||||||
| 92 | - | |||||||
| 93 | - | |||||||
| 94 | QSsl::SslProtocol QSslConfiguration::protocol() const | - | ||||||
| 95 | { | - | ||||||
| 96 | return executed 1055 times by 7 tests: d->protocol;return d->protocol;Executed by:
executed 1055 times by 7 tests: return d->protocol;Executed by:
| 1055 | ||||||
| 97 | } | - | ||||||
| 98 | void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol) | - | ||||||
| 99 | { | - | ||||||
| 100 | d->protocol = protocol; | - | ||||||
| 101 | } executed 2 times by 2 tests: end of blockExecuted by:
| 2 | ||||||
| 102 | QSslSocket::PeerVerifyMode QSslConfiguration::peerVerifyMode() const | - | ||||||
| 103 | { | - | ||||||
| 104 | return executed 589 times by 7 tests: d->peerVerifyMode;return d->peerVerifyMode;Executed by:
executed 589 times by 7 tests: return d->peerVerifyMode;Executed by:
| 589 | ||||||
| 105 | } | - | ||||||
| 106 | void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode) | - | ||||||
| 107 | { | - | ||||||
| 108 | d->peerVerifyMode = mode; | - | ||||||
| 109 | } never executed: end of block | 0 | ||||||
| 110 | int QSslConfiguration::peerVerifyDepth() const | - | ||||||
| 111 | { | - | ||||||
| 112 | return executed 589 times by 7 tests: d->peerVerifyDepth;return d->peerVerifyDepth;Executed by:
executed 589 times by 7 tests: return d->peerVerifyDepth;Executed by:
| 589 | ||||||
| 113 | } | - | ||||||
| 114 | void QSslConfiguration::setPeerVerifyDepth(int depth) | - | ||||||
| 115 | { | - | ||||||
| 116 | if (depth < 0
| 0 | ||||||
| 117 | for (bool qt_category_enabled = lcSsl().isWarningEnabled(); qt_category_enabled
never executed: QMessageLogger( __FILE__ , 357 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
| 118 | __FILE__ never executed: QMessageLogger( __FILE__ , 357 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
| 119 | , never executed: QMessageLogger( __FILE__ , 357 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
| 120 | 357 never executed: QMessageLogger( __FILE__ , 357 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
| 121 | , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) never executed: QMessageLogger( __FILE__ , 357 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
| 122 | ; never executed: QMessageLogger( __FILE__ , 357 , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) ; | 0 | ||||||
| 123 | return; never executed: return; | 0 | ||||||
| 124 | } | - | ||||||
| 125 | d->peerVerifyDepth = depth; | - | ||||||
| 126 | } never executed: end of block | 0 | ||||||
| 127 | QList<QSslCertificate> QSslConfiguration::localCertificateChain() const | - | ||||||
| 128 | { | - | ||||||
| 129 | return executed 144 times by 4 tests: d->localCertificateChain;return d->localCertificateChain;Executed by:
executed 144 times by 4 tests: return d->localCertificateChain;Executed by:
| 144 | ||||||
| 130 | } | - | ||||||
| 131 | void QSslConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain) | - | ||||||
| 132 | { | - | ||||||
| 133 | d->localCertificateChain = localChain; | - | ||||||
| 134 | } never executed: end of block | 0 | ||||||
| 135 | - | |||||||
| 136 | - | |||||||
| 137 | - | |||||||
| 138 | - | |||||||
| 139 | - | |||||||
| 140 | - | |||||||
| 141 | - | |||||||
| 142 | QSslCertificate QSslConfiguration::localCertificate() const | - | ||||||
| 143 | { | - | ||||||
| 144 | if (d->localCertificateChain.isEmpty()
| 182-362 | ||||||
| 145 | return executed 362 times by 7 tests: QSslCertificate();return QSslCertificate();Executed by:
executed 362 times by 7 tests: return QSslCertificate();Executed by:
| 362 | ||||||
| 146 | return executed 182 times by 2 tests: d->localCertificateChain[0];return d->localCertificateChain[0];Executed by:
executed 182 times by 2 tests: return d->localCertificateChain[0];Executed by:
| 182 | ||||||
| 147 | } | - | ||||||
| 148 | void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate) | - | ||||||
| 149 | { | - | ||||||
| 150 | d->localCertificateChain = QList<QSslCertificate>(); | - | ||||||
| 151 | d->localCertificateChain += certificate; | - | ||||||
| 152 | } never executed: end of block | 0 | ||||||
| 153 | QSslCertificate QSslConfiguration::peerCertificate() const | - | ||||||
| 154 | { | - | ||||||
| 155 | return never executed: d->peerCertificate;return d->peerCertificate;never executed: return d->peerCertificate; | 0 | ||||||
| 156 | } | - | ||||||
| 157 | QList<QSslCertificate> QSslConfiguration::peerCertificateChain() const | - | ||||||
| 158 | { | - | ||||||
| 159 | return never executed: d->peerCertificateChain;return d->peerCertificateChain;never executed: return d->peerCertificateChain; | 0 | ||||||
| 160 | } | - | ||||||
| 161 | QSslCipher QSslConfiguration::sessionCipher() const | - | ||||||
| 162 | { | - | ||||||
| 163 | return never executed: d->sessionCipher;return d->sessionCipher;never executed: return d->sessionCipher; | 0 | ||||||
| 164 | } | - | ||||||
| 165 | QSsl::SslProtocol QSslConfiguration::sessionProtocol() const | - | ||||||
| 166 | { | - | ||||||
| 167 | return never executed: d->sessionProtocol;return d->sessionProtocol;never executed: return d->sessionProtocol; | 0 | ||||||
| 168 | } | - | ||||||
| 169 | - | |||||||
| 170 | - | |||||||
| 171 | - | |||||||
| 172 | - | |||||||
| 173 | - | |||||||
| 174 | - | |||||||
| 175 | - | |||||||
| 176 | QSslKey QSslConfiguration::privateKey() const | - | ||||||
| 177 | { | - | ||||||
| 178 | return executed 228 times by 4 tests: d->privateKey;return d->privateKey;Executed by:
executed 228 times by 4 tests: return d->privateKey;Executed by:
| 228 | ||||||
| 179 | } | - | ||||||
| 180 | void QSslConfiguration::setPrivateKey(const QSslKey &key) | - | ||||||
| 181 | { | - | ||||||
| 182 | d->privateKey = key; | - | ||||||
| 183 | } never executed: end of block | 0 | ||||||
| 184 | QList<QSslCipher> QSslConfiguration::ciphers() const | - | ||||||
| 185 | { | - | ||||||
| 186 | return executed 602 times by 7 tests: d->ciphers;return d->ciphers;Executed by:
executed 602 times by 7 tests: return d->ciphers;Executed by:
| 602 | ||||||
| 187 | } | - | ||||||
| 188 | void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers) | - | ||||||
| 189 | { | - | ||||||
| 190 | d->ciphers = ciphers; | - | ||||||
| 191 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||
| 192 | QList<QSslCipher> QSslConfiguration::supportedCiphers() | - | ||||||
| 193 | { | - | ||||||
| 194 | return executed 43 times by 1 test: QSslSocketPrivate::supportedCiphers();return QSslSocketPrivate::supportedCiphers();Executed by:
executed 43 times by 1 test: return QSslSocketPrivate::supportedCiphers();Executed by:
| 43 | ||||||
| 195 | } | - | ||||||
| 196 | QList<QSslCertificate> QSslConfiguration::caCertificates() const | - | ||||||
| 197 | { | - | ||||||
| 198 | return executed 602 times by 8 tests: d->caCertificates;return d->caCertificates;Executed by:
executed 602 times by 8 tests: return d->caCertificates;Executed by:
| 602 | ||||||
| 199 | } | - | ||||||
| 200 | void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates) | - | ||||||
| 201 | { | - | ||||||
| 202 | d->caCertificates = certificates; | - | ||||||
| 203 | d->allowRootCertOnDemandLoading = false; | - | ||||||
| 204 | } executed 42 times by 2 tests: end of blockExecuted by:
| 42 | ||||||
| 205 | QList<QSslCertificate> QSslConfiguration::systemCaCertificates() | - | ||||||
| 206 | { | - | ||||||
| 207 | - | |||||||
| 208 | return never executed: QSslSocketPrivate::systemCaCertificates();return QSslSocketPrivate::systemCaCertificates();never executed: return QSslSocketPrivate::systemCaCertificates(); | 0 | ||||||
| 209 | } | - | ||||||
| 210 | void QSslConfiguration::setSslOption(QSsl::SslOption option, bool on) | - | ||||||
| 211 | { | - | ||||||
| 212 | d->sslOptions.setFlag(option, on); | - | ||||||
| 213 | } executed 3 times by 2 tests: end of blockExecuted by:
| 3 | ||||||
| 214 | bool QSslConfiguration::testSslOption(QSsl::SslOption option) const | - | ||||||
| 215 | { | - | ||||||
| 216 | return executed 334 times by 7 tests: d->sslOptions & option;return d->sslOptions & option;Executed by:
executed 334 times by 7 tests: return d->sslOptions & option;Executed by:
| 334 | ||||||
| 217 | } | - | ||||||
| 218 | QByteArray QSslConfiguration::sessionTicket() const | - | ||||||
| 219 | { | - | ||||||
| 220 | return executed 592 times by 7 tests: d->sslSession;return d->sslSession;Executed by:
executed 592 times by 7 tests: return d->sslSession;Executed by:
| 592 | ||||||
| 221 | } | - | ||||||
| 222 | void QSslConfiguration::setSessionTicket(const QByteArray &sessionTicket) | - | ||||||
| 223 | { | - | ||||||
| 224 | d->sslSession = sessionTicket; | - | ||||||
| 225 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||
| 226 | int QSslConfiguration::sessionTicketLifeTimeHint() const | - | ||||||
| 227 | { | - | ||||||
| 228 | return executed 141 times by 4 tests: d->sslSessionTicketLifeTimeHint;return d->sslSessionTicketLifeTimeHint;Executed by:
executed 141 times by 4 tests: return d->sslSessionTicketLifeTimeHint;Executed by:
| 141 | ||||||
| 229 | } | - | ||||||
| 230 | QSslKey QSslConfiguration::ephemeralServerKey() const | - | ||||||
| 231 | { | - | ||||||
| 232 | return executed 4 times by 1 test: d->ephemeralServerKey;return d->ephemeralServerKey;Executed by:
executed 4 times by 1 test: return d->ephemeralServerKey;Executed by:
| 4 | ||||||
| 233 | } | - | ||||||
| 234 | QVector<QSslEllipticCurve> QSslConfiguration::ellipticCurves() const | - | ||||||
| 235 | { | - | ||||||
| 236 | return executed 589 times by 7 tests: d->ellipticCurves;return d->ellipticCurves;Executed by:
executed 589 times by 7 tests: return d->ellipticCurves;Executed by:
| 589 | ||||||
| 237 | } | - | ||||||
| 238 | void QSslConfiguration::setEllipticCurves(const QVector<QSslEllipticCurve> &curves) | - | ||||||
| 239 | { | - | ||||||
| 240 | d->ellipticCurves = curves; | - | ||||||
| 241 | } never executed: end of block | 0 | ||||||
| 242 | QVector<QSslEllipticCurve> QSslConfiguration::supportedEllipticCurves() | - | ||||||
| 243 | { | - | ||||||
| 244 | 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 | ||||||
| 245 | } | - | ||||||
| 246 | QByteArray QSslConfiguration::nextNegotiatedProtocol() const | - | ||||||
| 247 | { | - | ||||||
| 248 | return executed 232 times by 4 tests: d->nextNegotiatedProtocol;return d->nextNegotiatedProtocol;Executed by:
executed 232 times by 4 tests: return d->nextNegotiatedProtocol;Executed by:
| 232 | ||||||
| 249 | } | - | ||||||
| 250 | void QSslConfiguration::setAllowedNextProtocols(QList<QByteArray> protocols) | - | ||||||
| 251 | - | |||||||
| 252 | { | - | ||||||
| 253 | d->nextAllowedProtocols = protocols; | - | ||||||
| 254 | } executed 112 times by 1 test: end of blockExecuted by:
| 112 | ||||||
| 255 | QList<QByteArray> QSslConfiguration::allowedNextProtocols() const | - | ||||||
| 256 | { | - | ||||||
| 257 | return executed 139 times by 4 tests: d->nextAllowedProtocols;return d->nextAllowedProtocols;Executed by:
executed 139 times by 4 tests: return d->nextAllowedProtocols;Executed by:
| 139 | ||||||
| 258 | } | - | ||||||
| 259 | QSslConfiguration::NextProtocolNegotiationStatus QSslConfiguration::nextProtocolNegotiationStatus() const | - | ||||||
| 260 | { | - | ||||||
| 261 | return executed 317 times by 5 tests: d->nextProtocolNegotiationStatus;return d->nextProtocolNegotiationStatus;Executed by:
executed 317 times by 5 tests: return d->nextProtocolNegotiationStatus;Executed by:
| 317 | ||||||
| 262 | } | - | ||||||
| 263 | QSslConfiguration QSslConfiguration::defaultConfiguration() | - | ||||||
| 264 | { | - | ||||||
| 265 | return executed 1003 times by 11 tests: QSslConfigurationPrivate::defaultConfiguration();return QSslConfigurationPrivate::defaultConfiguration();Executed by:
executed 1003 times by 11 tests: return QSslConfigurationPrivate::defaultConfiguration();Executed by:
| 1003 | ||||||
| 266 | } | - | ||||||
| 267 | void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration) | - | ||||||
| 268 | { | - | ||||||
| 269 | QSslConfigurationPrivate::setDefaultConfiguration(configuration); | - | ||||||
| 270 | } executed 16 times by 2 tests: end of blockExecuted by:
| 16 | ||||||
| 271 | - | |||||||
| 272 | - | |||||||
| 273 | - | |||||||
| 274 | bool QSslConfigurationPrivate::peerSessionWasShared(const QSslConfiguration &configuration) { | - | ||||||
| 275 | 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 | ||||||
| 276 | } | - | ||||||
| 277 | - | |||||||
| 278 | - | |||||||
| Switch to Source code | Preprocessed file |