From 1821f1bfb5ae20a2e158f5ef22f46c1596b0db0f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 18 May 2018 16:59:51 +0200 Subject: Check if ssl support is available on resource start. --- examples/imapresource/imapresource.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 4151afa..1daf8ed 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -1063,6 +1063,17 @@ ImapResource::ImapResource(const ResourceContext &resourceContext) encryption = Imap::Starttls; } + if (!QSslSocket::supportsSsl()) { + SinkWarning() << "Qt doesn't support ssl. This is likely a distribution/packaging problem."; + //On windows this means that the required ssl dll's are missing + SinkWarning() << "Ssl Library Build Version Number: " << QSslSocket::sslLibraryBuildVersionString(); + SinkWarning() << "Ssl Library Runtime Version Number: " << QSslSocket::sslLibraryVersionString(); + } else { + SinkTrace() << "Ssl support available"; + SinkTrace() << "Ssl Library Build Version Number: " << QSslSocket::sslLibraryBuildVersionString(); + SinkTrace() << "Ssl Library Runtime Version Number: " << QSslSocket::sslLibraryVersionString(); + } + auto synchronizer = QSharedPointer::create(resourceContext); synchronizer->mServer = server; synchronizer->mPort = port; -- cgit v1.2.3