cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_https_context Struct Reference

#include <https.h>

Public Attributes

SSL_CTX * ctx
 
void * ticket_key
 Shared session-ticket key material (forked workers inherit it)
 
bool http2_enabled
 
bool http3_enabled
 
pthread_rwlock_t ctx_lock
 

Detailed Description

Definition at line 16 of file https.h.

Member Data Documentation

◆ ctx

SSL_CTX * cwist_https_context::ctx

◆ ctx_lock

pthread_rwlock_t cwist_https_context::ctx_lock

Guards ctx against a concurrent cwist_https_reload_context() swap. Readers hold it only across the pointer load and SSL_new() (which takes the connection's own SSL_CTX reference); the reloader takes the write side to publish the new context.

Definition at line 35 of file https.h.

Referenced by cwist_https_destroy_context(), and cwist_https_reload_context().

◆ http2_enabled

bool cwist_https_context::http2_enabled

Definition at line 28 of file https.h.

Referenced by cwist_https_reload_context().

◆ http3_enabled

bool cwist_https_context::http3_enabled

Definition at line 29 of file https.h.

Referenced by cwist_https_reload_context().

◆ ticket_key

void * cwist_https_context::ticket_key

Shared session-ticket key material (forked workers inherit it)

Definition at line 18 of file https.h.

Referenced by cwist_https_destroy_context(), and cwist_https_reload_context().


The documentation for this struct was generated from the following files: