From 15253d1995ea49b114ef5c627e15b661dbd602b2 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 30 Sep 2012 19:41:17 +0200 Subject: add some trivial authentication --- distfoldd/clientagent.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'distfoldd/clientagent.h') diff --git a/distfoldd/clientagent.h b/distfoldd/clientagent.h index d54bc69..85cb9dc 100644 --- a/distfoldd/clientagent.h +++ b/distfoldd/clientagent.h @@ -10,10 +10,11 @@ class ClientAgent : public Agent { Q_OBJECT public: - explicit ClientAgent(const QHostAddress& addr, uint port, const QDir& local_dir, SyncFlags flags, QObject *parent = 0); + explicit ClientAgent(const QHostAddress& addr, uint port, const QDir& local_dir, const QString& passwd, SyncFlags flags, QObject *parent = 0); enum State { STATE_HELLO, + STATE_AUTH, STATE_FILE_LIST, STATE_FILE_ACTIONS }; @@ -32,6 +33,7 @@ private: private: State _state; RemoteActionInfoList _pendingActions; + QByteArray _challenge; }; #endif // CLIENTAGENT_H -- cgit v1.2.3