-
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 PAA pathlen check to match spec (#27207)
* Fix PAA pathlen check Problem: - Since Matter 1.1, PAAs are allowed to omit the pathlen optional field to basic constraints extension. The code did not do that - Fixes #27194 Changes in this PR: - Update all CryptoPAL backends to fix the path length checks - Added unit tests covering valid and invalid basic constraints around path lengths. Testing done: - Unit tests pass on both mbedTLS and BoringSSL/OpenSSL CryptoPAL * Restyled by clang-format * Address review comments * Address review comments * Improve logic with help from @bzbarsky-apple * Restyled by clang-format --------- Co-authored-by: [email protected] <[email protected]> Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
Showing
10 changed files
with
268 additions
and
37 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.