From 3113586ba2f34468122601b3423dbf46e80e2102 Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Tue, 7 Jan 2025 16:40:44 -0500 Subject: [PATCH] refactor: move SEResponse to public repo (#41) --- messages/private_stub/sec_priv.proto | 2 -- messages/sec.proto | 9 ++++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/messages/private_stub/sec_priv.proto b/messages/private_stub/sec_priv.proto index dd11591..838cce6 100644 --- a/messages/private_stub/sec_priv.proto +++ b/messages/private_stub/sec_priv.proto @@ -5,8 +5,6 @@ package orb.mcu.sec.private; // incomplete, private definitions // to be overwritten by actual definitions -message SEResponse {} - message Tamper {} message TamperStates {} diff --git a/messages/sec.proto b/messages/sec.proto index f3af707..2464f2d 100644 --- a/messages/sec.proto +++ b/messages/sec.proto @@ -37,7 +37,7 @@ message SecToJetson orb.mcu.Ack ack = 1; orb.mcu.Versions versions = 2; orb.mcu.Log log = 3; - orb.mcu.sec.private.SEResponse se_response = 4; + orb.mcu.sec.SEResponse se_response = 4; orb.mcu.sec.private.Tamper tampered = 5; orb.mcu.BatteryStatus battery_status = 7; orb.mcu.FatalError fatal_error = 8; @@ -61,3 +61,10 @@ message SERequest uint32 rx_length = 3; RequestType request_type = 4; } + +message SEResponse +{ + uint32 id = 1; + int32 error_code = 2; + bytes data = 3; +}