mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Added support for large server to client packets. SMSG_RESPOND_INSPECT_ACHIEVEMENTS and SMSG_ALL_ACHIEVEMENT_DATA have a good chance of reaching the old 32767 byte limit.
This commit is contained in:
parent
84f43e60ab
commit
0dbc77a628
3 changed files with 47 additions and 15 deletions
|
|
@ -48,9 +48,8 @@ void AuthCrypt::DecryptRecv(uint8 *data, size_t len)
|
|||
void AuthCrypt::EncryptSend(uint8 *data, size_t len)
|
||||
{
|
||||
if (!_initialized) return;
|
||||
if (len < CRYPTED_SEND_LEN) return;
|
||||
|
||||
for (size_t t = 0; t < CRYPTED_SEND_LEN; t++)
|
||||
for (size_t t = 0; t < len; t++)
|
||||
{
|
||||
_send_i %= _key.size();
|
||||
uint8 x = (data[t] ^ _key[_send_i]) + _send_j;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue