X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=4cdb4b3741abbcc9789d4348491d019911536222;hp=d234a73358eeb790903497edb771b0e62714c411;hb=HEAD;hpb=71253052c7152711f7f1b96f274d6f06d97f2cdb diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index d234a733..36eb7788 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2020 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,14 +23,9 @@ #include #include +#include #include -#ifdef HAVE_SSL -# include -#else -# include -#endif - #include "proxyline.h" #include "remotepeer.h" #include "util.h" @@ -57,12 +52,10 @@ RemotePeer::RemotePeer(::AuthHandler* authHandler, QTcpSocket* socket, Compresso connect(socket, selectOverload(&QAbstractSocket::error), this, &RemotePeer::onSocketError); connect(socket, &QAbstractSocket::disconnected, this, &Peer::disconnected); -#ifdef HAVE_SSL auto* sslSocket = qobject_cast(socket); if (sslSocket) { connect(sslSocket, &QSslSocket::encrypted, this, [this]() { emit secureStateChanged(true); }); } -#endif connect(_compressor, &Compressor::readyRead, this, &RemotePeer::onReadyRead); connect(_compressor, &Compressor::error, this, &RemotePeer::onCompressionError); @@ -181,11 +174,9 @@ bool RemotePeer::isSecure() const if (socket()) { if (isLocal()) return true; -#ifdef HAVE_SSL auto* sslSocket = qobject_cast(socket()); if (sslSocket && sslSocket->isEncrypted()) return true; -#endif } return false; }