X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.cpp;h=872c6d1e21179663c6857cd8a203459955c5e340;hp=8d39d06d1a97122c3a0872efa0c1a8580633094a;hb=1a5c1814a0c52f6f35e65c7033b2f896bf1188e3;hpb=df38a9238d603ec8d2040619befa50980d994916 diff --git a/src/core/coreauthhandler.cpp b/src/core/coreauthhandler.cpp index 8d39d06d..872c6d1e 100644 --- a/src/core/coreauthhandler.cpp +++ b/src/core/coreauthhandler.cpp @@ -22,9 +22,7 @@ #include -#ifdef HAVE_SSL -# include -#endif +#include #include "core.h" @@ -336,7 +334,6 @@ bool CoreAuthHandler::isLocal() const void CoreAuthHandler::startSsl() { -#ifdef HAVE_SSL auto* sslSocket = qobject_cast(socket()); Q_ASSERT(sslSocket); @@ -344,14 +341,11 @@ void CoreAuthHandler::startSsl() connect(sslSocket, selectOverload&>(&QSslSocket::sslErrors), this, &CoreAuthHandler::onSslErrors); sslSocket->flush(); // ensure that the write cache is flushed before we switch to ssl (bug 682) sslSocket->startServerEncryption(); -#endif /* HAVE_SSL */ } -#ifdef HAVE_SSL void CoreAuthHandler::onSslErrors() { auto* sslSocket = qobject_cast(socket()); Q_ASSERT(sslSocket); sslSocket->ignoreSslErrors(); } -#endif