Skip to content

Commit

Permalink
Update PASE state machine to match the latest specifications
Browse files Browse the repository at this point in the history
* Use TLV formatted messages
* Use StatusReport to indicate errors and completion
  • Loading branch information
pan-apple committed Sep 9, 2021
1 parent a0106ab commit 2f91737
Show file tree
Hide file tree
Showing 4 changed files with 331 additions and 224 deletions.
7 changes: 6 additions & 1 deletion src/protocols/secure_channel/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ enum class MsgType : uint8_t
};

// Placeholder value for the ProtocolCode field when the GeneralCode is Success or Continue.
constexpr uint16_t kProtocolCodeSuccess = 0x0000;
constexpr uint16_t kProtocolCodeSuccess = 0x0000;
constexpr uint16_t kProtocolCodeNoSharedRoot = 0x0001;
constexpr uint16_t kProtocolCodeInvalidParam = 0x0002;
constexpr uint16_t kProtocolCodeCloseSession = 0x0003;
constexpr uint16_t kProtocolCodeBusy = 0x0004;
constexpr uint16_t kProtocolCodeSessionNotFound = 0x0005;

// Placeholder value for the ProtocolCode field when there is no additional protocol-specific code to provide more information.
constexpr uint16_t kProtocolCodeGeneralFailure = 0xFFFF;
Expand Down
Loading

0 comments on commit 2f91737

Please sign in to comment.