45 #if defined(LWS_WITH_SECURE_STREAMS_AUTH_SIGV4)
47 LWS_SYSBLOB_TYPE_EXT_AUTH1,
48 LWS_SYSBLOB_TYPE_EXT_AUTH2 = LWS_SYSBLOB_TYPE_EXT_AUTH1 + 2,
49 LWS_SYSBLOB_TYPE_EXT_AUTH3 = LWS_SYSBLOB_TYPE_EXT_AUTH2 + 2,
50 LWS_SYSBLOB_TYPE_EXT_AUTH4 = LWS_SYSBLOB_TYPE_EXT_AUTH3 + 2,
51 LWS_SYSBLOB_TYPE_EXT_AUTH4_1,
164 struct lws_attach_item;
168 const uint8_t *skid,
size_t skid_len,
169 const uint8_t *der,
size_t der_len);
176 struct lws_attach_item **get);
198 #if defined(LWS_WITH_NETWORK)
205 size_t skid_len,
void *got_opaque);
213 #if defined(LWS_WITH_OTA)
223 #if defined(LWS_WITH_SYS_STATE)
234 lws_system_get_state_manager(
struct lws_context *context);
240 #define LWSSYSGAUTH_HEX (1 << 0)
253 #if defined(LWS_WITH_SYS_STATE)
264 lws_system_context_from_system_mgr(lws_state_manager_t *mgr);
302 struct lws_attach_item **get);
326 #if defined(LWS_WITH_NETWORK)
327 typedef struct lws_dhcpc_ifstate {
333 } lws_dhcpc_ifstate_t;
335 typedef int (*dhcpc_cb_t)(
void *opaque, lws_dhcpc_ifstate_t *is);
350 lws_dhcpc_request(
struct lws_context *c,
const char *i,
int af, dhcpc_cb_t cb,
362 lws_dhcpc_remove(
struct lws_context *context,
const char *iface);
374 lws_dhcpc_status(
struct lws_context *context,
lws_sockaddr46 *sa46);
386 lws_system_cpd_start(
struct lws_context *context);
389 lws_system_cpd_start_defer(
struct lws_context *cx,
lws_usec_t defer_us);
414 lws_system_cpd_state_get(
struct lws_context *context);
LWS_EXTERN LWS_VISIBLE int lws_system_blob_get_single_ptr(lws_system_blob_t *b, const uint8_t **ptr)
LWS_EXTERN LWS_VISIBLE lws_system_blob_t * lws_system_get_blob(struct lws_context *context, lws_system_blob_item_t type, int idx)
@ LWS_SYSTATE_POLICY_VALID
@ LWS_SYSTATE_MODAL_UPDATING
@ LWS_SYSTATE_CONTEXT_DESTROYING
@ LWS_SYSTATE_CPD_PRE_TIME
@ LWS_SYSTATE_AWAITING_MODAL_UPDATING
@ LWS_SYSTATE_IFACE_COLDPLUG
@ LWS_SYSTATE_OPERATIONAL
@ LWS_SYSTATE_INITIALIZED
@ LWS_SYSTATE_ONE_TIME_UPDATES
@ LWS_SYSTATE_CONTEXT_CREATED
@ LWS_SYSTATE_POLICY_INVALID
@ LWS_SYSTATE_CPD_POST_TIME
LWS_EXTERN LWS_VISIBLE int __lws_system_attach(struct lws_context *context, int tsi, lws_attach_cb_t cb, lws_system_states_t state, void *opaque, struct lws_attach_item **get)
LWS_EXTERN LWS_VISIBLE void lws_system_blob_destroy(lws_system_blob_t *b)
struct lws_system_ops lws_system_ops_t
LWS_EXTERN LWS_VISIBLE const lws_system_ops_t * lws_system_get_ops(struct lws_context *context)
LWS_EXTERN LWS_VISIBLE int lws_system_blob_heap_append(lws_system_blob_t *b, const uint8_t *ptr, size_t len)
LWS_EXTERN LWS_VISIBLE void lws_system_blob_heap_empty(lws_system_blob_t *b)
LWS_EXTERN LWS_VISIBLE int lws_system_blob_get(lws_system_blob_t *b, uint8_t *ptr, size_t *len, size_t ofs)
struct lws_system_blob lws_system_blob_t
void(* lws_attach_cb_t)(struct lws_context *context, int tsi, void *opaque)
LWS_EXTERN LWS_VISIBLE size_t lws_system_blob_get_size(lws_system_blob_t *b)
LWS_EXTERN LWS_VISIBLE void lws_system_blob_direct_set(lws_system_blob_t *b, const uint8_t *ptr, size_t len)
LWS_EXTERN LWS_VISIBLE int lws_tls_jit_trust_got_cert_cb(struct lws_context *cx, void *got_opaque, const uint8_t *skid, size_t skid_len, const uint8_t *der, size_t der_len)
@ LWS_SYSBLOB_TYPE_NTP_SERVER
@ LWS_SYSBLOB_TYPE_MQTT_USERNAME
@ LWS_SYSBLOB_TYPE_MQTT_PASSWORD
@ LWS_SYSBLOB_TYPE_MQTT_CLIENT_ID
@ LWS_SYSBLOB_TYPE_CLIENT_CERT_DER
@ LWS_SYSBLOB_TYPE_DEVICE_SERIAL
@ LWS_SYSBLOB_TYPE_DEVICE_FW_VERSION
@ LWS_SYSBLOB_TYPE_DEVICE_TYPE
@ LWS_SYSBLOB_TYPE_CLIENT_KEY_DER
int(* attach)(struct lws_context *context, int tsi, lws_attach_cb_t cb, lws_system_states_t state, void *opaque, struct lws_attach_item **get)
int(* jit_trust_query)(struct lws_context *cx, const uint8_t *skid, size_t skid_len, void *got_opaque)
int(* captive_portal_detect_request)(struct lws_context *context)
int(* set_clock)(lws_usec_t us)