[PATCH v2 04/10] dpp-util: add dpp status and attribute types

James Prestwood
2021-12-14T18:12:19Z

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

---
src/dpp-util.h | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)

v2:
* Remove __DPP_STATUS_INVALID

diff --git a/src/dpp-util.h b/src/dpp-util.h
index ad360cdd..75bc33c1 100644
--- a/src/dpp-util.h
+++ b/src/dpp-util.h
@@ -34,6 +34,46 @@ struct dpp_uri_info {
char *host;
};

+enum dpp_frame_type {
+ DPP_FRAME_AUTHENTICATION_REQUEST = 0,
+ DPP_FRAME_AUTHENTICATION_RESPONSE = 1,
+ DPP_FRAME_AUTHENTICATION_CONFIRM = 2,
+ /* 3 - 4 reserved */
+ DPP_FRAME_PEER_DISCOVERY_REQUEST = 5,
+ DPP_FRAME_PEER_DISCOVERY_RESPONSE = 6,
+ DPP_FRAME_PKEX_VERSION1_XCHG_REQUST = 7,
+ DPP_FRAME_PKEX_XCHG_RESPONSE = 8,
+ DPP_FRAME_PKEX_COMMIT_REVEAL_REQUEST = 9,
+ DPP_FRAME_PKEX_COMMIT_REVEAP_RESPONSE = 10,
+ DPP_FRAME_CONFIGURATION_RESULT = 11,
+ DPP_FRAME_CONNECTION_STATUS_RESULT = 12,
+ DPP_FRAME_PRESENCE_ANNOUNCEMENT = 13,
+ DPP_FRAME_RECONF_ANNOUNCEMENT = 14,
+ DPP_FRAME_RECONF_AUTHENTICATION_REQUEST = 15,
+ DPP_FRAME_RECONF_AUTHENTICATION_RESPONSE = 16,
+ DPP_FRAME_RECONF_AUTHENTICATION_CONFIRM = 17,
+ DPP_FRAME_PKEX_XCHG_REQUEST = 18,
+ /* 19 - 255 reserved */
+};
+
+enum dpp_status {
+ DPP_STATUS_OK,
+ DPP_STATUS_NOT_COMPATIBLE,
+ DPP_STATUS_AUTH_FAILURE,
+ DPP_STATUS_BAD_CODE,
+ DPP_STATUS_BAD_GROUP,
+ DPP_STATUS_CONFIGURE_FAILURE,
+ DPP_STATUS_RESPONSE_PENDING,
+ DPP_STATUS_INVALID_CONNECTOR,
+ DPP_STATUS_NO_MATCH,
+ DPP_STATUS_CONFIG_REJECTED,
+ DPP_STATUS_NO_AP,
+ DPP_STATUS_CONFIGURE_PENDING,
+ DPP_STATUS_CSR_NEEDED,
+ DPP_STATUS_CSR_BAD,
+ DPP_STATUS_NEW_KEY_NEEDED,
+};
+
enum dpp_attribute_type {
/* 0000 - 0FFF reserved */
DPP_ATTR_STATUS = 0x1000,
--
2.31.1