From ab5962f4a5efbc47f8489441425e42c8ca3b5f0e Mon Sep 17 00:00:00 2001 From: Arthur Bonnaudet Date: Fri, 29 Nov 2024 17:16:36 +0100 Subject: [PATCH] Refactoring in endorsement revoke syscalls --- src/syscalls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/syscalls.c b/src/syscalls.c index 0fe2886d..c8c091c9 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -1930,13 +1930,15 @@ void CERT_erase(void) } #endif // HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS -bolos_bool_t ENDORSEMENT_revoke_slot(ENDORSEMENT_revoke_id_t revoke_id) +#ifdef HAVE_BOLOS +bolos_err_t ENDORSEMENT_revoke_slot(ENDORSEMENT_revoke_id_t revoke_id) { unsigned int parameters[1]; parameters[0] = (unsigned int) revoke_id; bolos_bool_t ret = SVC_Call(SYSCALL_ENDORSEMENT_revoke_slot_ID, parameters); return ret; } +#endif #ifdef HAVE_MCU_SERIAL_STORAGE unsigned int os_seph_serial(unsigned char *serial, unsigned int maxlength)