Adding tls_ctx into mg_mgr for storing TLS context shared by all TLS sessions

This commit is contained in:
Allan Park 2023-06-07 10:21:46 +03:00
parent 57424d4a26
commit 8166339920

View File

@ -28,6 +28,7 @@ struct mg_mgr {
unsigned long nextid; // Next connection ID
unsigned long timerid; // Next timer ID
void *userdata; // Arbitrary user data pointer
void *tls_ctx; // TLS context shared by all TLS sessions
uint16_t mqtt_id; // MQTT IDs for pub/sub
void *active_dns_requests; // DNS requests in progress
struct mg_timer *timers; // Active timers