From fc1c6b08d191b3ee9964bf53ea95767bc54377ee Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 1 Jan 2005 11:32:23 +0000 Subject: Converted all C-style casts to C++-style casts + added unit test for utility::md5. --- src/messaging/authHelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/messaging/authHelper.cpp') diff --git a/src/messaging/authHelper.cpp b/src/messaging/authHelper.cpp index 5ddb8111..7ce50e0a 100644 --- a/src/messaging/authHelper.cpp +++ b/src/messaging/authHelper.cpp @@ -46,7 +46,7 @@ void hmac_md5(const string& text, const string& key, string& hexDigest) if (key.length() > 64) { utility::md5 keyMD5; - keyMD5.update((vmime_uint8*) key.data(), key.length()); + keyMD5.update(reinterpret_cast (key.data()), key.length()); std::copy(keyMD5.hash(), keyMD5.hash() + 16, tkey); tkeyLen = 16; -- cgit v1.2.3