mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-28 04:05:39 +00:00
wifi_prov: Exposed events for secure session establishment
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user