From 972fa306badc2e072d65cec43c37496aa952eee0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 24 Dec 2018 13:59:13 +0300 Subject: mir_urlDecode restored --- protocols/MSN/src/msn_auth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/MSN/src/msn_auth.cpp') diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index e478dc6e72..5c5f6bad46 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -524,7 +524,7 @@ static void derive_key(BYTE* der, unsigned char* key, size_t keylen, unsigned ch const size_t buflen = MIR_SHA1_HASH_SIZE + datalen; BYTE* buf = (BYTE*)alloca(buflen); - unsigned int len = sizeof(hash1); + unsigned int len; HMAC(EVP_sha1(), key, keylen, data, datalen, hash1, &len); HMAC(EVP_sha1(), key, keylen, hash1, MIR_SHA1_HASH_SIZE, hash3, &len); @@ -565,7 +565,7 @@ CMStringA CMsnProto::HotmailLogin(const char* url) result.Append(ptrA(mir_urlEncode(noncenc))); BYTE hash[MIR_SHA1_HASH_SIZE]; - unsigned int len = sizeof(hash); + unsigned int len; HMAC(EVP_sha1(), key2, sizeof(key2), (BYTE*)result.GetString(), result.GetLength(), hash, &len); ptrA szHash(mir_base64_encode(hash, sizeof(hash))); result.AppendFormat("&hash=%s", ptrA(mir_urlEncode(szHash))); -- cgit v1.2.3