diff options
author | Alice Wang <aliceywang@google.com> | 2023-02-03 13:13:54 +0000 |
---|---|---|
committer | Alice Wang <aliceywang@google.com> | 2023-02-03 15:40:46 +0000 |
commit | a2ab280bde9ce4526f96f858cd3ea66dd7f41876 (patch) | |
tree | a978b703f1a2f8c50b3ce54a8258ccc365196fb3 | |
parent | b321fa3d1f28559515b8c560cd0a00d8561a0a88 (diff) | |
download | open-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.bp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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;", ], } |