ssl: Remove fallback code for missing SSL support
[quassel.git] / src / core / coreauthhandler.h
index 82c2c2c..6471a3e 100644 (file)
@@ -24,6 +24,7 @@
 #include "authhandler.h"
 #include "metricsserver.h"
 #include "peerfactory.h"
+#include "proxyline.h"
 #include "remotepeer.h"
 #include "types.h"
 
@@ -34,6 +35,9 @@ class CoreAuthHandler : public AuthHandler
 public:
     CoreAuthHandler(QTcpSocket* socket, QObject* parent = nullptr);
 
+    QHostAddress hostAddress() const;
+    bool isLocal() const override;
+
 signals:
     void handshakeComplete(RemotePeer* peer, UserId uid);
 
@@ -52,9 +56,7 @@ private:
 private slots:
     void onReadyRead();
 
-#ifdef HAVE_SSL
     void onSslErrors();
-#endif
 
     // only in legacy mode
     void onProtocolVersionMismatch(int actual, int expected);
@@ -63,6 +65,9 @@ private:
     RemotePeer* _peer;
     MetricsServer* _metricsServer;
 
+    bool _proxyReceived;
+    ProxyLine _proxyLine;
+    bool _useProxyLine;
     bool _magicReceived;
     bool _legacy;
     bool _clientRegistered;