From aa84ee4362011ea95c8a950cef958877c1ad80f8 Mon Sep 17 00:00:00 2001 From: LordHepipud Date: Mon, 23 Dec 2013 23:31:59 +0100 Subject: [PATCH] Fix 7.70 RSA / XTEA encryption RSA / XTEA encryption was implemented with Client 7.70 ~~~~Lord Hepipud~~~~ --- src/client/protocolgamesend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/protocolgamesend.cpp b/src/client/protocolgamesend.cpp index 5d677323..1136d86b 100644 --- a/src/client/protocolgamesend.cpp +++ b/src/client/protocolgamesend.cpp @@ -73,7 +73,7 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando msg->addU8(0); // first RSA byte must be 0 - if(g_game.getProtocolVersion() >= 800) + if(g_game.getProtocolVersion() >= 770) { // xtea key generateXteaKey(); @@ -107,7 +107,7 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando msg->addPaddingBytes(paddingBytes); // encrypt with RSA - if(g_game.getProtocolVersion() >= 800) + if(g_game.getProtocolVersion() >= 770) msg->encryptRsa(); if(g_game.getFeature(Otc::GameProtocolChecksum)) @@ -115,7 +115,7 @@ void ProtocolGame::sendLoginPacket(uint challengeTimestamp, uint8 challengeRando send(msg); - if(g_game.getProtocolVersion() >= 800) + if(g_game.getProtocolVersion() >= 770) enableXteaEncryption(); }