1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-08 18:08:46 +00:00

fix(core): small secbool refactor for bootloader_ci

This commit is contained in:
Pavol Rusnak 2021-03-04 12:14:26 +01:00
parent 2dc094bd3e
commit b074404dcf
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -228,11 +228,10 @@ int main(void) {
vendor_header vhdr; vendor_header vhdr;
image_header hdr; image_header hdr;
secbool firmware_present;
// detect whether the devices contains a valid firmware // detect whether the devices contains a valid firmware
firmware_present = secbool firmware_present =
load_vendor_header_keys((const uint8_t *)FIRMWARE_START, &vhdr); load_vendor_header_keys((const uint8_t *)FIRMWARE_START, &vhdr);
if (sectrue == firmware_present) { if (sectrue == firmware_present) {
firmware_present = check_vendor_keys_lock(&vhdr); firmware_present = check_vendor_keys_lock(&vhdr);