Qt 6.x
The Qt SDK
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 bind (const QHostAddress &address, quint16 port, QAbstractSocket::BindMode mode)
 
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 ()
 
virtual bool flush ()
 
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)
 
virtual qint64 peek (char *data, qint64 maxSize)
 
virtual QByteArray peek (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)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () 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
 
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 ()
 
virtual void readNotification ()=0
 
virtual void writeNotification ()=0
 
virtual void closeNotification ()=0
 
virtual void exceptionNotification ()=0
 
virtual void connectionNotification ()=0
 
virtual void proxyAuthenticationRequired (const QNetworkProxy &proxy, QAuthenticator *authenticator)=0
 

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
 
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 unused: 21
 
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 1963 of file qsslsocket.cpp.

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

+ Here is the call graph for this function:

◆ ~QSslSocketPrivate()

QSslSocketPrivate::~QSslSocketPrivate ( )
virtual

Definition at line 1996 of file qsslsocket.cpp.

Member Function Documentation

◆ _q_bytesWrittenSlot()

void QSslSocketPrivate::_q_bytesWrittenSlot ( qint64  written)

Definition at line 2575 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 2593 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 2565 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 2442 of file qsslsocket.cpp.

References autoStartHandshake, QAbstractSocketPrivate::cachedSocketDescriptor, emit, QHostInfo::fromName(), QHostInfo::hostName(), 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 2489 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 2523 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 2626 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 2612 of file qsslsocket.cpp.

References flushTriggered.

◆ _q_hostFoundSlot()

void QSslSocketPrivate::_q_hostFoundSlot ( )

Definition at line 2476 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 2603 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 2546 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 2636 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 2510 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 2219 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 2234 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 2969 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 2922 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 2193 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 2084 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 2162 of file qsslsocket.cpp.

References ensureInitialized(), and mutex.

+ Here is the call graph for this function:

◆ disconnected()

void QSslSocketPrivate::disconnected ( )

Definition at line 2891 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 2882 of file qsslsocket.cpp.

References backend.

◆ ensureInitialized()

void QSslSocketPrivate::ensureInitialized ( )
static

◆ flush()

bool QSslSocketPrivate::flush ( )
overridevirtual

Reimplemented from QAbstractSocketPrivate.

Definition at line 2839 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 2764 of file qsslsocket.cpp.

References backend.

◆ init()

void QSslSocketPrivate::init ( )

Definition at line 2029 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 2687 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 2992 of file qsslsocket.cpp.

References cert, QSslCertificate::CommonName, QSsl::DnsEntry, QString::fromLatin1(), QSsl::IpAddressEntry, QHostAddress::isEqual(), isMatchingHostname(), QHostAddress::isNull(), 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 3027 of file qsslsocket.cpp.

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

+ Here is the call graph for this function:

◆ isPaused()

bool QSslSocketPrivate::isPaused ( ) const

Definition at line 2405 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 2695 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 3114 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 2391 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 2772 of file qsslsocket.cpp.

References autoStartHandshake, QIODevice::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 2799 of file qsslsocket.cpp.

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

+ Here is the call graph for this function:

◆ plainTcpSocket()

◆ readyReadPointer()

bool * QSslSocketPrivate::readyReadPointer ( )

Definition at line 2759 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 2124 of file qsslsocket.cpp.

References QList< T >::append(), QTlsBackend::ellipticCurvesIds(), QList< T >::reserve(), setDefaultSupportedEllipticCurves(), tlsBackend, and tlsBackendInUse().

+ Here is the call graph for this function:

◆ resumeSocketNotifiers()

void QSslSocketPrivate::resumeSocketNotifiers ( QSslSocket socket)
static

Definition at line 2398 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 2931 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 2900 of file qsslsocket.cpp.

References backend.

◆ sessionProtocol()

QSsl::SslProtocol QSslSocketPrivate::sessionProtocol ( ) const

Definition at line 2911 of file qsslsocket.cpp.

References backend, and QSsl::UnknownProtocol.

◆ setDefaultCaCertificates()

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

Definition at line 2203 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 2104 of file qsslsocket.cpp.

References mutex.

◆ setDefaultDtlsCiphers()

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

Definition at line 2152 of file qsslsocket.cpp.

References mutex.

◆ setDefaultSupportedCiphers()

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

Definition at line 2114 of file qsslsocket.cpp.

References mutex.

◆ setDefaultSupportedEllipticCurves()

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

Definition at line 2182 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 2719 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 2410 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 2703 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 2939 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 2981 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 2855 of file qsslsocket.cpp.

References backend.

◆ startServerEncryption()

void QSslSocketPrivate::startServerEncryption ( )

Definition at line 2864 of file qsslsocket.cpp.

References backend.

◆ supportedCiphers()

QList< QSslCipher > QSslSocketPrivate::supportedCiphers ( )
static

Definition at line 2094 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 2172 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 2003 of file qsslsocket.cpp.

References QTlsBackend::implementedClasses(), 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 3143 of file qsslsocket.cpp.

References QTlsBackend::systemCaCertificates(), 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 2743 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 2751 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 3130 of file qsslsocket.cpp.

References QAbstractSocketPrivate::hostName.

◆ tlsMode()

QSslSocket::SslMode QSslSocketPrivate::tlsMode ( ) const

◆ tlsWriteBuffer()

QIODevicePrivate::QRingBufferRef & QSslSocketPrivate::tlsWriteBuffer ( )

Definition at line 2735 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 2873 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 2947 of file qsslsocket.cpp.

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

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 3122 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 2658 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 2056 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: