工具/软件:
您好团队:
我在 SDK 中的"Customer_secure_code.c"找到了这个回滚保护代码。
我认为这是阻止回滚、但如果我要执行回滚、我是否只需要删除此函数?
是否还有其他事情要做?
#ifdef CSC_ENABLE_ROLLBACK_PROTECTION /* Check that the current version is at least as recent, if not, fail. * TODO: this is a preliminary version of rollback protection, more secure monotonic * variants will be explored in future releases of the Customer Secure Code, and * being integreated into MCUBoot. */ Rollback_status status; status = Rollback_compareCount(bootRsp.br_hdr->ih_ver.iv_major); if (status != ROLLBACK_OK) { mcubootFail(); } #endif
谢谢你