Don't tell the core to enable SSL if we're built without
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 7 Nov 2013 20:56:27 +0000 (21:56 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 7 Nov 2013 20:56:27 +0000 (21:56 +0100)
So apparently we've always been telling the core to enable SSL, even
if the client is built without SSL support. This might account for
spurious reports about failed SSL handshakes.

src/client/coreconnection.cpp

index 7112b85..58335bb 100644 (file)
@@ -539,7 +539,11 @@ void CoreConnection::coreSocketConnected()
     clientInit["ClientVersion"] = Quassel::buildInfo().fancyVersionString;
     clientInit["ClientDate"] = Quassel::buildInfo().buildDate;
     clientInit["ProtocolVersion"] = Quassel::buildInfo().protocolVersion;
+#ifdef HAVE_SSL
     clientInit["UseSsl"] = _account.useSsl();
+#else
+    clientInit["UseSsl"] = false;
+#endif
 #ifndef QT_NO_COMPRESS
     clientInit["UseCompression"] = true;
 #else