summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsAppWeb/src')
-rw-r--r--protocols/WhatsAppWeb/src/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/WhatsAppWeb/src/main.cpp b/protocols/WhatsAppWeb/src/main.cpp
index 91c44d4b18..852e55b3af 100644
--- a/protocols/WhatsAppWeb/src/main.cpp
+++ b/protocols/WhatsAppWeb/src/main.cpp
@@ -30,6 +30,15 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
/////////////////////////////////////////////////////////////////////////////////////////
+CMPlugin::CMPlugin() :
+ ACCPROTOPLUGIN<WhatsAppProto>(MODULENAME, pluginInfo)
+{
+ SetUniqueId(DBKEY_ID);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// Load
+
static int hmac_sha256_init(void **hmac_context, const uint8_t *key, size_t key_len, void *)
{
HMAC_CTX *ctx = HMAC_CTX_new();
@@ -65,15 +74,6 @@ static int random_func(uint8_t *pData, size_t size, void *)
return 0;
}
-CMPlugin::CMPlugin() :
- ACCPROTOPLUGIN<WhatsAppProto>(MODULENAME, pluginInfo)
-{
- SetUniqueId(DBKEY_ID);
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-// Load
-
int CMPlugin::Load()
{
// InitIcons();