-
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 APIs involved in the MTROperationalCredentialsDelegate. (#23893)
* Fix APIs involved in the MTROperationalCredentialsDelegate. * Rename CSRInfo to MTROperationalCSRInfo * Rename the properties of MTROperationalCSRInfo to match the spec more closely. * Rename AttestationInfo to MTRAttestationInfo. * Fix naming of the API on MTRDeviceController to follow conventions better, document the API more clearly, and have it return errors as needed. * Rename MTRNOCChainIssuer to MTROperationalCertificateIssuer * Change signature of the one method on MTROperationalCertificateIssuer to have better naming, take a controller, and name the completion block "completion". * Change the completion signature on MTROperationalCertificateIssuer to allow the external certificate issuer to return an error (e.g. if its device attestation checks failed). * Don't ask the external issuer for the IPK, since we should already have that anyway (from our controller init). * Allow the external issuer to return nil for the intermediate certificate, to indicate that there isn't one. * Make sure that all our access to mOnNOCCompletionCallback happens on the Matter queue, so we don't have thread races on that member. * Make all the dispatch we do as part of the credential-issuing process async. * Introduce backwards-compat shims for all the API changes for now. Fixes #23439 * Address review comment. * Address review comments.
- Loading branch information
1 parent
fb1d239
commit 6fc4beb
Showing
15 changed files
with
513 additions
and
204 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ | |
#else | ||
#define MTR_EXTERN extern MTR_EXPORT | ||
#endif | ||
|
||
typedef NSData * MTRTLVBytes; |
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.