Kore Update
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user