git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Old comment removed from the postgresql db creation script
[stg.git]
/
stglibs
/
ia_auth_c.lib
/
ia_auth_c.cpp
diff --git
a/stglibs/ia_auth_c.lib/ia_auth_c.cpp
b/stglibs/ia_auth_c.lib/ia_auth_c.cpp
index 25e4d8c9df9fa5011c895ed7332c5138131b5595..fb13d5b6623869ffc3549b9e4fcde27d8744e9f7 100644
(file)
--- a/
stglibs/ia_auth_c.lib/ia_auth_c.cpp
+++ b/
stglibs/ia_auth_c.lib/ia_auth_c.cpp
@@
-23,7
+23,8
@@
/*
* Author :
* Boris Mikhailenko <stg34@stargazer.dp.ua>
/*
* Author :
* Boris Mikhailenko <stg34@stargazer.dp.ua>
-* Andrey Rakhmanov <andrey_rakhmanov@yahoo.com> - èñïðàâëåíèå äâóõ áàãîâ.
+* Maxim Mamontov <faust@stargazer.dp.ua>
+* Andrey Rakhmanov <andrey_rakhmanov@yahoo.com> - bugfixes.
*/
//---------------------------------------------------------------------------
*/
//---------------------------------------------------------------------------
@@
-212,9
+213,9
@@
close(sockr);
closesocket(sockr);
#endif
closesocket(sockr);
#endif
-sockr = socket(AF_INET, SOCK_DGRAM, 0);
// Cîêåò ÷åðåç êîòîðûé øëåì è ïðèíèìàåì
+sockr = socket(AF_INET, SOCK_DGRAM, 0);
-struct sockaddr_in localAddrR;
// Íàø àäðåñ
+struct sockaddr_in localAddrR;
localAddrR.sin_family = AF_INET;
if (localPort)
localAddrR.sin_family = AF_INET;
if (localPort)
@@
-292,14
+293,12
@@
if (!isNetPrepared)
isNetPrepared = true;
}
isNetPrepared = true;
}
-// Øèôðóåì LoginS
int db = sizeof(HDR_8);
for (int i = 0; i < IA_LOGIN_LEN/8; i++)
{
Blowfish_Encrypt(&ctxHdr, (uint32_t*)(buffer + db + i*8), (uint32_t*)(buffer + db + i*8 + 4));
}
int db = sizeof(HDR_8);
for (int i = 0; i < IA_LOGIN_LEN/8; i++)
{
Blowfish_Encrypt(&ctxHdr, (uint32_t*)(buffer + db + i*8), (uint32_t*)(buffer + db + i*8 + 4));
}
-// Øèôðóåì âñ¸ îñòàëüíîå
db += IA_LOGIN_LEN;
int encLen = (len - sizeof(HDR_8) - IA_LOGIN_LEN)/8;
for (int i = 0; i < encLen; i++)
db += IA_LOGIN_LEN;
int encLen = (len - sizeof(HDR_8) - IA_LOGIN_LEN)/8;
for (int i = 0; i < encLen; i++)
@@
-421,6
+420,7
@@
return ret;
//---------------------------------------------------------------------------
void IA_CLIENT_PROT::Start()
{
//---------------------------------------------------------------------------
void IA_CLIENT_PROT::Start()
{
+nonstop = true;
#ifdef WIN32
unsigned long pt;
CreateThread(NULL, 16384, RunW, this, 0, &pt);
#ifdef WIN32
unsigned long pt;
CreateThread(NULL, 16384, RunW, this, 0, &pt);