Better API for creating a DICE config descriptor
Instead of listing all the possible parameters, put them in a struct
(as the C API does).
This means callers only have to list the ones they use, and a new
parameter doesn't require all clients to change.
Bug: 291241882
Test: atest -p in diced
Change-Id: I7c4925385e30ba9fcec0dc188747a23d7df614d7
diff --git a/diced/open_dice/Android.bp b/diced/open_dice/Android.bp
index 3d904ea..b87be7f 100644
--- a/diced/open_dice/Android.bp
+++ b/diced/open_dice/Android.bp
@@ -185,9 +185,7 @@
"--allowlist-function=DiceAndroidHandoverParse",
// We also need some constants in addition to the functions.
- "--allowlist-var=DICE_ANDROID_CONFIG_COMPONENT_NAME",
- "--allowlist-var=DICE_ANDROID_CONFIG_COMPONENT_VERSION",
- "--allowlist-var=DICE_ANDROID_CONFIG_RESETTABLE",
+ "--allowlist-var=DICE_ANDROID_CONFIG_.*",
// Prevent DiceInputValues from being generated a second time and
// import it instead from open_dice_cbor_bindgen.