1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-25 17:09:44 +00:00

refactor(core): use separate implementation of secret.c for unix

[no changelog]
This commit is contained in:
Ondřej Vejpustek 2024-11-19 13:34:08 +01:00
parent b9f5e2b409
commit b5b43f45c7

View File

@ -1 +0,0 @@
../stm32f4/secret.c

View File

@ -0,0 +1,15 @@
#include <sec/secret.h>
#ifdef KERNEL_MODE
void secret_write_header(void) {}
secbool secret_optiga_present(void) { return secfalse; }
void secret_optiga_erase(void) {}
secbool secret_bootloader_locked(void) { return sectrue; }
void secret_prepare_fw(secbool allow_run_with_secret, secbool _trust_all) {}
#endif // KERNEL_MODE