21#include <QtNetwork/private/qtnetworkglobal_p.h>
23#include <private/qtcpsocket_p.h>
30#include <QtCore/qlist.h>
31#include <QtCore/qmutex.h>
32#include <QtCore/qstringlist.h>
49 bool verifyProtocolSupported(
const char *where);
69 static bool supportsSsl();
81 static void resetDefaultEllipticCurves();
89 static bool isMatchingHostname(
const QString &cn,
const QString &hostname);
93 void createPlainSocket(QIODevice::OpenMode openMode);
97 static void checkSettingSslContext(
QSslSocket*, std::shared_ptr<QSslContext>);
99 bool isPaused()
const;
100 void setPaused(
bool p);
102 void _q_connectedSlot();
103 void _q_hostFoundSlot();
104 void _q_disconnectedSlot();
107 void _q_readyReadSlot();
108 void _q_channelReadyReadSlot(
int);
109 void _q_bytesWrittenSlot(
qint64);
110 void _q_channelBytesWrittenSlot(
int,
qint64);
111 void _q_readChannelFinishedSlot();
112 void _q_flushWriteBuffer();
113 void _q_flushReadBuffer();
114 void _q_resumeImplementation();
120 bool flush()
override;
122 void startClientEncryption();
123 void startServerEncryption();
129 void continueHandshake();
131 static bool rootCertOnDemandLoadingSupported();
132 static void setRootCertOnDemandLoadingSupported(
bool supported);
138 bool isRootsOnDemandAllowed()
const;
139 QString verificationName()
const;
142 bool verifyErrorsHaveBeenIgnored();
143 bool isAutoStartingHandshake()
const;
144 bool isPendingClose()
const;
145 void setPendingClose(
bool pc);
146 qint64 maxReadBufferSize()
const;
147 void setMaxReadBufferSize(
qint64 maxSize);
148 void setEncrypted(
bool enc);
151 bool &tlsEmittedBytesWritten();
152 bool *readyReadPointer();
156 bool hasUndecryptedData()
const;
164 std::unique_ptr<QTlsPrivate::TlsCryptograph>
backend;
static void pauseSocketNotifiers(QAbstractSocket *)
virtual bool bind(const QHostAddress &address, quint16 port, QAbstractSocket::BindMode mode)
static void resumeSocketNotifiers(QAbstractSocket *)
SocketState
This enum describes the different states in which a socket can be.
SocketError
This enum describes the socket errors that can occur.
The QHostAddress class provides an IP address.
virtual qint64 peek(char *data, qint64 maxSize)
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslCipher class represents an SSL cryptographic cipher.
bool * readyReadEmittedPointer
QString verificationPeerName
bool allowRootCertOnDemandLoading
std::unique_ptr< QTlsPrivate::TlsCryptograph > backend
static QString activeBackendName
static QMutex backendMutex
QList< QSslError > ignoreErrorsList
static bool s_loadRootCertsOnDemand
QSslConfigurationPrivate configuration
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
SslMode
Describes the connection modes available for QSslSocket.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTcpSocket class provides a TCP socket.
QTlsBackend is a factory class, providing implementations for the QSsl classes.
SslProtocol
Describes the protocol of the cipher.
Combined button and popup list for selecting options.
static void ensureInitialized()
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint GLuint64EXT address
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QList< QSslCertificate > cert
[0]
socket disconnectFromHost()
[0]