From 2144850cad2806630d770155325b1e66421094de Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 6 Sep 2022 22:43:01 -0400 Subject: [PATCH] Fix the naming of the "get the attestation challenge" Darwin function. (#22430) Fixes https://github.com/project-chip/connectedhomeip/issues/22296 --- src/darwin/Framework/CHIP/MTRDeviceController.h | 4 ++-- src/darwin/Framework/CHIP/MTRDeviceController.mm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.h b/src/darwin/Framework/CHIP/MTRDeviceController.h index f1ca55bb9001c4..188cd3787c5602 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController.h @@ -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. diff --git a/src/darwin/Framework/CHIP/MTRDeviceController.mm b/src/darwin/Framework/CHIP/MTRDeviceController.mm index df2d47403e1be6..9ff641a2847714 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController.mm +++ b/src/darwin/Framework/CHIP/MTRDeviceController.mm @@ -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);