wifi_prov: Exposed events for secure session establishment

This commit is contained in:
Laukik Hase
2023-05-18 13:25:08 +05:30
parent d3c99ed3b8
commit fcb98e5851
4 changed files with 60 additions and 0 deletions

View File

@@ -7,11 +7,25 @@
#pragma once
#include <esp_err.h>
#include "esp_event.h"
#ifdef __cplusplus
extern "C" {
#endif
ESP_EVENT_DECLARE_BASE(PROTOCOMM_SECURITY_SESSION_EVENT);
/**
* @brief Events generated by the protocomm security layer
*
* These events are generated while establishing secured session.
*/
typedef enum {
PROTOCOMM_SECURITY_SESSION_SETUP_OK, /**< Secured session established successfully */
PROTOCOMM_SECURITY_SESSION_INVALID_SECURITY_PARAMS, /**< Received invalid (NULL) security parameters (username / client public-key) */
PROTOCOMM_SECURITY_SESSION_CREDENTIALS_MISMATCH, /**< Received incorrect credentials (username / PoP) */
} protocomm_security_session_event_t;
/**
* @brief Protocomm Security 1 parameters: Proof Of Possession
*/