From 6c169aab6505a67f617ed7c7e73b41e1e90dd5ec Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Fri, 7 Oct 2022 21:17:31 +0800 Subject: [PATCH] Update tls.h --- include/gmssl/tls.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/gmssl/tls.h b/include/gmssl/tls.h index 3f413fd3..28480e0a 100644 --- a/include/gmssl/tls.h +++ b/include/gmssl/tls.h @@ -16,6 +16,7 @@ #pragma comment (lib, "Ws2_32.lib") #pragma comment (lib, "Mswsock.lib") #pragma comment (lib, "AdvApi32.lib") +#include #endif @@ -748,7 +749,11 @@ typedef struct { int cipher_suites[TLS_MAX_CIPHER_SUITES_COUNT]; size_t cipher_suites_cnt; +#ifdef WIN32 + SOCKET sock; +#else int sock; +#endif uint8_t enced_record[TLS_MAX_RECORD_SIZE]; size_t enced_record_len;