49 bool verifyProtocolSupported(
const char *where);
69 static bool supportsSsl();
72 static QList<QSslCipher> defaultCiphers();
73 static QList<QSslCipher> defaultDtlsCiphers();
74 static QList<QSslCipher> supportedCiphers();
75 static void setDefaultCiphers(
const QList<QSslCipher> &ciphers);
76 static void setDefaultDtlsCiphers(
const QList<QSslCipher> &ciphers);
77 static void setDefaultSupportedCiphers(
const QList<QSslCipher> &ciphers);
79 static QList<QSslEllipticCurve> supportedEllipticCurves();
80 static void setDefaultSupportedEllipticCurves(
const QList<QSslEllipticCurve> &curves);
81 static void resetDefaultEllipticCurves();
83 static QList<QSslCertificate> defaultCaCertificates();
84 static QList<QSslCertificate> systemCaCertificates();
85 static void setDefaultCaCertificates(
const QList<QSslCertificate> &
certs);
87 static void addDefaultCaCertificates(
const QList<QSslCertificate> &
certs);
89 static bool isMatchingHostname(
const QString &cn,
const QString &hostname);
93 void createPlainSocket(QIODevice::OpenMode openMode);
95 static void resumeSocketNotifiers(
QSslSocket*);
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();
116 static QList<QByteArray> unixRootCertDirectories();
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 QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)