summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/utils.h')
-rw-r--r--protocols/WhatsApp/src/utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/utils.h b/protocols/WhatsApp/src/utils.h
index e6686d1764..b5430bcfa9 100644
--- a/protocols/WhatsApp/src/utils.h
+++ b/protocols/WhatsApp/src/utils.h
@@ -105,6 +105,11 @@ namespace utils
{
std::string source_get_value(std::string* data, unsigned int argument_count, ...);
};
+
+ BYTE* md5string(const BYTE*, int, BYTE* digest);
+ __forceinline BYTE* md5string(const std::string& str, BYTE* digest) {
+ return md5string((BYTE*)str.data(), (int)str.length(), digest);
+ }
};