summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol132.cpp
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/Protocol132.cpp
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 '')
-rw-r--r--src/Protocol/Protocol132.cpp2
1 files changed, 1 insertions, 1 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));