From 5b474acc0450b4d2db9ebb50e279eef038b48778 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 9 Feb 2011 15:19:03 +0200 Subject: [PATCH] =?utf8?q?=D0=9C=D0=B5=D1=82=D0=BE=D0=B4=20INETACCESS::Del?= =?utf8?q?User=20=D0=B7=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=BF?= =?utf8?q?=D1=80=D0=B8=D0=B2=D0=B0=D1=82=D0=BD=D0=B8=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../plugins/authorization/inetaccess/inetaccess.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h index ad7db7a1..92cd29fe 100644 --- a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h +++ b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h @@ -29,6 +29,7 @@ #include #include + #include #include #include @@ -128,7 +129,7 @@ struct IA_USER password("NO PASSWORD") { // +++ Preparing CTX +++ - unsigned char keyL[PASSWD_LEN]; // ðÁÒÏÌØ ÄÌÑ ÛÉÆÒÏ×ËÉ + unsigned char keyL[PASSWD_LEN]; memset(keyL, 0, PASSWD_LEN); strncpy((char *)keyL, password.c_str(), PASSWD_LEN); Blowfish_Init(&ctx, keyL, PASSWD_LEN); @@ -198,10 +199,10 @@ public: virtual ~AUTH_IA(); void SetUsers(USERS * u) { users = u; }; - void SetTariffs(TARIFFS *){}; - void SetAdmins(ADMINS *){}; - void SetTraffcounter(TRAFFCOUNTER *){}; - void SetStore(BASE_STORE *){}; + void SetTariffs(TARIFFS *) {}; + void SetAdmins(ADMINS *) {}; + void SetTraffcounter(TRAFFCOUNTER *) {}; + void SetStore(BASE_STORE *) {}; void SetStgSettings(const SETTINGS * s) { stgSettings = s; }; void SetSettings(const MODULE_SETTINGS & s) { settings = s; }; int ParseSettings(); @@ -216,8 +217,6 @@ public: uint16_t GetStartPosition() const { return 50; }; uint16_t GetStopPosition() const { return 50; }; - void DelUser(user_iter u); - int SendMessage(const STG_MSG & msg, uint32_t ip) const; private: @@ -225,6 +224,7 @@ private: static void * RunTimeouter(void * d); int PrepareNet(); int FinalizeNet(); + void DelUser(user_iter u); int RecvData(char * buffer, int bufferSize); int CheckHeader(const char * buffer, int * protoVer); int PacketProcessor(char * buff, int dataLen, uint32_t sip, uint16_t sport, int protoVer, user_iter * user); -- 2.44.2