Update Sources/websocket_bridge.cpp

This commit is contained in:
2026-06-10 02:30:31 +00:00
parent 9c4ff352a8
commit 6a81522c29

View File

@ -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;