Merge pull request #412 from LordHepipud/patch-1

Fix 7.70 RSA / XTEA encryption
This commit is contained in:
Sam 2013-12-23 14:45:17 -08:00
commit 6a4868f2b5
1 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando
msg->addU8(0); // first RSA byte must be 0 msg->addU8(0); // first RSA byte must be 0
if(g_game.getProtocolVersion() >= 800) if(g_game.getProtocolVersion() >= 770)
{ {
// xtea key // xtea key
generateXteaKey(); generateXteaKey();
@ -107,7 +107,7 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando
msg->addPaddingBytes(paddingBytes); msg->addPaddingBytes(paddingBytes);
// encrypt with RSA // encrypt with RSA
if(g_game.getProtocolVersion() >= 800) if(g_game.getProtocolVersion() >= 770)
msg->encryptRsa(); msg->encryptRsa();
if(g_game.getFeature(Otc::GameProtocolChecksum)) if(g_game.getFeature(Otc::GameProtocolChecksum))
@ -115,7 +115,7 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando
send(msg); send(msg);
if(g_game.getProtocolVersion() >= 800) if(g_game.getProtocolVersion() >= 770)
enableXteaEncryption(); enableXteaEncryption();
} }