| 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 | } | - | ||||||
| 15 | - | |||||||
| 16 | - | |||||||
| 17 | - | |||||||
| 18 | - | |||||||
| 19 | - | |||||||
| 20 | QSslConfiguration::QSslConfiguration(const QSslConfiguration &other) | - | ||||||
| 21 | : d(other.d) | - | ||||||
| 22 | { | - | ||||||
| 23 | } | - | ||||||
| 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 *this; | - | ||||||
| 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-> 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:
executed 62 times by 3 tests: caCertificates == other.d->caCertificates &&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 | ||||||
| 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:
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:
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 d->protocol; | - | ||||||
| 97 | } | - | ||||||
| 98 | void QSslConfiguration::setProtocol(QSsl::SslProtocol protocol) | - | ||||||
| 99 | { | - | ||||||
| 100 | d->protocol = protocol; | - | ||||||
| 101 | } | - | ||||||
| 102 | QSslSocket::PeerVerifyMode QSslConfiguration::peerVerifyMode() const | - | ||||||
| 103 | { | - | ||||||
| 104 | return d->peerVerifyMode; | - | ||||||
| 105 | } | - | ||||||
| 106 | void QSslConfiguration::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode) | - | ||||||
| 107 | { | - | ||||||
| 108 | d->peerVerifyMode = mode; | - | ||||||
| 109 | } | - | ||||||
| 110 | int QSslConfiguration::peerVerifyDepth() const | - | ||||||
| 111 | { | - | ||||||
| 112 | return d->peerVerifyDepth; | - | ||||||
| 113 | } | - | ||||||
| 114 | void QSslConfiguration::setPeerVerifyDepth(int depth) | - | ||||||
| 115 | { | - | ||||||
| 116 | if (depth < 0) { | - | ||||||
| 117 | for (bool qt_category_enabled = lcSsl().isWarningEnabled(); qt_category_enabled; qt_category_enabled = false) QMessageLogger( | - | ||||||
| 118 | __FILE__ | - | ||||||
| 119 | , | - | ||||||
| 120 | 349357 | - | ||||||
| 121 | , __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth) | - | ||||||
| 122 | ; | - | ||||||
| 123 | return; | - | ||||||
| 124 | } | - | ||||||
| 125 | d->peerVerifyDepth = depth; | - | ||||||
| 126 | } | - | ||||||
| 127 | QList<QSslCertificate> QSslConfiguration::localCertificateChain() const | - | ||||||
| 128 | { | - | ||||||
| 129 | return d->localCertificateChain; | - | ||||||
| 130 | } | - | ||||||
| 131 | void QSslConfiguration::setLocalCertificateChain(const QList<QSslCertificate> &localChain) | - | ||||||
| 132 | { | - | ||||||
| 133 | d->localCertificateChain = localChain; | - | ||||||
| 134 | } | - | ||||||
| 135 | - | |||||||
| 136 | - | |||||||
| 137 | - | |||||||
| 138 | - | |||||||
| 139 | - | |||||||
| 140 | - | |||||||
| 141 | - | |||||||
| 142 | QSslCertificate QSslConfiguration::localCertificate() const | - | ||||||
| 143 | { | - | ||||||
| 144 | if (d->localCertificateChain.isEmpty()) | - | ||||||
| 145 | return QSslCertificate(); | - | ||||||
| 146 | return d->localCertificateChain[0]; | - | ||||||
| 147 | } | - | ||||||
| 148 | void QSslConfiguration::setLocalCertificate(const QSslCertificate &certificate) | - | ||||||
| 149 | { | - | ||||||
| 150 | d->localCertificateChain = QList<QSslCertificate>(); | - | ||||||
| 151 | d->localCertificateChain += certificate; | - | ||||||
| 152 | } | - | ||||||
| 153 | QSslCertificate QSslConfiguration::peerCertificate() const | - | ||||||
| 154 | { | - | ||||||
| 155 | return d->peerCertificate; | - | ||||||
| 156 | } | - | ||||||
| 157 | QList<QSslCertificate> QSslConfiguration::peerCertificateChain() const | - | ||||||
| 158 | { | - | ||||||
| 159 | return d->peerCertificateChain; | - | ||||||
| 160 | } | - | ||||||
| 161 | QSslCipher QSslConfiguration::sessionCipher() const | - | ||||||
| 162 | { | - | ||||||
| 163 | return d->sessionCipher; | - | ||||||
| 164 | } | - | ||||||
| 165 | QSsl::SslProtocol QSslConfiguration::sessionProtocol() const | - | ||||||
| 166 | { | - | ||||||
| 167 | return d->sessionProtocol; | - | ||||||
| 168 | } | - | ||||||
| 169 | - | |||||||
| 170 | - | |||||||
| 171 | - | |||||||
| 172 | - | |||||||
| 173 | - | |||||||
| 174 | - | |||||||
| 175 | - | |||||||
| 176 | QSslKey QSslConfiguration::privateKey() const | - | ||||||
| 177 | { | - | ||||||
| 178 | return d->privateKey; | - | ||||||
| 179 | } | - | ||||||
| 180 | void QSslConfiguration::setPrivateKey(const QSslKey &key) | - | ||||||
| 181 | { | - | ||||||
| 182 | d->privateKey = key; | - | ||||||
| 183 | } | - | ||||||
| 184 | QList<QSslCipher> QSslConfiguration::ciphers() const | - | ||||||
| 185 | { | - | ||||||
| 186 | return d->ciphers; | - | ||||||
| 187 | } | - | ||||||
| 188 | void QSslConfiguration::setCiphers(const QList<QSslCipher> &ciphers) | - | ||||||
| 189 | { | - | ||||||
| 190 | d->ciphers = ciphers; | - | ||||||
| 191 | } | - | ||||||
| 192 | QList<QSslCipher> QSslConfiguration::supportedCiphers() | - | ||||||
| 193 | { | - | ||||||
| 194 | return QSslSocketPrivate::supportedCiphers(); | - | ||||||
| 195 | } | - | ||||||
| 196 | QList<QSslCertificate> QSslConfiguration::caCertificates() const | - | ||||||
| 197 | { | - | ||||||
| 198 | return d->caCertificates; | - | ||||||
| 199 | } | - | ||||||
| 200 | void QSslConfiguration::setCaCertificates(const QList<QSslCertificate> &certificates) | - | ||||||
| 201 | { | - | ||||||
| 202 | d->caCertificates = certificates; | - | ||||||
| 203 | d->allowRootCertOnDemandLoading = false; | - | ||||||
| 204 | } | - | ||||||
| 205 | QList<QSslCertificate> QSslConfiguration::systemCaCertificates() | - | ||||||
| 206 | { | - | ||||||
| 207 | - | |||||||
| 208 | return QSslSocketPrivate::systemCaCertificates(); | - | ||||||
| 209 | } | - | ||||||
| 210 | void QSslConfiguration::setSslOption(QSsl::SslOption option, bool on) | - | ||||||
| 211 | { | - | ||||||
| 212 | if (on) | - | ||||||
| d->sslOptions |= option; | ||||||||
| elsed->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 d->sslOptions & option; | - | ||||||
| 217 | } | - | ||||||
| 218 | QByteArray QSslConfiguration::sessionTicket() const | - | ||||||
| 219 | { | - | ||||||
| 220 | return d->sslSession; | - | ||||||
| 221 | } | - | ||||||
| 222 | void QSslConfiguration::setSessionTicket(const QByteArray &sessionTicket) | - | ||||||
| 223 | { | - | ||||||
| 224 | d->sslSession = sessionTicket; | - | ||||||
| 225 | } | - | ||||||
| 226 | int QSslConfiguration::sessionTicketLifeTimeHint() const | - | ||||||
| 227 | { | - | ||||||
| 228 | return d->sslSessionTicketLifeTimeHint; | - | ||||||
| 229 | } | - | ||||||
| 230 | QSslKey QSslConfiguration::ephemeralServerKey() const | - | ||||||
| 231 | { | - | ||||||
| 232 | return executed 4 times by 1 test: d->ephemeralServerKeyreturn d->ephemeralServerKey;Executed by:
executed 4 times by 1 test: return d->ephemeralServerKey;Executed by:
executed 4 times by 1 test: ;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 d->ellipticCurves; | - | ||||||
| 237 | } | - | ||||||
| 238 | void QSslConfiguration::setEllipticCurves(const QVector<QSslEllipticCurve> &curves) | - | ||||||
| 239 | { | - | ||||||
| 240 | d->ellipticCurves = curves; | - | ||||||
| 241 | } | - | ||||||
| 242 | QVector<QSslEllipticCurve> QSslConfiguration::supportedEllipticCurves() | - | ||||||
| 243 | { | - | ||||||
| 244 | return QSslSocketPrivate::supportedEllipticCurves(); | - | ||||||
| 245 | } | - | ||||||
| 246 | QByteArray QSslConfiguration::nextNegotiatedProtocol() const | - | ||||||
| 247 | { | - | ||||||
| 248 | return d->nextNegotiatedProtocol; | - | ||||||
| 249 | } | - | ||||||
| 250 | void QSslConfiguration::setAllowedNextProtocols(QList<QByteArray> protocols) | - | ||||||
| 251 | - | |||||||
| 252 | { | - | ||||||
| 253 | d->nextAllowedProtocols = protocols; | - | ||||||
| 254 | } | - | ||||||
| 255 | QList<QByteArray> QSslConfiguration::allowedNextProtocols() const | - | ||||||
| 256 | { | - | ||||||
| 257 | return d->nextAllowedProtocols; | - | ||||||
| 258 | } | - | ||||||
| 259 | QSslConfiguration::NextProtocolNegotiationStatus QSslConfiguration::nextProtocolNegotiationStatus() const | - | ||||||
| 260 | { | - | ||||||
| 261 | return d->nextProtocolNegotiationStatus; | - | ||||||
| 262 | } | - | ||||||
| 263 | QSslConfiguration QSslConfiguration::defaultConfiguration() | - | ||||||
| 264 | { | - | ||||||
| 265 | return QSslConfigurationPrivate::defaultConfiguration(); | - | ||||||
| 266 | } | - | ||||||
| 267 | void QSslConfiguration::setDefaultConfiguration(const QSslConfiguration &configuration) | - | ||||||
| 268 | { | - | ||||||
| 269 | QSslConfigurationPrivate::setDefaultConfiguration(configuration); | - | ||||||
| 270 | } | - | ||||||
| 271 | - | |||||||
| 272 | - | |||||||
| 273 | - | |||||||
| 274 | bool QSslConfigurationPrivate::peerSessionWasShared(const QSslConfiguration &configuration) { | - | ||||||
| 275 | return configuration.d->peerSessionShared; | - | ||||||
| 276 | } | - | ||||||
| 277 | - | |||||||
| 278 | - | |||||||
| Switch to Source code | Preprocessed file |