diff --git a/include/syscalls.h b/include/syscalls.h index c84a52a99..2820bcedf 100644 --- a/include/syscalls.h +++ b/include/syscalls.h @@ -194,11 +194,14 @@ #define SYSCALL_os_allow_protected_ram_ID 0x00000092 #define SYSCALL_os_deny_protected_ram_ID 0x00000093 -#ifdef HAVE_CUSTOM_CA_SETTINGS +#ifdef HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS #define SYSCALL_os_bolos_custom_ca_get_info_ID 0x01000CA0 #define SYSCALL_os_bolos_custom_ca_revoke_ID 0x00000CA1 +#endif // HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS + +#ifdef HAVE_ENDORSEMENT_DETAILS_IN_SETTINGS #define SYSCALL_os_bolos_endorsement_revoke_ID 0x010001ED -#endif // HAVE_CUSTOM_CA_SETTINGS +#endif #ifndef HAVE_BOLOS_NO_CUSTOMCA #define SYSCALL_os_customca_verify_ID 0x03000090 diff --git a/src/syscalls.c b/src/syscalls.c index 0d11970d6..07a663753 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -1556,7 +1556,7 @@ unsigned int os_deny_protected_flash( void ) { return (unsigned int) SVC_Call(SYSCALL_os_deny_protected_flash_ID, parameters); } -#ifdef HAVE_CUSTOM_CA_SETTINGS +#ifdef HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS bolos_bool_t os_bolos_custom_ca_get_info(customca_data_t *custom_ca) { unsigned int parameters[2]; parameters[0] = (unsigned int) custom_ca; @@ -1570,14 +1570,16 @@ void os_bolos_custom_ca_revoke(void) { SVC_Call(SYSCALL_os_bolos_custom_ca_revoke_ID, parameters); return; } +#endif //HAVE_CUSTOM_CA_DETAILS_IN_SETTINGS +#ifdef HAVE_ENDORSEMENT_DETAILS_IN_SETTINGS bolos_bool_t os_bolos_endorsement_revoke(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); return ret; } -#endif //HAVE_CUSTOM_CA_SETTINGS +#endif #ifdef HAVE_MCU_SERIAL_STORAGE unsigned int os_seph_serial ( unsigned char * serial, unsigned int maxlength ) {