From 3af4fa9acc224f9805080a51903176193977465d Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 8 Aug 2023 18:47:08 -0400 Subject: [PATCH] Add a way ask a DeviceCommissioner for its DeviceAttestationVerifier. (#28587) --- src/controller/CHIPDeviceController.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/CHIPDeviceController.h b/src/controller/CHIPDeviceController.h index 2d85fdce3068e4..b328ef68d9a47c 100644 --- a/src/controller/CHIPDeviceController.h +++ b/src/controller/CHIPDeviceController.h @@ -702,6 +702,8 @@ class DLL_EXPORT DeviceCommissioner : public DeviceController, mDeviceAttestationVerifier = deviceAttestationVerifier; } + Credentials::DeviceAttestationVerifier * GetDeviceAttestationVerifier() const { return mDeviceAttestationVerifier; } + Optional GetCommissioningParameters() { return mDefaultCommissioner == nullptr ? NullOptional : MakeOptional(mDefaultCommissioner->GetCommissioningParameters());