From 1401344b3f9ed5c6b3e89102ac0a003e9ace216d Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 9 Mar 2022 13:20:56 -0500 Subject: [PATCH] Enable operational advertising (and CASE server) in Darwin framework. (#15951) Operational advertising and a CASE server is needed for at least two things: 1. Subscriptions, so the other side can establish a CASE session if there isn't one already. 2. OTA provider server implementation. Chances are, things using the framework will want at leasts one of these things, so we just enable unconditionally when bringing up the Matter stack. --- src/darwin/Framework/CHIP/CHIPDeviceController.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController.mm b/src/darwin/Framework/CHIP/CHIPDeviceController.mm index 4e420e8426e215..1a20c8c5eb7757 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController.mm +++ b/src/darwin/Framework/CHIP/CHIPDeviceController.mm @@ -183,6 +183,7 @@ - (BOOL)startup:(_Nullable id)storageDelegate if (_listenPort) { params.listenPort = _listenPort; } + params.enableServerInteractions = true; // Initialize device attestation verifier // TODO: Replace testingRootStore with a AttestationTrustStore that has the necessary official PAA roots available