aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Wang <aliceywang@google.com>2023-02-03 13:13:54 +0000
committerAlice Wang <aliceywang@google.com>2023-02-03 15:40:46 +0000
commita2ab280bde9ce4526f96f858cd3ea66dd7f41876 (patch)
treea978b703f1a2f8c50b3ce54a8258ccc365196fb3
parentb321fa3d1f28559515b8c560cd0a00d8561a0a88 (diff)
downloadopen-dice-a2ab280bde9ce4526f96f858cd3ea66dd7f41876.tar.gz
[ANDROID] Convert DiceResult to enum
Test: atest diced_utils_test diced_sample_inputs_test \ diced_test diced_vendor_test Test: m pvmfw_img microdroid_manager && atest \ microdroid_manager_test Bug: 267575445 Change-Id: I7d9f1e30fc30f17929c279a0637200023007c1bc
-rw-r--r--Android.bp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b692a01..15e172f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -204,6 +204,7 @@ rust_defaults {
"--size_t-is-usize",
"--rustified-enum DiceConfigType",
"--rustified-enum DiceMode",
+ "--rustified-enum DiceResult",
"--allowlist-function=DiceDeriveCdiPrivateKeySeed",
"--allowlist-function=DiceDeriveCdiCertificateId",
@@ -278,6 +279,12 @@ rust_defaults {
"--blocklist-type=DiceInputValues",
"--raw-line",
"pub use open_dice_cbor_bindgen::DiceInputValues;",
+
+ // Prevent DiceResult from being generated a second time and
+ // import it instead from open_dice_cbor_bindgen.
+ "--blocklist-type=DiceResult",
+ "--raw-line",
+ "pub use open_dice_cbor_bindgen::DiceResult;",
],
}