summaryrefslogtreecommitdiff
path: root/protocols/Icq10/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Icq10/src/server.cpp')
-rw-r--r--protocols/Icq10/src/server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Icq10/src/server.cpp b/protocols/Icq10/src/server.cpp
index e8cf0b0d48..6ad4897cd8 100644
--- a/protocols/Icq10/src/server.cpp
+++ b/protocols/Icq10/src/server.cpp
@@ -136,18 +136,17 @@ void CIcqProto::OnCheckPassword(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest*)
m_szAToken = ptrA(mir_urlDecode(m_szAToken));
setString("AToken", m_szAToken);
- ptrA szPassword(getStringA("Password"));
CMStringA m_szSessionSecret = data["sessionSecret"].as_mstring();
unsigned int len;
BYTE hashOut[MIR_SHA256_HASH_SIZE];
- HMAC(EVP_sha256(), szPassword.get(), (int)mir_strlen(szPassword), (BYTE*)m_szSessionSecret.c_str(), m_szSessionSecret.GetLength(), hashOut, &len);
+ HMAC(EVP_sha256(), m_szPassword, (int)mir_strlen(m_szPassword), (BYTE*)m_szSessionSecret.c_str(), m_szSessionSecret.GetLength(), hashOut, &len);
m_szSessionKey = ptrA(mir_base64_encode(hashOut, sizeof(hashOut)));
setString("SessionKey", m_szSessionKey);
CMStringA szUin = data["loginId"].as_mstring();
if (szUin)
- setDword("UIN", atoi(szUin));
+ m_dwUin = atoi(szUin);
StartSession();
}