Skip to content

Commit

Permalink
Fix the naming of the "get the attestation challenge" Darwin function. (
Browse files Browse the repository at this point in the history
#22430)

Fixes #22296
  • Loading branch information
bzbarsky-apple authored Sep 7, 2022
1 parent e06d1bc commit 33f6a91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDeviceController.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ typedef void (^MTRDeviceConnectionCallback)(MTRBaseDevice * _Nullable device, NS
/**
* Return the attestation challenge for the secure session of the device being commissioned.
*
* Attempts to retrieve the generated attestation challenge from a commissionee with the given Device ID.
* Attempts to retrieve the attestation challenge for a commissionee with the given Device ID.
* Returns nil if given Device ID does not match an active commissionee, or if a Secure Session is not availale.
*/
- (nullable NSData *)generateAttestationChallengeForDeviceId:(uint64_t)deviceId;
- (nullable NSData *)fetchAttestationChallengeForDeviceId:(uint64_t)deviceId;

/**
* Compute a PASE verifier and passcode ID for the desired setup pincode.
Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDeviceController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ - (nullable NSData *)computePaseVerifier:(uint32_t)setupPincode iterations:(uint
return result;
}

- (nullable NSData *)generateAttestationChallengeForDeviceId:(uint64_t)deviceId
- (nullable NSData *)fetchAttestationChallengeForDeviceId:(uint64_t)deviceId
{
VerifyOrReturnValue([self checkIsRunning], nil);

Expand Down

0 comments on commit 33f6a91

Please sign in to comment.