diff options
Diffstat (limited to 'protocols/WhatsApp/src/utils.cpp')
-rw-r--r-- | protocols/WhatsApp/src/utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index 8444cdd6f1..b78ef7f3b5 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -112,3 +112,8 @@ BYTE* utils::md5string(const BYTE *data, int size, BYTE *digest) mir_md5_finish(&md5_state, digest);
return digest;
}
+
+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 |