Skip to content

Commit

Permalink
[Silabs] Fix SiWx917 compilation error due to attestation provider im…
Browse files Browse the repository at this point in the history
…plementation. (#28895)
  • Loading branch information
rcasallas-silabs authored and pull[bot] committed Oct 20, 2023
1 parent e005058 commit 1986199
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/platform/silabs/SilabsDeviceAttestationCreds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class DeviceAttestationCredsSilabs : public DeviceAttestationCredentialsProvider
if (SilabsConfig::ConfigValueExists(SilabsConfig::kConfigKey_Creds_KeyId))
{
// Provisioned DAC key
#ifdef SIWX_917
return CHIP_ERROR_NOT_IMPLEMENTED;
#else
uint32_t key_id = SILABS_CREDENTIALS_DAC_KEY_ID;
uint8_t signature[64] = { 0 };
size_t signature_size = sizeof(signature);
Expand All @@ -114,6 +117,7 @@ class DeviceAttestationCredsSilabs : public DeviceAttestationCredentialsProvider
VerifyOrReturnError(!err, CHIP_ERROR_INTERNAL);

return CopySpanToMutableSpan(ByteSpan(signature, signature_size), out_span);
#endif
}
else
{
Expand Down
1 change: 1 addition & 0 deletions third_party/silabs/SiWx917_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ template("siwx917_sdk") {

# Treat these includes as system includes, so warnings in them are not fatal.
_include_dirs = [
"${chip_root}",
"${chip_root}/examples/platform/silabs/SiWx917/SiWx917",
"${sdk_support_root}/matter/si91x/siwx917/BRD4325x/support/hal",
"${efr32_sdk_root}/platform/emdrv/nvm3/inc",
Expand Down

0 comments on commit 1986199

Please sign in to comment.