aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/authHelper.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-01-01 11:32:23 +0000
committerVincent Richard <[email protected]>2005-01-01 11:32:23 +0000
commitfc1c6b08d191b3ee9964bf53ea95767bc54377ee (patch)
tree0e6a61589b60909b065523e5e8e1e0039f2fc93d /src/messaging/authHelper.cpp
parentFixed config file for Doxygen. (diff)
downloadvmime-fc1c6b08d191b3ee9964bf53ea95767bc54377ee.tar.gz
vmime-fc1c6b08d191b3ee9964bf53ea95767bc54377ee.zip
Converted all C-style casts to C++-style casts + added unit test for utility::md5.
Diffstat (limited to 'src/messaging/authHelper.cpp')
-rw-r--r--src/messaging/authHelper.cpp2
1 files changed, 1 insertions, 1 deletions
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 <const vmime_uint8*>(key.data()), key.length());
std::copy(keyMD5.hash(), keyMD5.hash() + 16, tkey);
tkeyLen = 16;