summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/utils.cpp')
-rw-r--r--protocols/WhatsApp/src/utils.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp
index b78ef7f3b5..9559fb3372 100644
--- a/protocols/WhatsApp/src/utils.cpp
+++ b/protocols/WhatsApp/src/utils.cpp
@@ -113,7 +113,15 @@ BYTE* utils::md5string(const BYTE *data, int size, BYTE *digest)
return digest;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+// external stubs for WhatsAPI++
+
std::string base64_encode(void* pData, size_t len)
{
return (char*)ptrA( mir_base64_encode((BYTE*)pData, (unsigned)len));
-} \ No newline at end of file
+}
+
+void md5_string(const std::string& data, BYTE digest[16])
+{
+ utils::md5string(data, digest);
+}