summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol132.cpp
diff options
context:
space:
mode:
authorjfhumann <j.f.humann@gmail.com>2014-04-18 22:20:24 +0200
committerjfhumann <j.f.humann@gmail.com>2014-04-18 22:20:24 +0200
commitfde1555352727387cefe90c3393ef352475ffa20 (patch)
treeb13b1a18d61dfabdd47c3e9eb89fdc9ae84cd8f7 /src/Protocol/Protocol132.cpp
parentMerge remote-tracking branch 'origin/master' into fixes (diff)
downloadcuberite-fde1555352727387cefe90c3393ef352475ffa20.tar
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.gz
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.bz2
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.lz
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.xz
cuberite-fde1555352727387cefe90c3393ef352475ffa20.tar.zst
cuberite-fde1555352727387cefe90c3393ef352475ffa20.zip
Diffstat (limited to 'src/Protocol/Protocol132.cpp')
-rw-r--r--src/Protocol/Protocol132.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol132.cpp b/src/Protocol/Protocol132.cpp
index 1ef92b8f0..53d8c1561 100644
--- a/src/Protocol/Protocol132.cpp
+++ b/src/Protocol/Protocol132.cpp
@@ -805,7 +805,7 @@ void cProtocol132::SendEncryptionKeyRequest(void)
WriteByte(0xfd);
WriteString(Server->GetServerID());
const AString & PublicKeyDER = Server->GetPublicKeyDER();
- WriteShort((short) (PublicKeyDER.size()));
+ WriteShort((short)(PublicKeyDER.size()));
SendData(PublicKeyDER.data(), PublicKeyDER.size());
WriteShort(4);
WriteInt((int)(intptr_t)this); // Using 'this' as the cryptographic nonce, so that we don't have to generate one each time :)
@@ -881,7 +881,7 @@ void cProtocol132::StartEncryption(const Byte * a_Key)
AString ServerID = Server->GetServerID();
Checksum.Update((const Byte *)ServerID.c_str(), ServerID.length());
Checksum.Update(a_Key, 16);
- Checksum.Update((const Byte *) Server->GetPublicKeyDER().data(), Server->GetPublicKeyDER().size());
+ Checksum.Update((const Byte *)Server->GetPublicKeyDER().data(), Server->GetPublicKeyDER().size());
Byte Digest[20];
Checksum.Finalize(Digest);
cSHA1Checksum::DigestToJava(Digest, m_AuthServerID);