diff --git a/include/os_endorsement.h b/include/os_endorsement.h index 6732a966..efcbea66 100644 --- a/include/os_endorsement.h +++ b/include/os_endorsement.h @@ -7,13 +7,6 @@ /* - ENDORSEMENT FEATURE - */ /* ----------------------------------------------------------------------- */ -typedef enum endorsement_revoke_id_e { - ENDORSEMENT_REVOKE_ID_ALL = 0, - ENDORSEMENT_REVOKE_ID_SLOT1 = 1, - ENDORSEMENT_REVOKE_ID_SLOT2 = 2, - ENDORSEMENT_REVOKE_ID_LAST = 3, -} endorsement_revoke_id_t; - #define ENDORSEMENT_MAX_ASN1_LENGTH (1 + 1 + 2 * (1 + 1 + 33)) SYSCALL unsigned int os_endorsement_get_code_hash(unsigned char *buffer PLENGTH(32)); @@ -40,7 +33,3 @@ SYSCALL unsigned int os_endorsement_key2_derive_sign_data(unsigned char *src PLE SYSCALL unsigned int os_endorsement_get_metadata(unsigned char index, unsigned char *buffer PLENGTH(8)); - -SYSCALL void os_endorsement_revoke_slot1(void); -SYSCALL void os_endorsement_revoke_slot2(void); -SYSCALL void os_endorsement_revoke_all(void); diff --git a/include/syscalls.h b/include/syscalls.h index bab67e65..c5a4ed50 100644 --- a/include/syscalls.h +++ b/include/syscalls.h @@ -205,7 +205,7 @@ #define SYSCALL_CERT_erase_ID 0x00000CA1 #endif // HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS -#define SYSCALL_os_bolos_endorsement_revoke_ID 0x010001ED +#define SYSCALL_ENDORSEMENT_revoke_slot_ID 0x010001ED #ifdef HAVE_AEM_PIN #define SYSCALL_os_aem_set_pin_ID 0x02000139 diff --git a/src/syscalls.c b/src/syscalls.c index 25d07f04..c9a6f0fa 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -1928,11 +1928,11 @@ void CERT_erase(void) } #endif // HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS -bolos_bool_t os_bolos_endorsement_revoke(uint8_t slot) +bolos_bool_t ENDORSEMENT_revoke_slot(uint8_t slot) { unsigned int parameters[1]; parameters[0] = (unsigned int) slot; - bolos_bool_t ret = SVC_Call(SYSCALL_os_bolos_endorsement_revoke_ID, parameters); + bolos_bool_t ret = SVC_Call(SYSCALL_ENDORSEMENT_revoke_slot_ID, parameters); return ret; }