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/Gadu-Gadu/src | |
parent | 1b60fdaf9e55690bbfb5a6d8b3f6b970e6d4373f (diff) |
mir_urlDecode restored
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r-- | protocols/Gadu-Gadu/src/oauth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Gadu-Gadu/src/oauth.cpp b/protocols/Gadu-Gadu/src/oauth.cpp index c43b111dba..92abd7feaa 100644 --- a/protocols/Gadu-Gadu/src/oauth.cpp +++ b/protocols/Gadu-Gadu/src/oauth.cpp @@ -186,7 +186,7 @@ int oauth_sign_request(LIST<OAUTHPARAMETER> ¶ms, const char *httpmethod, con mir_strcat(key, tsenc);
BYTE digest[MIR_SHA1_HASH_SIZE];
- unsigned len = sizeof(digest);
+ unsigned len;
HMAC(EVP_sha1(), key, (int)mir_strlen(key), (BYTE*)(char*)text, (int)mir_strlen(text), digest, &len);
sign = mir_base64_encode(digest, MIR_SHA1_HASH_SIZE);
}
|