Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSslSocketPrivate Class Reference

#include <qsslsocket_p.h>

+ Inheritance diagram for QSslSocketPrivate:
+ Collaboration diagram for QSslSocketPrivate:

Public Member Functions

 QSslSocketPrivate ()
 
virtual ~QSslSocketPrivate ()
 
void init ()
 
bool verifyProtocolSupported (const char *where)
 
void createPlainSocket (QIODevice::OpenMode openMode)
 
bool isPaused () const
 
void setPaused (bool p)
 
bool bind (const QHostAddress &address, quint16, QAbstractSocket::BindMode) override
 
void _q_connectedSlot ()
 
void _q_hostFoundSlot ()
 
void _q_disconnectedSlot ()
 
void _q_stateChangedSlot (QAbstractSocket::SocketState)
 
void _q_errorSlot (QAbstractSocket::SocketError)
 
void _q_readyReadSlot ()
 
void _q_channelReadyReadSlot (int)
 
void _q_bytesWrittenSlot (qint64)
 
void _q_channelBytesWrittenSlot (int, qint64)
 
void _q_readChannelFinishedSlot ()
 
void _q_flushWriteBuffer ()
 
void _q_flushReadBuffer ()
 
void _q_resumeImplementation ()
 
qint64 peek (char *data, qint64 maxSize) override
 
QByteArray peek (qint64 maxSize) override
 
bool flush () override
 
void startClientEncryption ()
 
void startServerEncryption ()
 
void transmit ()
 
void disconnectFromHost ()
 
void disconnected ()
 
QSslCipher sessionCipher () const
 
QSsl::SslProtocol sessionProtocol () const
 
void continueHandshake ()
 
QSslSocket::SslMode tlsMode () const
 
bool isRootsOnDemandAllowed () const
 
QString verificationName () const
 
QString tlsHostName () const
 
QTcpSocketplainTcpSocket () const
 
bool verifyErrorsHaveBeenIgnored ()
 
bool isAutoStartingHandshake () const
 
bool isPendingClose () const
 
void setPendingClose (bool pc)
 
qint64 maxReadBufferSize () const
 
void setMaxReadBufferSize (qint64 maxSize)
 
void setEncrypted (bool enc)
 
QRingBufferReftlsWriteBuffer ()
 
QRingBufferReftlsBuffer ()
 
bool & tlsEmittedBytesWritten ()
 
bool * readyReadPointer ()
 
- Public Member Functions inherited from QAbstractSocketPrivate
 QAbstractSocketPrivate ()
 
virtual ~QAbstractSocketPrivate ()
 
void readNotification () override
 
void writeNotification () override
 
void exceptionNotification () override
 
void closeNotification () override
 
void connectionNotification () override
 
void proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *authenticator) override
 
virtual bool canReadNotification ()
 
bool canWriteNotification ()
 
void canCloseNotification ()
 
void _q_connectToNextAddress ()
 
void _q_startConnecting (const QHostInfo &hostInfo)
 
void _q_testConnection ()
 
void _q_abortConnectionAttempt ()
 
void resolveProxy (const QString &hostName, quint16 port)
 
void resolveProxy (quint16 port)
 
void resetSocketLayer ()
 
bool initSocketLayer (QAbstractSocket::NetworkLayerProtocol protocol)
 
virtual void configureCreatedSocket ()
 
void startConnectingByName (const QString &host)
 
void fetchConnectionParameters ()
 
bool readFromSocket ()
 
virtual bool writeToSocket ()
 
void emitReadyRead (int channel=0)
 
void emitBytesWritten (qint64 bytes, int channel=0)
 
void setError (QAbstractSocket::SocketError errorCode, const QString &errorString)
 
void setErrorAndEmit (QAbstractSocket::SocketError errorCode, const QString &errorString)
 
- Public Member Functions inherited from QIODevicePrivate
 QIODevicePrivate ()
 
virtual ~QIODevicePrivate ()
 
virtual bool putCharHelper (char c)
 
bool isSequential () const
 
bool isBufferEmpty () const
 
bool allWriteBuffersEmpty () const
 
void seekBuffer (qint64 newPos)
 
void setCurrentReadChannel (int channel)
 
void setCurrentWriteChannel (int channel)
 
void setReadChannelCount (int count)
 
void setWriteChannelCount (int count)
 
qint64 read (char *data, qint64 maxSize, bool peeking=false)
 
qint64 readLine (char *data, qint64 maxSize)
 
qint64 skipByReading (qint64 maxSize)
 
void write (const char *data, qint64 size)
 
bool isWriteChunkCached (const char *data, qint64 size) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QAbstractSocketEngineReceiver
virtual ~QAbstractSocketEngineReceiver ()
 

Static Public Member Functions

static bool supportsSsl ()
 
static void ensureInitialized ()
 
static QList< QSslCipherdefaultCiphers ()
 
static QList< QSslCipherdefaultDtlsCiphers ()
 
static QList< QSslCiphersupportedCiphers ()
 
static void setDefaultCiphers (const QList< QSslCipher > &ciphers)
 
static void setDefaultDtlsCiphers (const QList< QSslCipher > &ciphers)
 
static void setDefaultSupportedCiphers (const QList< QSslCipher > &ciphers)
 
static QList< QSslEllipticCurvesupportedEllipticCurves ()
 
static void setDefaultSupportedEllipticCurves (const QList< QSslEllipticCurve > &curves)
 
static void resetDefaultEllipticCurves ()
 
static QList< QSslCertificatedefaultCaCertificates ()
 
static QList< QSslCertificatesystemCaCertificates ()
 
static void setDefaultCaCertificates (const QList< QSslCertificate > &certs)
 
static void addDefaultCaCertificate (const QSslCertificate &cert)
 
static void addDefaultCaCertificates (const QList< QSslCertificate > &certs)
 
static bool isMatchingHostname (const QSslCertificate &cert, const QString &peerName)
 
static bool isMatchingHostname (const QString &cn, const QString &hostname)
 
static void pauseSocketNotifiers (QSslSocket *)
 
static void resumeSocketNotifiers (QSslSocket *)
 
static void checkSettingSslContext (QSslSocket *, std::shared_ptr< QSslContext >)
 
static std::shared_ptr< QSslContextsslContext (QSslSocket *socket)
 
static QList< QByteArrayunixRootCertDirectories ()
 
static bool rootCertOnDemandLoadingSupported ()
 
static void setRootCertOnDemandLoadingSupported (bool supported)
 
static QTlsBackendtlsBackendInUse ()
 
- Static Public Member Functions inherited from QAbstractSocketPrivate
static void pauseSocketNotifiers (QAbstractSocket *)
 
static void resumeSocketNotifiers (QAbstractSocket *)
 
static QAbstractSocketEnginegetSocketEngine (QAbstractSocket *)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

bool initialized
 
QSslSocket::SslMode mode
 
bool autoStartHandshake
 
bool connectionEncrypted
 
bool ignoreAllSslErrors
 
QList< QSslErrorignoreErrorsList
 
bool * readyReadEmittedPointer
 
QSslConfigurationPrivate configuration
 
QString verificationPeerName
 
bool allowRootCertOnDemandLoading
 
QTcpSocketplainSocket = nullptr
 
- Public Attributes inherited from QAbstractSocketPrivate
bool emittedReadyRead = false
 
bool emittedBytesWritten = false
 
bool abortCalled = false
 
bool pendingClose = false
 
QAbstractSocket::PauseModes pauseMode = QAbstractSocket::PauseNever
 
QString hostName
 
quint16 port = 0
 
QHostAddress host
 
QList< QHostAddressaddresses
 
quint16 localPort = 0
 
quint16 peerPort = 0
 
QHostAddress localAddress
 
QHostAddress peerAddress
 
QString peerName
 
QAbstractSocketEnginesocketEngine = nullptr
 
qintptr cachedSocketDescriptor = -1
 
QNetworkProxy proxy
 
QNetworkProxy proxyInUse
 
QString protocolTag
 
qint64 readBufferMaxSize = 0
 
bool isBuffered = false
 
bool hasPendingData = false
 
bool hasPendingDatagram = false
 
QTimerconnectTimer = nullptr
 
int hostLookupId = -1
 
QAbstractSocket::SocketType socketType = QAbstractSocket::UnknownSocketType
 
QAbstractSocket::SocketState state = QAbstractSocket::UnconnectedState
 
QAbstractSocket::SocketError socketError = QAbstractSocket::UnknownSocketError
 
QAbstractSocket::NetworkLayerProtocol preferredNetworkLayerProtocol
 
bool prePauseReadSocketNotifierState = false
 
bool prePauseWriteSocketNotifierState = false
 
bool prePauseExceptionSocketNotifierState = false
 
- Public Attributes inherited from QIODevicePrivate
qint64 pos = 0
 
qint64 devicePos = 0
 
qint64 transactionPos = 0
 
QRingBufferRef buffer
 
QRingBufferRef writeBuffer
 
const QByteArraycurrentWriteChunk = nullptr
 
int readChannelCount = 0
 
int writeChannelCount = 0
 
int currentReadChannel = 0
 
int currentWriteChannel = 0
 
int readBufferChunkSize = QIODEVICE_BUFFERSIZE
 
int writeBufferChunkSize = 0
 
QVarLengthArray< QRingBuffer, 2 > readBuffers
 
QVarLengthArray< QRingBuffer, 1 > writeBuffers
 
QString errorString
 
QIODevice::OpenMode openMode = QIODevice::NotOpen
 
bool transactionStarted = false
 
bool baseReadLineDataCalled = false
 
AccessMode accessMode = Unset
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Static Public Attributes

static bool s_loadRootCertsOnDemand = false
 

Protected Member Functions

bool hasUndecryptedData () const
 

Protected Attributes

bool paused
 
bool flushTriggered
 
std::unique_ptr< QTlsPrivate::TlsCryptograph > backend
 

Static Protected Attributes

static QMutex backendMutex
 
static QString activeBackendName
 
static QTlsBackendtlsBackend = nullptr
 

Additional Inherited Members

- Public Types inherited from QIODevicePrivate
enum  AccessMode : quint8 { Unset , Sequential , RandomAccess }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 41 of file qsslsocket_p.h.

Constructor & Destructor Documentation

◆ QSslSocketPrivate()

QSslSocketPrivate::QSslSocketPrivate ( )

Definition at line 1973 of file qsslsocket.cpp.

References QSslConfigurationPrivate::allowRootCertOnDemandLoading, allowRootCertOnDemandLoading, backend, configuration, QSslConfigurationPrivate::deepCopyDefaultConfiguration(), qCWarning, tlsBackend, and tlsBackendInUse().

+ Here is the call graph for this function:

◆ ~QSslSocketPrivate()

QSslSocketPrivate::~QSslSocketPrivate ( )
virtual

Definition at line 2006 of file qsslsocket.cpp.

Member Function Documentation

◆ _q_bytesWrittenSlot()

void QSslSocketPrivate::_q_bytesWrittenSlot ( qint64 written)

Definition at line 2585 of file qsslsocket.cpp.

References QAbstractSocket::ClosingState, emit, qCDebug, QAbstractSocketPrivate::state, and QSslSocket::UnencryptedMode.

Referenced by createPlainSocket().

+ Here is the caller graph for this function:

◆ _q_channelBytesWrittenSlot()

void QSslSocketPrivate::_q_channelBytesWrittenSlot ( int channel,
qint64 written )

Definition at line 2603 of file qsslsocket.cpp.

References channel, emit, and QSslSocket::UnencryptedMode.

Referenced by createPlainSocket().

+ Here is the caller graph for this function:

◆ _q_channelReadyReadSlot()

void QSslSocketPrivate::_q_channelReadyReadSlot ( int channel)

Definition at line 2575 of file qsslsocket.cpp.

References channel, emit, and QSslSocket::UnencryptedMode.

Referenced by createPlainSocket().

+ Here is the caller graph for this function:

◆ _q_connectedSlot()

void QSslSocketPrivate::_q_connectedSlot ( )

Definition at line 2452 of file qsslsocket.cpp.

References autoStartHandshake, QAbstractSocketPrivate::cachedSocketDescriptor, emit, QHostInfo::fromName(), QAbstractSocket::localAddress(), QAbstractSocket::localPort(), QAbstractSocket::peerAddress(), QAbstractSocket::peerName(), QAbstractSocket::peerPort(), QAbstractSocketPrivate::pendingClose, plainSocket, qCDebug, QIODevice::readChannelCount(), QIODevicePrivate::readChannelCount, QAbstractSocket::socketDescriptor(), QIODevice::writeChannelCount(), and QIODevicePrivate::writeChannelCount.

Referenced by createPlainSocket().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_disconnectedSlot()

void QSslSocketPrivate::_q_disconnectedSlot ( )

Definition at line 2499 of file qsslsocket.cpp.

References QAbstractSocketPrivate::cachedSocketDescriptor, disconnected(), emit, and qCDebug.

Referenced by createPlainSocket().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_errorSlot()

void QSslSocketPrivate::_q_errorSlot ( QAbstractSocket::SocketError error)

Definition at line 2533 of file qsslsocket.cpp.

References QAbstractSocket::bytesAvailable(), error, QAbstractSocket::error(), QIODevice::errorString(), plainSocket, Q_UNUSED, qCDebug, QAbstractSocketPrivate::readBufferMaxSize, QAbstractSocketPrivate::setErrorAndEmit(), transmit(), and QSslSocket::UnencryptedMode.

Referenced by createPlainSocket().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_flushReadBuffer()

void QSslSocketPrivate::_q_flushReadBuffer ( )

Definition at line 2636 of file qsslsocket.cpp.

References transmit(), and QSslSocket::UnencryptedMode.

+ Here is the call graph for this function:

◆ _q_flushWriteBuffer()

void QSslSocketPrivate::_q_flushWriteBuffer ( )

Definition at line 2622 of file qsslsocket.cpp.

References flushTriggered.

◆ _q_hostFoundSlot()

void QSslSocketPrivate::_q_hostFoundSlot ( )

Definition at line 2486 of file qsslsocket.cpp.

References emit, and qCDebug.

Referenced by createPlainSocket().

+ Here is the caller graph for this function:

◆ _q_readChannelFinishedSlot()

void QSslSocketPrivate::_q_readChannelFinishedSlot ( )

Definition at line 2613 of file qsslsocket.cpp.

References emit.

Referenced by createPlainSocket().

+ Here is the caller graph for this function:

◆ _q_readyReadSlot()

void QSslSocketPrivate::_q_readyReadSlot ( )

Definition at line 2556 of file qsslsocket.cpp.

References QAbstractSocket::bytesAvailable(), emit, plainSocket, qCDebug, readyReadEmittedPointer, transmit(), and QSslSocket::UnencryptedMode.

Referenced by createPlainSocket().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_resumeImplementation()

void QSslSocketPrivate::_q_resumeImplementation ( )

Definition at line 2646 of file qsslsocket.cpp.

References backend, connectionEncrypted, continueHandshake(), QAbstractSocket::disconnectFromHost(), paused, plainSocket, Q_ASSERT, QAbstractSocket::resume(), QAbstractSocketPrivate::setErrorAndEmit(), QAbstractSocket::SslHandshakeFailedError, transmit(), and verifyErrorsHaveBeenIgnored().

+ Here is the call graph for this function:

◆ _q_stateChangedSlot()

void QSslSocketPrivate::_q_stateChangedSlot ( QAbstractSocket::SocketState state)

Definition at line 2520 of file qsslsocket.cpp.

References emit, qCDebug, and QAbstractSocketPrivate::state.

Referenced by createPlainSocket().

+ Here is the caller graph for this function:

◆ addDefaultCaCertificate()

void QSslSocketPrivate::addDefaultCaCertificate ( const QSslCertificate & cert)
static

Definition at line 2229 of file qsslsocket.cpp.

References cert, QList< T >::detach(), ensureInitialized(), and mutex.

+ Here is the call graph for this function:

◆ addDefaultCaCertificates()

void QSslSocketPrivate::addDefaultCaCertificates ( const QList< QSslCertificate > & certs)
static

Definition at line 2244 of file qsslsocket.cpp.

References certs, ensureInitialized(), and mutex.

+ Here is the call graph for this function:

◆ bind()

bool QSslSocketPrivate::bind ( const QHostAddress & address,
quint16 port,
QAbstractSocket::BindMode mode )
overridevirtual

◆ checkSettingSslContext()

void QSslSocketPrivate::checkSettingSslContext ( QSslSocket * socket,
std::shared_ptr< QSslContext > tlsContext )
static

Definition at line 2985 of file qsslsocket.cpp.

References backend, and socket.

Referenced by QHttpNetworkConnectionChannel::ensureConnection().

+ Here is the caller graph for this function:

◆ continueHandshake()

void QSslSocketPrivate::continueHandshake ( )

Definition at line 2932 of file qsslsocket.cpp.

References backend.

Referenced by _q_resumeImplementation().

+ Here is the caller graph for this function:

◆ createPlainSocket()

void QSslSocketPrivate::createPlainSocket ( QIODevice::OpenMode openMode)

◆ defaultCaCertificates()

QList< QSslCertificate > QSslSocketPrivate::defaultCaCertificates ( )
static

Definition at line 2203 of file qsslsocket.cpp.

References ensureInitialized(), and mutex.

+ Here is the call graph for this function:

◆ defaultCiphers()

QList< QSslCipher > QSslSocketPrivate::defaultCiphers ( )
static

Definition at line 2094 of file qsslsocket.cpp.

References ensureInitialized(), and mutex.

+ Here is the call graph for this function:

◆ defaultDtlsCiphers()

QList< QSslCipher > QSslSocketPrivate::defaultDtlsCiphers ( )
static

Definition at line 2172 of file qsslsocket.cpp.

References ensureInitialized(), and mutex.

+ Here is the call graph for this function:

◆ disconnected()

void QSslSocketPrivate::disconnected ( )

Definition at line 2901 of file qsslsocket.cpp.

References backend.

Referenced by _q_disconnectedSlot(), and createPlainSocket().

+ Here is the caller graph for this function:

◆ disconnectFromHost()

void QSslSocketPrivate::disconnectFromHost ( )

Definition at line 2892 of file qsslsocket.cpp.

References backend.

◆ ensureInitialized()

void QSslSocketPrivate::ensureInitialized ( )
static

Declared static in QSslSocketPrivate, makes sure the SSL libraries have been initialized.

Definition at line 2026 of file qsslsocket.cpp.

References Q_ASSERT, supportsSsl(), tlsBackend, and tlsBackendInUse().

Referenced by QSslCertificatePrivate::QSslCertificatePrivate(), addDefaultCaCertificate(), addDefaultCaCertificates(), QSslConfigurationPrivate::deepCopyDefaultConfiguration(), defaultCaCertificates(), defaultCiphers(), QSslConfigurationPrivate::defaultConfiguration(), defaultDtlsCiphers(), QSslConfigurationPrivate::defaultDtlsConfiguration(), QTlsBackendOpenSSL::dhParametersFromDer(), QTlsBackendOpenSSL::dhParametersFromPem(), QT_BEGIN_NAMESPACE::isSafeDH(), setDefaultCaCertificates(), QSslConfigurationPrivate::setDefaultConfiguration(), QSslConfigurationPrivate::setDefaultDtlsConfiguration(), supportedCiphers(), and supportedEllipticCurves().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flush()

bool QSslSocketPrivate::flush ( )
overridevirtual

Reimplemented from QAbstractSocketPrivate.

Definition at line 2849 of file qsslsocket.cpp.

References QAbstractSocket::flush(), plainSocket, qCDebug, transmit(), and QSslSocket::UnencryptedMode.

+ Here is the call graph for this function:

◆ hasUndecryptedData()

bool QSslSocketPrivate::hasUndecryptedData ( ) const
protected

Definition at line 2774 of file qsslsocket.cpp.

References backend.

◆ init()

void QSslSocketPrivate::init ( )

Definition at line 2039 of file qsslsocket.cpp.

References QAbstractSocketPrivate::abortCalled, autoStartHandshake, backend, QList< T >::clear(), QSslCertificate::clear(), configuration, connectionEncrypted, flushTriggered, ignoreAllSslErrors, QSslConfigurationPrivate::peerCertificate, QSslConfigurationPrivate::peerCertificateChain, QAbstractSocketPrivate::pendingClose, Q_ASSERT, QObjectData::q_ptr, and QSslSocket::UnencryptedMode.

Referenced by bind().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAutoStartingHandshake()

bool QSslSocketPrivate::isAutoStartingHandshake ( ) const

Definition at line 2697 of file qsslsocket.cpp.

References autoStartHandshake.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::continueHandshake(), and QTlsPrivate::TlsCryptographSecureTransport::continueHandshake().

+ Here is the caller graph for this function:

◆ isMatchingHostname() [1/2]

bool QSslSocketPrivate::isMatchingHostname ( const QSslCertificate & cert,
const QString & peerName )
static

Definition at line 3008 of file qsslsocket.cpp.

References cert, QSslCertificate::CommonName, QSsl::DnsEntry, QString::fromLatin1(), QSsl::IpAddressEntry, QHostAddress::isEqual(), isMatchingHostname(), it, QAbstractSocketPrivate::peerName, QHostAddress::StrictConversion, and QUrl::toAce().

Referenced by isMatchingHostname().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isMatchingHostname() [2/2]

bool QSslSocketPrivate::isMatchingHostname ( const QString & cn,
const QString & hostname )
static

Checks if the certificate's name cn matches the hostname. hostname must be normalized in ASCII-Compatible Encoding, but cn is not normalized

Definition at line 3043 of file qsslsocket.cpp.

References Qt::CaseInsensitive, compare(), QString::indexOf(), QString::left(), QStringView::left(), QStringView::mid(), QString::mid(), and QUrl::toAce().

+ Here is the call graph for this function:

◆ isPaused()

bool QSslSocketPrivate::isPaused ( ) const

Definition at line 2415 of file qsslsocket.cpp.

References paused.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::transmit().

+ Here is the caller graph for this function:

◆ isPendingClose()

bool QSslSocketPrivate::isPendingClose ( ) const

Definition at line 2705 of file qsslsocket.cpp.

References QAbstractSocketPrivate::pendingClose.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::continueHandshake(), QTlsPrivate::TlsCryptographSchannel::continueHandshake(), and QTlsPrivate::TlsCryptographSecureTransport::continueHandshake().

+ Here is the caller graph for this function:

◆ isRootsOnDemandAllowed()

bool QSslSocketPrivate::isRootsOnDemandAllowed ( ) const

Definition at line 3130 of file qsslsocket.cpp.

References allowRootCertOnDemandLoading.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::startHandshake().

+ Here is the caller graph for this function:

◆ maxReadBufferSize()

qint64 QSslSocketPrivate::maxReadBufferSize ( ) const

◆ pauseSocketNotifiers()

void QSslSocketPrivate::pauseSocketNotifiers ( QSslSocket * socket)
static

Definition at line 2401 of file qsslsocket.cpp.

References QAbstractSocketPrivate::pauseSocketNotifiers(), and socket.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors(), and QHttpNetworkConnectionPrivate::pauseConnection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ peek() [1/2]

qint64 QSslSocketPrivate::peek ( char * data,
qint64 maxSize )
overridevirtual

Reimplemented from QIODevicePrivate.

Definition at line 2782 of file qsslsocket.cpp.

References autoStartHandshake, QIODevice::peek(), QIODevicePrivate::QRingBufferRef::peek(), QIODevicePrivate::peek(), plainSocket, r2, QIODevicePrivate::transactionPos, and QSslSocket::UnencryptedMode.

+ Here is the call graph for this function:

◆ peek() [2/2]

QByteArray QSslSocketPrivate::peek ( qint64 maxSize)
overridevirtual

Reimplemented from QIODevicePrivate.

Definition at line 2809 of file qsslsocket.cpp.

References autoStartHandshake, QIODevice::peek(), QIODevicePrivate::peek(), plainSocket, QByteArray(), QByteArray::reserve(), ret, QIODevicePrivate::transactionPos, and QSslSocket::UnencryptedMode.

+ Here is the call graph for this function:

◆ plainTcpSocket()

◆ readyReadPointer()

bool * QSslSocketPrivate::readyReadPointer ( )

Definition at line 2769 of file qsslsocket.cpp.

References readyReadEmittedPointer.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::transmit(), QTlsPrivate::TlsCryptographSchannel::transmit(), and QTlsPrivate::TlsCryptographSecureTransport::transmit().

+ Here is the caller graph for this function:

◆ resetDefaultEllipticCurves()

void QSslSocketPrivate::resetDefaultEllipticCurves ( )
static

Definition at line 2134 of file qsslsocket.cpp.

References setDefaultSupportedEllipticCurves(), tlsBackend, and tlsBackendInUse().

+ Here is the call graph for this function:

◆ resumeSocketNotifiers()

void QSslSocketPrivate::resumeSocketNotifiers ( QSslSocket * socket)
static

Definition at line 2408 of file qsslsocket.cpp.

References QAbstractSocketPrivate::resumeSocketNotifiers(), and socket.

Referenced by QHttpNetworkConnectionPrivate::resumeConnection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rootCertOnDemandLoadingSupported()

bool QSslSocketPrivate::rootCertOnDemandLoadingSupported ( )
static

Definition at line 2941 of file qsslsocket.cpp.

References s_loadRootCertsOnDemand.

Referenced by QSecureTransportBackend::ensureInitialized(), QTlsPrivate::TlsCryptographOpenSSL::startHandshake(), and QTlsPrivate::X509CertificateOpenSSL::verify().

+ Here is the caller graph for this function:

◆ sessionCipher()

QSslCipher QSslSocketPrivate::sessionCipher ( ) const

Definition at line 2910 of file qsslsocket.cpp.

References backend.

◆ sessionProtocol()

QSsl::SslProtocol QSslSocketPrivate::sessionProtocol ( ) const

Definition at line 2921 of file qsslsocket.cpp.

References backend, and QSsl::UnknownProtocol.

◆ setDefaultCaCertificates()

void QSslSocketPrivate::setDefaultCaCertificates ( const QList< QSslCertificate > & certs)
static

Definition at line 2213 of file qsslsocket.cpp.

References certs, ensureInitialized(), mutex, and s_loadRootCertsOnDemand.

+ Here is the call graph for this function:

◆ setDefaultCiphers()

void QSslSocketPrivate::setDefaultCiphers ( const QList< QSslCipher > & ciphers)
static

Definition at line 2114 of file qsslsocket.cpp.

References mutex.

◆ setDefaultDtlsCiphers()

void QSslSocketPrivate::setDefaultDtlsCiphers ( const QList< QSslCipher > & ciphers)
static

Definition at line 2162 of file qsslsocket.cpp.

References mutex.

◆ setDefaultSupportedCiphers()

void QSslSocketPrivate::setDefaultSupportedCiphers ( const QList< QSslCipher > & ciphers)
static

Definition at line 2124 of file qsslsocket.cpp.

References mutex.

◆ setDefaultSupportedEllipticCurves()

void QSslSocketPrivate::setDefaultSupportedEllipticCurves ( const QList< QSslEllipticCurve > & curves)
static

Definition at line 2192 of file qsslsocket.cpp.

References mutex.

Referenced by resetDefaultEllipticCurves().

+ Here is the caller graph for this function:

◆ setEncrypted()

◆ setMaxReadBufferSize()

void QSslSocketPrivate::setMaxReadBufferSize ( qint64 maxSize)

Definition at line 2729 of file qsslsocket.cpp.

References QAbstractSocketPrivate::readBufferMaxSize.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::disconnected(), and QTlsPrivate::TlsCryptographSchannel::disconnected().

+ Here is the caller graph for this function:

◆ setPaused()

void QSslSocketPrivate::setPaused ( bool p)

Definition at line 2420 of file qsslsocket.cpp.

References paused.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors().

+ Here is the caller graph for this function:

◆ setPendingClose()

void QSslSocketPrivate::setPendingClose ( bool pc)

Definition at line 2713 of file qsslsocket.cpp.

References QAbstractSocketPrivate::pendingClose.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::continueHandshake(), QTlsPrivate::TlsCryptographSchannel::continueHandshake(), and QTlsPrivate::TlsCryptographSecureTransport::continueHandshake().

+ Here is the caller graph for this function:

◆ setRootCertOnDemandLoadingSupported()

void QSslSocketPrivate::setRootCertOnDemandLoadingSupported ( bool supported)
static

Definition at line 2949 of file qsslsocket.cpp.

References s_loadRootCertsOnDemand.

Referenced by QSchannelBackend::ensureInitializedImplementation().

+ Here is the caller graph for this function:

◆ sslContext()

std::shared_ptr< QSslContext > QSslSocketPrivate::sslContext ( QSslSocket * socket)
static

Definition at line 2997 of file qsslsocket.cpp.

References backend, and socket.

Referenced by QHttpNetworkConnectionChannel::_q_connected().

+ Here is the caller graph for this function:

◆ startClientEncryption()

void QSslSocketPrivate::startClientEncryption ( )

Definition at line 2865 of file qsslsocket.cpp.

References backend.

◆ startServerEncryption()

void QSslSocketPrivate::startServerEncryption ( )

Definition at line 2874 of file qsslsocket.cpp.

References backend.

◆ supportedCiphers()

QList< QSslCipher > QSslSocketPrivate::supportedCiphers ( )
static

Definition at line 2104 of file qsslsocket.cpp.

References ensureInitialized(), and mutex.

Referenced by QSslConfiguration::supportedCiphers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ supportedEllipticCurves()

QList< QSslEllipticCurve > QSslSocketPrivate::supportedEllipticCurves ( )
static

Definition at line 2182 of file qsslsocket.cpp.

References ensureInitialized(), and mutex.

Referenced by QSslConfiguration::supportedEllipticCurves().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ supportsSsl()

bool QSslSocketPrivate::supportsSsl ( )
static

Definition at line 2013 of file qsslsocket.cpp.

References QSsl::Socket, tlsBackend, and tlsBackendInUse().

Referenced by ensureInitialized(), and QSslSocket::supportsSsl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ systemCaCertificates()

QList< QSslCertificate > QSslSocketPrivate::systemCaCertificates ( )
static

Definition at line 3159 of file qsslsocket.cpp.

References tlsBackend, and tlsBackendInUse().

Referenced by QSslConfiguration::systemCaCertificates(), and QTlsPrivate::X509CertificateOpenSSL::verify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tlsBackendInUse()

◆ tlsBuffer()

QIODevicePrivate::QRingBufferRef & QSslSocketPrivate::tlsBuffer ( )

Definition at line 2753 of file qsslsocket.cpp.

References QIODevicePrivate::buffer.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::transmit(), QTlsPrivate::TlsCryptographSchannel::transmit(), and QTlsPrivate::TlsCryptographSecureTransport::transmit().

+ Here is the caller graph for this function:

◆ tlsEmittedBytesWritten()

bool & QSslSocketPrivate::tlsEmittedBytesWritten ( )

Definition at line 2761 of file qsslsocket.cpp.

References QAbstractSocketPrivate::emittedBytesWritten.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::transmit(), QTlsPrivate::TlsCryptographSchannel::transmit(), and QTlsPrivate::TlsCryptographSecureTransport::transmit().

+ Here is the caller graph for this function:

◆ tlsHostName()

QString QSslSocketPrivate::tlsHostName ( ) const

Definition at line 3146 of file qsslsocket.cpp.

References QAbstractSocketPrivate::hostName.

◆ tlsMode()

QSslSocket::SslMode QSslSocketPrivate::tlsMode ( ) const

◆ tlsWriteBuffer()

QIODevicePrivate::QRingBufferRef & QSslSocketPrivate::tlsWriteBuffer ( )

Definition at line 2745 of file qsslsocket.cpp.

References QIODevicePrivate::writeBuffer.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::transmit(), QTlsPrivate::TlsCryptographSchannel::transmit(), and QTlsPrivate::TlsCryptographSecureTransport::transmit().

+ Here is the caller graph for this function:

◆ transmit()

void QSslSocketPrivate::transmit ( )

Definition at line 2883 of file qsslsocket.cpp.

References backend.

Referenced by _q_errorSlot(), _q_flushReadBuffer(), _q_readyReadSlot(), _q_resumeImplementation(), and flush().

+ Here is the caller graph for this function:

◆ unixRootCertDirectories()

QList< QByteArray > QSslSocketPrivate::unixRootCertDirectories ( )
static

Definition at line 2957 of file qsslsocket.cpp.

References ba, QByteArray::fromRawData(), QList< T >::fromReadOnlyData(), isVxworks, and qgetenv().

Referenced by QTlsPrivate::systemCaCertificates().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verificationName()

QString QSslSocketPrivate::verificationName ( ) const

Definition at line 3138 of file qsslsocket.cpp.

References verificationPeerName.

Referenced by QTlsPrivate::TlsCryptographOpenSSL::startHandshake().

+ Here is the caller graph for this function:

◆ verifyErrorsHaveBeenIgnored()

bool QSslSocketPrivate::verifyErrorsHaveBeenIgnored ( )

Definition at line 2668 of file qsslsocket.cpp.

References backend, QListSpecialMethodsBase< T >::contains(), QList< T >::empty(), ignoreAllSslErrors, ignoreErrorsList, and Q_ASSERT.

Referenced by _q_resumeImplementation(), QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors(), and QTlsPrivate::TlsCryptographOpenSSL::startHandshake().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyProtocolSupported()

bool QSslSocketPrivate::verifyProtocolSupported ( const char * where)

Definition at line 2066 of file qsslsocket.cpp.

References configuration, QSsl::DtlsV1_2, QSsl::DtlsV1_2OrLater, QSslConfigurationPrivate::protocol, Q_FALLTHROUGH, qCWarning, QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, QT_WARNING_PUSH, QAbstractSocketPrivate::setErrorAndEmit(), QAbstractSocket::SslInvalidUserDataError, and QSsl::UnknownProtocol.

+ Here is the call graph for this function:

Member Data Documentation

◆ activeBackendName

QString QSslSocketPrivate::activeBackendName
inlinestaticprotected

◆ allowRootCertOnDemandLoading

bool QSslSocketPrivate::allowRootCertOnDemandLoading

Definition at line 65 of file qsslsocket_p.h.

Referenced by QSslSocketPrivate(), and isRootsOnDemandAllowed().

◆ autoStartHandshake

bool QSslSocketPrivate::autoStartHandshake

Definition at line 53 of file qsslsocket_p.h.

Referenced by _q_connectedSlot(), init(), isAutoStartingHandshake(), peek(), and peek().

◆ backend

◆ backendMutex

QMutex QSslSocketPrivate::backendMutex
inlinestaticprotected

◆ configuration

QSslConfigurationPrivate QSslSocketPrivate::configuration

Definition at line 59 of file qsslsocket_p.h.

Referenced by QSslSocketPrivate(), createPlainSocket(), init(), and verifyProtocolSupported().

◆ connectionEncrypted

bool QSslSocketPrivate::connectionEncrypted

Definition at line 54 of file qsslsocket_p.h.

Referenced by _q_resumeImplementation(), createPlainSocket(), init(), and setEncrypted().

◆ flushTriggered

bool QSslSocketPrivate::flushTriggered
protected

Definition at line 158 of file qsslsocket_p.h.

Referenced by _q_flushWriteBuffer(), and init().

◆ ignoreAllSslErrors

bool QSslSocketPrivate::ignoreAllSslErrors

Definition at line 55 of file qsslsocket_p.h.

Referenced by init(), and verifyErrorsHaveBeenIgnored().

◆ ignoreErrorsList

QList<QSslError> QSslSocketPrivate::ignoreErrorsList

Definition at line 56 of file qsslsocket_p.h.

Referenced by verifyErrorsHaveBeenIgnored().

◆ initialized

bool QSslSocketPrivate::initialized

Definition at line 50 of file qsslsocket_p.h.

Referenced by bind().

◆ mode

QSslSocket::SslMode QSslSocketPrivate::mode

Definition at line 52 of file qsslsocket_p.h.

Referenced by tlsMode().

◆ paused

bool QSslSocketPrivate::paused
protected

Definition at line 157 of file qsslsocket_p.h.

Referenced by _q_resumeImplementation(), isPaused(), and setPaused().

◆ plainSocket

◆ readyReadEmittedPointer

bool* QSslSocketPrivate::readyReadEmittedPointer

Definition at line 57 of file qsslsocket_p.h.

Referenced by _q_readyReadSlot(), and readyReadPointer().

◆ s_loadRootCertsOnDemand

bool QSslSocketPrivate::s_loadRootCertsOnDemand = false
static

◆ tlsBackend

◆ verificationPeerName

QString QSslSocketPrivate::verificationPeerName

Definition at line 63 of file qsslsocket_p.h.

Referenced by verificationName().


The documentation for this class was generated from the following files: