Skip to content

Commit 7f3d450

Browse files
authored
Merge pull request #2242 from cesanta/FEATURE_Add_tls_context_to_mg_mgr
Adding tls_ctx into mg_mgr for storing TLS context shared by all TLS session
2 parents 57424d4 + 8166339 commit 7f3d450

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/net.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ struct mg_mgr {
2828
unsigned long nextid; // Next connection ID
2929
unsigned long timerid; // Next timer ID
3030
void *userdata; // Arbitrary user data pointer
31+
void *tls_ctx; // TLS context shared by all TLS sessions
3132
uint16_t mqtt_id; // MQTT IDs for pub/sub
3233
void *active_dns_requests; // DNS requests in progress
3334
struct mg_timer *timers; // Active timers

0 commit comments

Comments
 (0)