QtBase
v6.3.1
|
Go to the source code of this file.
Functions | |
clientDtls | setPeer (address, port, peerName) |
QByteArray | clientHello (serverSocket.pendingDatagramSize(), Qt::Uninitialized) |
serverSocket | readDatagram (clientHello.data(), clientHello.size(), &address, &port) |
serverDtls | setPeer (address, port) |
socket | readDatagram (encryptedMessage.data(), dgramSize) |
dtlsConnection | setDtlsConfiguration (config) |
if (!dtls.doHandshake(&socket, dgram)) | |
[4] More... | |
QSslError | error (QSslError::SelfSignedCertificate, cert.at(0)) |
expectedSslErrors | append (error) |
dtls | ignoreVerificationErrors (expectedSslErrors) |
dtls | doHandshake (udpSocket) |
Variables | |
QUdpSocket | clientSocket |
[0] More... | |
QDtls | clientDtls |
QHostAddress | address |
quin16 | port = {} |
QDtls | serverDtls |
serverDtls doHandshake & | serverSocket |
QByteArray | encryptedMessage (dgramSize) |
const QByteArray | plainText = dtlsConnection.decryptDatagram(&socket, encryptedMessage) |
auto | config = QSslConfiguration::defaultDtlsConfiguration() |
[3] More... | |
config | setDtlsCookieVerificationEnabled (false) |
QList< QSslCertificate > | cert = QSslCertificate::fromPath(QLatin1String("server-certificate.pem")) |
[5] More... | |
QList< QSslError > | expectedSslErrors |
QDtls | dtls |
expectedSslErrors append | ( | error | ) |
QByteArray clientHello | ( | serverSocket. | pendingDatagramSize(), |
Qt::Uninitialized | |||
) |
dtls doHandshake | ( | udpSocket | ) |
QSslError error | ( | QSslError::SelfSignedCertificate | , |
cert. | at0 | ||
) |
if | ( | !dtls.doHandshake &, | dgram | ) |
[4]
[5]
Definition at line 122 of file src_network_ssl_qdtls.cpp.
dtls ignoreVerificationErrors | ( | expectedSslErrors | ) |
serverSocket readDatagram | ( | clientHello. | data(), |
clientHello. | size(), | ||
& | address, | ||
& | port | ||
) |
socket readDatagram | ( | encryptedMessage. | data(), |
dgramSize | |||
) |
dtlsConnection setDtlsConfiguration | ( | config | ) |
serverDtls setPeer | ( | address | , |
port | |||
) |
clientDtls setPeer | ( | address | , |
port | , | ||
peerName | |||
) |
Definition at line 61 of file src_network_ssl_qdtls.cpp.
QList<QSslCertificate> cert = QSslCertificate::fromPath(QLatin1String("server-certificate.pem")) |
QDtls clientDtls |
Definition at line 54 of file src_network_ssl_qdtls.cpp.
dtlsConnection writeDatagramEncrypted & clientSocket |
QDtls dtls |
Definition at line 134 of file src_network_ssl_qdtls.cpp.
QByteArray encryptedMessage(dgramSize) | ( | dgramSize | ) |
Definition at line 131 of file src_network_ssl_qdtls.cpp.
const QByteArray plainText = dtlsConnection.decryptDatagram(&socket, encryptedMessage) |
Definition at line 104 of file src_network_ssl_qdtls.cpp.
quin16 port = {} |
Definition at line 62 of file src_network_ssl_qdtls.cpp.
QDtls serverDtls |
Definition at line 65 of file src_network_ssl_qdtls.cpp.
serverDtls doHandshake& serverSocket |
Definition at line 67 of file src_network_ssl_qdtls.cpp.