Commit d4ac9f51 authored by Kurt Pattyn's avatar Kurt Pattyn Committed by The Qt Project
Browse files

Add warning to example regarding ignoring ssl errors


Change-Id: I3d615a774f4071a085b0f233bef2eac76aefbefb
Reviewed-by: default avatarRichard J. Moore <rich@kde.org>
Showing with 5 additions and 0 deletions
...@@ -78,6 +78,11 @@ void SslEchoClient::onTextMessageReceived(QString message) ...@@ -78,6 +78,11 @@ void SslEchoClient::onTextMessageReceived(QString message)
void SslEchoClient::onSslErrors(const QList<QSslError> &errors) void SslEchoClient::onSslErrors(const QList<QSslError> &errors)
{ {
Q_UNUSED(errors); Q_UNUSED(errors);
// WARNING: Never ignore SSL errors in production code.
// The proper way to handle self-signed certificates is to add a custom root
// to the CA store.
m_webSocket.ignoreSslErrors(); m_webSocket.ignoreSslErrors();
} }
//! [onTextMessageReceived] //! [onTextMessageReceived]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment