Kore Update

This commit is contained in:
Gorochu
2026-06-09 12:45:01 -07:00
parent a2d5c9aea4
commit 7558d03739
371 changed files with 30188 additions and 7466 deletions

View File

@ -104,14 +104,14 @@ namespace WebSocketWrapper {
void* ssl_cred_handle_;
void* ssl_context_handle_;
bool ssl_context_initialized_;
int ssl_socket_;
std::vector<char> ssl_buffer_;
#else
SSL_CTX* ssl_ctx_;
SSL* ssl_;
bool ssl_initialized_;
#endif
int ssl_socket_;
std::vector<char> ssl_buffer_;
bool initWSL();
void cleanupWSL();
bool performWSLHandshake(int socket, const std::string& host);
@ -119,6 +119,13 @@ namespace WebSocketWrapper {
int webSocketSSLSend(const void* data, int len);
int webSocketSSLSend(const char* buffer, int length);
int webSocketSSLReceive(char* buffer, int bufferSize);
inline bool isSSLReady() const {
#ifdef _WIN32
return ssl_context_initialized_;
#else
return ssl_initialized_;
#endif
}
#endif
std::string base64Encode(const std::string& data);