forked from LeenkxTeam/LNXRNT
Update Sources/websocket_bridge.cpp
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
#include "async_engine.h"
|
#include "async_engine.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#ifdef KORE_WINDOWS
|
#ifdef KINC_WINDOWS
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#endif
|
#endif
|
||||||
@ -106,7 +106,7 @@ std::string base64_encode(const unsigned char* bytes_to_encode, unsigned int in_
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
std::string sha1_binary(const std::string& data) {
|
std::string sha1_binary(const std::string& data) {
|
||||||
#ifdef KORE_WINDOWS
|
#ifdef KINC_WINDOWS
|
||||||
// CryptoAPI for proper SHA-1 hashing
|
// CryptoAPI for proper SHA-1 hashing
|
||||||
HCRYPTPROV hProv = 0;
|
HCRYPTPROV hProv = 0;
|
||||||
HCRYPTHASH hHash = 0;
|
HCRYPTHASH hHash = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user