60 void SslServer::incomingConnection(
qintptr socketDescriptor)
63 if (
serverSocket->setSocketDescriptor(socketDescriptor)) {
99 socket.setCiphers(
"DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA");
qint64 write(const char *data, qint64 len)
QString errorString() const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
const_reference at(qsizetype i) const noexcept
void append(parameter_type t)
static QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, PatternSyntax syntax=PatternSyntax::FixedString)
The QSslError class provides an SSL error.
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
bool waitForReadyRead(int msecs=30000) override
bool waitForEncrypted(int msecs=30000)
void connectToHostEncrypted(const QString &hostName, quint16 port, OpenMode mode=ReadWrite, NetworkLayerProtocol protocol=AnyIPProtocol)
void ignoreSslErrors(const QList< QSslError > &errors)
serverDtls doHandshake & serverSocket
QList< QSslError > expectedSslErrors
QSslError error(QSslError::SelfSignedCertificate, cert.at(0))
QList< QSslCertificate > cert
[5]
connect(socket, SIGNAL(encrypted()), this, SLOT(ready()))