Skip to content

Commit

Permalink
attestation: fix to correctly allow reinitialisation in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDriver committed Nov 5, 2024
1 parent 3c3f24a commit 3bec0a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/attestation/attestation.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,12 @@ bool attestation_can_be_initialised(void)
}
#endif

#ifndef ALLOW_REINITIALISE
// Check efuse is both readable and writable
if (esp_efuse_get_key_dis_read(JADE_ATTEST_EFUSE) || esp_efuse_get_key_dis_write(JADE_ATTEST_EFUSE)) {
return false;
}
#endif

// Check efuses can still be made read-only
if (esp_efuse_read_field_bit(ESP_EFUSE_WR_DIS_RD_DIS)) {
Expand Down

0 comments on commit 3bec0a6

Please sign in to comment.