[settings] set sensitive keys in platform settings initialization (#7496)

This commit makes the core pass the sensitive keys to the platform
settings initialization, so that the platform settings implementation
can know which keys are sensitive keys during the initializing and do
the migration when needed.
This commit is contained in:
jinran-google
2022-03-24 21:22:32 -07:00
committed by GitHub
parent 11e2df8efc
commit c9f23ccdda
10 changed files with 43 additions and 46 deletions
+3 -1
View File
@@ -441,9 +441,11 @@ otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength)
return OT_ERROR_NONE;
}
void otPlatSettingsInit(otInstance *aInstance)
void otPlatSettingsInit(otInstance *aInstance, const uint16_t *aSensitiveKeys, uint16_t aSensitiveKeysLength)
{
OT_UNUSED_VARIABLE(aInstance);
OT_UNUSED_VARIABLE(aSensitiveKeys);
OT_UNUSED_VARIABLE(aSensitiveKeysLength);
}
void otPlatSettingsDeinit(otInstance *aInstance)