diff options
author | George Hazan <ghazan@miranda.im> | 2020-10-08 22:56:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-10-08 22:56:11 +0300 |
commit | 3ec716dc906a43d155ab6222856c5a606f491bc8 (patch) | |
tree | a8b304c095d1a6379d1ca704f23a8cdef5af52e8 /protocols/WhatsAppWeb/src | |
parent | fed9983880d41c33892e645d40fe48de69b1e9d4 (diff) |
OpenSSL upgraded to 1.1.1
Diffstat (limited to 'protocols/WhatsAppWeb/src')
-rw-r--r-- | protocols/WhatsAppWeb/src/main.cpp | 5 | ||||
-rw-r--r-- | protocols/WhatsAppWeb/src/stdafx.h | 2 |
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 |