summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-29 11:04:54 +0200
committermadmaxoft <github@xoft.cz>2014-04-29 11:04:54 +0200
commitec33bbe2949010e1ed377b9dcc1ace56a0126bfe (patch)
treed6414c36a96b1ab361337ff1636b67f0b5b5a95f /src/Protocol
parentMerged branch 'master' into SslWrappers. (diff)
downloadcuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar
cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.gz
cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.bz2
cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.lz
cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.xz
cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.tar.zst
cuberite-ec33bbe2949010e1ed377b9dcc1ace56a0126bfe.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol132.cpp2
-rw-r--r--src/Protocol/Protocol17x.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol132.cpp b/src/Protocol/Protocol132.cpp
index 53d8c1561..acfa5e811 100644
--- a/src/Protocol/Protocol132.cpp
+++ b/src/Protocol/Protocol132.cpp
@@ -819,7 +819,7 @@ void cProtocol132::SendEncryptionKeyRequest(void)
void cProtocol132::HandleEncryptionKeyResponse(const AString & a_EncKey, const AString & a_EncNonce)
{
// Decrypt EncNonce using privkey
- cRSAPrivateKey & rsaDecryptor = cRoot::Get()->GetServer()->GetPrivateKey();
+ cRsaPrivateKey & rsaDecryptor = cRoot::Get()->GetServer()->GetPrivateKey();
Int32 DecryptedNonce[MAX_ENC_LEN / sizeof(Int32)];
int res = rsaDecryptor.Decrypt((const Byte *)a_EncNonce.data(), a_EncNonce.size(), (Byte *)DecryptedNonce, sizeof(DecryptedNonce));
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index a04d8ac3c..001b8c219 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1690,7 +1690,7 @@ void cProtocol172::HandlePacketLoginEncryptionResponse(cByteBuffer & a_ByteBuffe
}
// Decrypt EncNonce using privkey
- cRSAPrivateKey & rsaDecryptor = cRoot::Get()->GetServer()->GetPrivateKey();
+ cRsaPrivateKey & rsaDecryptor = cRoot::Get()->GetServer()->GetPrivateKey();
Int32 DecryptedNonce[MAX_ENC_LEN / sizeof(Int32)];
int res = rsaDecryptor.Decrypt((const Byte *)EncNonce.data(), EncNonce.size(), (Byte *)DecryptedNonce, sizeof(DecryptedNonce));
if (res != 4)