aboutsummaryrefslogtreecommitdiffstats
path: root/examples/websockets/sslechoserver/sslechoserver.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-03-17 09:49:10 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-03-17 09:49:10 +0100
commit2348cac4fa6baab447a21286ac8680ad6829008f (patch)
tree2d2561fba0a43d1fab4499c971e66f21000ea2cf /examples/websockets/sslechoserver/sslechoserver.cpp
parent15627cc2232bf155d892b630b7e0cb04ce6bbe67 (diff)
parent8a370cead2f493ee961c814af96192a8db3e18e3 (diff)
Merge remote-tracking branch 'origin/5.4' into 5.5
Diffstat (limited to 'examples/websockets/sslechoserver/sslechoserver.cpp')
-rw-r--r--examples/websockets/sslechoserver/sslechoserver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/websockets/sslechoserver/sslechoserver.cpp b/examples/websockets/sslechoserver/sslechoserver.cpp
index 01ee87b..2904b9e 100644
--- a/examples/websockets/sslechoserver/sslechoserver.cpp
+++ b/examples/websockets/sslechoserver/sslechoserver.cpp
@@ -50,8 +50,8 @@ SslEchoServer::SslEchoServer(quint16 port, QObject *parent) :
QWebSocketServer::SecureMode,
this);
QSslConfiguration sslConfiguration;
- QFile certFile(QStringLiteral("./localhost.cert"));
- QFile keyFile(QStringLiteral("./localhost.key"));
+ QFile certFile(QStringLiteral(":/localhost.cert"));
+ QFile keyFile(QStringLiteral(":/localhost.key"));
certFile.open(QIODevice::ReadOnly);
keyFile.open(QIODevice::ReadOnly);
QSslCertificate certificate(&certFile, QSsl::Pem);