diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-10 10:44:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-10 10:44:04 +0000 |
commit | 8c2cf8fada9a01f749f6f96f177fdb1f590e5393 (patch) | |
tree | e3ad5464a1df2ab255102c477df2360f4aba6778 /protocols/Twitter/oauth.cpp | |
parent | ddf46f560f63f43aedc6464edad759cc3a711d4b (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/oauth.cpp')
-rw-r--r-- | protocols/Twitter/oauth.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Twitter/oauth.cpp b/protocols/Twitter/oauth.cpp index d67ec4ce22..2235ca88ce 100644 --- a/protocols/Twitter/oauth.cpp +++ b/protocols/Twitter/oauth.cpp @@ -496,7 +496,7 @@ string mir_twitter::HMACSHA1( const string& keyBytes, const string& data ) if (!CryptHashData(
hHash, // handle of the hash object
(BYTE*)keyBytes.c_str(), // password to hash
- keyBytes.size(), // number of bytes of data to add
+ (DWORD)keyBytes.size(), // number of bytes of data to add
0)) // flags
{
_TRACE("Error in CryptHashData 0x%08x \n",
@@ -522,7 +522,7 @@ string mir_twitter::HMACSHA1( const string& keyBytes, const string& data ) * be able to import longer keys (HMAC-SHA1 uses 20-byte key).
*/
key_blob.hdr.aiKeyAlg = CALG_RC2;
- key_blob.len = keyBytes.size();
+ key_blob.len = (DWORD)keyBytes.size();
ZeroMemory(key_blob.key, sizeof(key_blob.key));
_ASSERTE(keyBytes.size() <= SIZEOF(key_blob.key));
@@ -578,7 +578,7 @@ string mir_twitter::HMACSHA1( const string& keyBytes, const string& data ) if (!CryptHashData(
hHmacHash, // handle of the HMAC hash object
(BYTE*)data.c_str(), // message to hash
- data.size(), // number of bytes of data to add
+ (DWORD)data.size(), // number of bytes of data to add
0)) // flags
{
_TRACE("Error in CryptHashData 0x%08x \n",
@@ -646,7 +646,7 @@ ErrorExit: wstring mir_twitter::Base64String( const string& hash )
{
Base64Coder coder;
- coder.Encode((BYTE*)hash.c_str(), hash.size());
+ coder.Encode((BYTE*)hash.c_str(), (DWORD)hash.size());
wstring encoded = UTF8ToWide(coder.EncodedMessage());
return encoded;
}
|