diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-24 13:59:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-24 13:59:13 +0300 |
commit | 972fa306badc2e072d65cec43c37496aa952eee0 (patch) | |
tree | 76ff03a4b30ba245206fde8c7ee726b957807207 /protocols/JabberG/src | |
parent | 1b60fdaf9e55690bbfb5a6d8b3f6b970e6d4373f (diff) |
mir_urlDecode restored
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_secur.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp index 28166d3348..1ed762290e 100644 --- a/protocols/JabberG/src/jabber_secur.cpp +++ b/protocols/JabberG/src/jabber_secur.cpp @@ -230,7 +230,7 @@ void TScramAuth::Hi(BYTE* res, char* passw, size_t passwLen, char* salt, size_t memset(res, 0, MIR_SHA1_HASH_SIZE);
for (int i = 0; i < ind; i++) {
- unsigned int len = MIR_SHA1_HASH_SIZE;
+ unsigned int len;
HMAC(EVP_sha1(), (BYTE*)passw, passwLen, u, bufLen, u, &len);
bufLen = MIR_SHA1_HASH_SIZE;
@@ -269,7 +269,7 @@ char* TScramAuth::getChallenge(const wchar_t *challenge) Hi(saltedPassw, passw, passwLen, salt, saltLen, ind);
BYTE clientKey[MIR_SHA1_HASH_SIZE];
- unsigned int len = sizeof(clientKey);
+ unsigned int len;
HMAC(EVP_sha1(), saltedPassw, sizeof(saltedPassw), (BYTE*)"Client Key", 10, clientKey, &len);
BYTE storedKey[MIR_SHA1_HASH_SIZE];
|