Skip to content

Commit

Permalink
DTLS server - use the proper TLS configuration
Browse files Browse the repository at this point in the history
The one we had before was invalid and we ended up with
defaultDtlsConfiguration which has peerVerifyMode == AutoVerify.

Change-Id: I5b9ceb027e90189325c1d8fd0db37d1b212ebbc8
Reviewed-by: Edward Welbourne <[email protected]>
Reviewed-by: Timur Pocheptsov <[email protected]>
  • Loading branch information
Timur Pocheptsov committed Aug 10, 2018
1 parent 6b8e034 commit 26a6afd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/network/secureudpserver/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ DtlsServer::DtlsServer()
{
connect(&serverSocket, &QAbstractSocket::readyRead, this, &DtlsServer::readyRead);

serverConfiguration = QSslConfiguration::defaultDtlsConfiguration();
serverConfiguration.setPreSharedKeyIdentityHint("Qt DTLS example server");
serverConfiguration.setPeerVerifyMode(QSslSocket::VerifyNone);
}
Expand Down

0 comments on commit 26a6afd

Please sign in to comment.