From: Maxim Mamontov Date: Wed, 9 Feb 2011 13:19:03 +0000 (+0200) Subject: Метод INETACCESS::DelUser зроблено приватним X-Git-Tag: 2.407-rc3~173 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/5b474acc0450b4d2db9ebb50e279eef038b48778?ds=sidebyside Метод INETACCESS::DelUser зроблено приватним --- 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);