We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b088bd4 + fb9ae2f commit 813c844Copy full SHA for 813c844
components/TARGET_PSA/services/platform/COMPONENT_PSA_SRV_EMUL/platform_emul.c
@@ -21,7 +21,12 @@
21
uint32_t psa_security_lifecycle_state(void)
22
{
23
uint32_t lc_state = 0;
24
- return psa_platfrom_lifecycle_get_impl(&lc_state);
+ psa_status_t status = PSA_LIFECYCLE_SUCCESS;
25
+ status = psa_platfrom_lifecycle_get_impl(&lc_state);
26
+ if (status != PSA_LIFECYCLE_SUCCESS) {
27
+ lc_state = PSA_LIFECYCLE_UNKNOWN;
28
+ }
29
+ return lc_state;
30
}
31
32
psa_status_t mbed_psa_reboot_and_request_new_security_state(uint32_t new_state)
0 commit comments