summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsAppWeb/src')
-rw-r--r--protocols/WhatsAppWeb/src/main.cpp5
-rw-r--r--protocols/WhatsAppWeb/src/stdafx.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/protocols/WhatsAppWeb/src/main.cpp b/protocols/WhatsAppWeb/src/main.cpp
index ce304c1d27..698b549c00 100644
--- a/protocols/WhatsAppWeb/src/main.cpp
+++ b/protocols/WhatsAppWeb/src/main.cpp
@@ -32,7 +32,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC
static int hmac_sha256_init(void **hmac_context, const uint8_t *key, size_t key_len, void *)
{
- HMAC_CTX *ctx = new HMAC_CTX;
+ HMAC_CTX *ctx = HMAC_CTX_new();
*hmac_context = ctx;
HMAC_Init(ctx, key, key_len, EVP_sha256());
return 0;
@@ -56,8 +56,7 @@ int hmac_sha256_final(void *hmac_context, signal_buffer **output, void *user_dat
void hmac_sha256_cleanup(void *hmac_context, void *)
{
- HMAC_cleanup((HMAC_CTX *)hmac_context);
- delete hmac_context;
+ HMAC_CTX_free((HMAC_CTX *)hmac_context);
}
static int random_func(uint8_t *pData, size_t size, void *)
diff --git a/protocols/WhatsAppWeb/src/stdafx.h b/protocols/WhatsAppWeb/src/stdafx.h
index 3049c4eb7b..47b9dc07c4 100644
--- a/protocols/WhatsAppWeb/src/stdafx.h
+++ b/protocols/WhatsAppWeb/src/stdafx.h
@@ -77,4 +77,4 @@ struct ec_private_key : public signal_type_base
#include "proto.h"
#include "resource.h"
-#pragma comment(lib, "libeay32.lib") \ No newline at end of file
+#pragma comment(lib, "libcrypto.lib") \ No newline at end of file