mirror of
https://github.com/edubart/otclient.git
synced 2025-05-09 22:09:20 +02:00
Fix #703
This commit is contained in:
parent
8871659b07
commit
c87c450905
@ -160,9 +160,9 @@ void Protocol::setXteaKey(uint32 a, uint32 b, uint32 c, uint32 d)
|
|||||||
m_xteaKey[3] = d;
|
m_xteaKey[3] = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<int> Protocol::getXteaKey()
|
std::vector<uint32> Protocol::getXteaKey()
|
||||||
{
|
{
|
||||||
std::vector<int> xteaKey;
|
std::vector<uint32> xteaKey;
|
||||||
xteaKey.resize(4);
|
xteaKey.resize(4);
|
||||||
for(int i = 0; i < 4; ++i)
|
for(int i = 0; i < 4; ++i)
|
||||||
xteaKey[i] = m_xteaKey[i];
|
xteaKey[i] = m_xteaKey[i];
|
||||||
|
@ -49,7 +49,7 @@ public:
|
|||||||
|
|
||||||
void generateXteaKey();
|
void generateXteaKey();
|
||||||
void setXteaKey(uint32 a, uint32 b, uint32 c, uint32 d);
|
void setXteaKey(uint32 a, uint32 b, uint32 c, uint32 d);
|
||||||
std::vector<int> getXteaKey();
|
std::vector<uint32> getXteaKey();
|
||||||
void enableXteaEncryption() { m_xteaEncryptionEnabled = true; }
|
void enableXteaEncryption() { m_xteaEncryptionEnabled = true; }
|
||||||
|
|
||||||
void enableChecksum() { m_checksumEnabled = true; }
|
void enableChecksum() { m_checksumEnabled = true; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user