mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-17 19:02:15 -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
|
@ -9,7 +9,6 @@
|
|||
#include <tkey/led.h>
|
||||
#include <tkey/lib.h>
|
||||
|
||||
#include "mgmt_app.h"
|
||||
#include "partition_table.h"
|
||||
#include "preload_app.h"
|
||||
#include "storage.h"
|
||||
|
@ -94,9 +93,6 @@ int32_t syscall_handler(uint32_t number, uint32_t arg1, uint32_t arg2,
|
|||
case TK1_SYSCALL_PRELOAD_GET_DIGSIG:
|
||||
return preload_get_digsig(&part_table, (uint8_t *)arg1, (uint8_t *)arg2, 1);
|
||||
|
||||
case TK1_SYSCALL_REG_MGMT:
|
||||
return mgmt_app_register(&part_table);
|
||||
|
||||
default:
|
||||
assert(1 == 2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue