From 8c0b61121a9252df54d0cf9db10b5e544db2ae57 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Fri, 22 Mar 2024 15:34:56 +0000 Subject: [PATCH] Re-enable applet version rollback check (#226) --- trusted_os/rpc.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trusted_os/rpc.go b/trusted_os/rpc.go index a2d2676..fe00c7f 100644 --- a/trusted_os/rpc.go +++ b/trusted_os/rpc.go @@ -45,8 +45,10 @@ type RPC struct { // Version receives the Trusted Applet version for verification. func (r *RPC) Version(version string, _ *bool) error { - // TODO: disable for now - return nil + if !imx6ul.Native || !imx6ul.SNVS.Available() { + log.Print("SM skipping applet version verification") + return nil + } log.Printf("SM applet version verification (%s)", version)