X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..7838a402e606a6e4119b9dddf8a0dcf5dfaed1c7:/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h?ds=sidebyside diff --git a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h index 0e194db6..ad7db7a1 100644 --- a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h +++ b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.h @@ -121,13 +121,12 @@ private: struct IA_USER { IA_USER() + : lastSendAlive(0), + rnd(random()), + port(0), + protoVer(0), + password("NO PASSWORD") { - //phase = 1; - //phaseTime = 0; - lastSendAlive = 0; - rnd = random(); - port = 0; - password = "NO PASSWORD"; // +++ Preparing CTX +++ unsigned char keyL[PASSWD_LEN]; // ðÁÒÏÌØ ÄÌÑ ÛÉÆÒÏ×ËÉ memset(keyL, 0, PASSWD_LEN); @@ -140,15 +139,15 @@ struct IA_USER }; IA_USER(const IA_USER & u) + : user(u.user), + phase(u.phase), + lastSendAlive(u.lastSendAlive), + rnd(u.rnd), + port(u.port), + messagesToSend(u.messagesToSend), + protoVer(u.protoVer), + password(u.password) { - user = u.user; - phase = u.phase; - //phaseTime = u.phaseTime; - lastSendAlive = u.lastSendAlive; - rnd = u.rnd; - password = u.password; - protoVer = u.protoVer; - port = u.port; #ifdef IA_DEBUG aliveSent = u.aliveSent; #endif @@ -280,10 +279,6 @@ private: int Timeouter(); - void InitEncrypt(BLOWFISH_CTX * ctx, const string & password); - void Decrypt(BLOWFISH_CTX * ctx, char * dst, const char * src, int len8); - void Encrypt(BLOWFISH_CTX * ctx, char * dst, const char * src, int len8); - int SendError(uint32_t ip, uint16_t port, int protoVer, const string & text); int Send(uint32_t ip, uint16_t port, const char * buffer, int len); int RealSendMessage6(const STG_MSG & msg, uint32_t ip, IA_USER & user);