Fix 7.70 RSA / XTEA encryption
RSA / XTEA encryption was implemented with Client 7.70 ~~~~Lord Hepipud~~~~
This commit is contained in:
parent
1e17919a26
commit
aa84ee4362
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue