Bind Serial Transports To Web Sessions

This commit is contained in:
2026-09-05 18:01:39 +02:00
parent 93eef0e676
commit a62a655ac1
18 changed files with 528 additions and 35 deletions
+7
View File
@@ -60,8 +60,15 @@ esp_err_t web_session_store_lookup(
* authorization. Every successful lookup/check revalidates the principal.
* No API result is a lease: recheck at later sensitive boundaries. */
esp_err_t web_session_store_is_current(web_session_id_t id, bool *current);
/* Also verifies that the transport's copied principal belongs to this ID. */
esp_err_t web_session_store_check_principal(web_session_id_t id,
const user_principal_t *principal,
bool *current);
void web_session_store_invalidate(web_session_id_t id);
void web_session_store_invalidate_user(uint32_t user_id);
/* Command notifications use names, including after account deletion. NULL/0
* invalidates all records without disabling the store. */
void web_session_store_invalidate_username(const uint8_t *username, size_t length);
void web_session_store_prune(void);
/* Counts only: never token/digest/CSRF/principal material. Expired records are