-
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.
Fix incoming command validity checks in Set Credential. (#25264)
* When Set Credential happens with OperationType set to Modify and UserIndex set to null, that means we are modifying the credential for the programming user. In this case, UserStatus must be null and UserType must be ProgrammingUser, but we were not checking that. * When Set Credential happens with OperationType set to Modify and UserIndex not null, UserStatus and UserType must both be null. We were incorrectly allowing UserType to be ProgrammingUser in this case. * When Set Credential happens with OperationType set to Add and UserIndex not null, UserStatus and UserType must both be null. We were not checking for this at all. Fixes #25259
1 parent
9327317
commit 4733612
Showing
4 changed files
with
1,118 additions
and
504 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
589 changes: 378 additions & 211 deletions
589
zzz_generated/chip-tool/zap-generated/test/Commands.h
Large diffs are not rendered by default.
Oops, something went wrong.
828 changes: 556 additions & 272 deletions
828
zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h
Large diffs are not rendered by default.
Oops, something went wrong.