/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2015 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#define COREAUTHHANDLER_H
#include "authhandler.h"
+#include "peerfactory.h"
#include "remotepeer.h"
#include "types.h"
void handle(const Protocol::SetupData &msg);
void handle(const Protocol::Login &msg);
+ void setPeer(RemotePeer *peer);
+ void startSsl();
+
bool checkClientRegistered();
private slots:
- void startSsl();
+ void onReadyRead();
+
#ifdef HAVE_SSL
void onSslErrors();
#endif
- // only in compat mode
+ // only in legacy mode
void onProtocolVersionMismatch(int actual, int expected);
private:
RemotePeer *_peer;
+ bool _magicReceived;
+ bool _legacy;
bool _clientRegistered;
+ quint8 _connectionFeatures;
+ QVector<PeerFactory::ProtoDescriptor> _supportedProtos;
};
#endif