-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement updated spec rules related to CATs (#20776)
* Implement updated spec rules related to CATs - CAT identifiers could previously collide, which made their use ambiguous for access conntrol - CAT tag class did not enforce strongly that all CATs are at the front and this is not required for correctness - CAT identifiers could be value 0 before Based on https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/5437 we need to fix this. Fixes #20746 This PR: - Checks CATs are valid when adding/updating NOCs - Adds an `AreValid()` method to CATValues to ensure correctness Testing done: - Added unit tests for all new methods - Cert tests still pass * Apply review comment from @mstandstedt * Fix Darwin tests. * Restyle * Update access control to use CASEAuthTag methods * Rename variables to clarify logic * Fix another use of direct masks Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
Showing
6 changed files
with
206 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.