diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-24 14:56:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-24 14:56:33 +0000 |
commit | 2f28d4cb509676a01cca5c18823309293faefef3 (patch) | |
tree | e7d636d2e387334a42eca7437b5b7acdc5611837 /protocols/WhatsApp/src/utils.cpp | |
parent | 0bcb3eb5504e5614c0a499269f0c8ea7e5b58127 (diff) |
ok, wassup lib is not dependent on Miranda again
git-svn-id: http://svn.miranda-ng.org/main/trunk@5121 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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 |