mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-09-19 20:34:37 -04:00
fw: Remove TK1_SYSCALL_REG_MGMT
Validate preload API access using the fixed, pre-calculated app digest instead of letting an app register itself as a management app.
This commit is contained in:
parent
715d792d86
commit
b837eec9e6
8 changed files with 30 additions and 121 deletions
|
@ -21,11 +21,6 @@ int install_app(uint8_t secret_key[64])
|
|||
uint8_t app_signature[64];
|
||||
size_t app_size = sizeof(blink);
|
||||
|
||||
if (syscall(TK1_SYSCALL_REG_MGMT, 0, 0, 0) < 0) {
|
||||
puts(IO_CDC, "couldn't register as mgmt\r\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (syscall(TK1_SYSCALL_PRELOAD_DELETE, 0, 0, 0) < 0) {
|
||||
puts(IO_CDC, "couldn't delete preloaded app\r\n");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue