File tree 2 files changed +9
-3
lines changed
examples/platform/silabs/provision
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 27
27
#include < platform/CHIPDeviceConfig.h>
28
28
#include < platform/silabs/MigrationManager.h>
29
29
#include < platform/silabs/SilabsConfig.h>
30
- #include < platform/silabs/multi-ota/OtaTlvEncryptionKey.h>
31
30
#include < silabs_creds.h>
31
+ #ifdef OTA_ENCRYPTION_ENABLE
32
+ #include < platform/silabs/multi-ota/OtaTlvEncryptionKey.h>
33
+ #endif // OTA_ENCRYPTION_ENABLE
32
34
#ifdef SLI_SI91X_MCU_INTERFACE
33
35
#include < sl_si91x_common_flash_intf.h>
34
36
#else
@@ -660,7 +662,7 @@ CHIP_ERROR Storage::SetOtaTlvEncryptionKey(const ByteSpan & value)
660
662
ReturnErrorOnFailure (key.Import (value.data (), value.size ()));
661
663
return SilabsConfig::WriteConfigValue (SilabsConfig::kOtaTlvEncryption_KeyId , key.GetId ());
662
664
}
663
- #endif
665
+ #endif // OTA_ENCRYPTION_ENABLE
664
666
665
667
/* *
666
668
* @brief Reads the test event trigger key from NVM. If the key isn't present, returns default value if defined.
Original file line number Diff line number Diff line change 25
25
#include < platform/CHIPDeviceConfig.h>
26
26
#include < platform/silabs/SilabsConfig.h>
27
27
#include < string.h>
28
+ #ifdef OTA_ENCRYPTION_ENABLE
29
+ #include < platform/silabs/multi-ota/OtaTlvEncryptionKey.h>
30
+ #endif // OTA_ENCRYPTION_ENABLE
31
+
28
32
29
33
using namespace chip ::Credentials;
30
34
@@ -708,7 +712,7 @@ CHIP_ERROR Storage::SetOtaTlvEncryptionKey(const ByteSpan & value)
708
712
{
709
713
return CHIP_ERROR_NOT_IMPLEMENTED;
710
714
}
711
- #endif
715
+ #endif // OTA_ENCRYPTION_ENABLE
712
716
713
717
CHIP_ERROR Storage::GetTestEventTriggerKey (MutableByteSpan & keySpan)
714
718
{
You can’t perform that action at this time.
0 commit comments