summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-18 16:59:51 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-18 16:59:51 +0200
commit1821f1bfb5ae20a2e158f5ef22f46c1596b0db0f (patch)
tree67a186d289b83bb44b7b8f81458403e2254d177c /examples
parentabdecaa2ea1ed88e568eac5db7e755c0c745aadf (diff)
downloadsink-1821f1bfb5ae20a2e158f5ef22f46c1596b0db0f.tar.gz
sink-1821f1bfb5ae20a2e158f5ef22f46c1596b0db0f.zip
Check if ssl support is available on resource start.
Diffstat (limited to 'examples')
-rw-r--r--examples/imapresource/imapresource.cpp11
1 files changed, 11 insertions, 0 deletions
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)
1063 encryption = Imap::Starttls; 1063 encryption = Imap::Starttls;
1064 } 1064 }
1065 1065
1066 if (!QSslSocket::supportsSsl()) {
1067 SinkWarning() << "Qt doesn't support ssl. This is likely a distribution/packaging problem.";
1068 //On windows this means that the required ssl dll's are missing
1069 SinkWarning() << "Ssl Library Build Version Number: " << QSslSocket::sslLibraryBuildVersionString();
1070 SinkWarning() << "Ssl Library Runtime Version Number: " << QSslSocket::sslLibraryVersionString();
1071 } else {
1072 SinkTrace() << "Ssl support available";
1073 SinkTrace() << "Ssl Library Build Version Number: " << QSslSocket::sslLibraryBuildVersionString();
1074 SinkTrace() << "Ssl Library Runtime Version Number: " << QSslSocket::sslLibraryVersionString();
1075 }
1076
1066 auto synchronizer = QSharedPointer<ImapSynchronizer>::create(resourceContext); 1077 auto synchronizer = QSharedPointer<ImapSynchronizer>::create(resourceContext);
1067 synchronizer->mServer = server; 1078 synchronizer->mServer = server;
1068 synchronizer->mPort = port; 1079 synchronizer->mPort = port;