X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.h;h=21a2c512a33043372bd29f3b8b7336b03839709a;hp=db54bec19ae6927f7b0445dc2e237f870d5163b7;hb=c0d6dc0dec628f2e143e37ecc95cec45e636f8a5;hpb=71253052c7152711f7f1b96f274d6f06d97f2cdb diff --git a/src/core/coreauthhandler.h b/src/core/coreauthhandler.h index db54bec1..21a2c512 100644 --- a/src/core/coreauthhandler.h +++ b/src/core/coreauthhandler.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREAUTHHANDLER_H -#define COREAUTHHANDLER_H +#pragma once #include "authhandler.h" #include "metricsserver.h" @@ -33,7 +32,7 @@ class CoreAuthHandler : public AuthHandler Q_OBJECT public: - CoreAuthHandler(QTcpSocket* socket, QObject* parent = nullptr); + CoreAuthHandler(QSslSocket* socket, QObject* parent = nullptr); QHostAddress hostAddress() const; bool isLocal() const override; @@ -56,9 +55,7 @@ private: private slots: void onReadyRead(); -#ifdef HAVE_SSL void onSslErrors(); -#endif // only in legacy mode void onProtocolVersionMismatch(int actual, int expected); @@ -76,5 +73,3 @@ private: quint8 _connectionFeatures; QVector _supportedProtos; }; - -#endif