int method;
const char *record_id;
const char *tokens;
+ const char *support_tier;
} profile_case;
static int check_case(const profile_case *test) {
!info.tokens ||
strcmp(info.tokens, test->tokens) != 0 ||
!info.record_id ||
- strcmp(info.record_id, test->record_id) != 0
+ strcmp(info.record_id, test->record_id) != 0 ||
+ !info.support_tier ||
+ strcmp(info.support_tier, test->support_tier) != 0
) {
fprintf(stderr,
"FAIL: %s type=%u cdb=0x%03x gate=0x%08x "
- "blocks=%u method=%d tokens=%s record=%s\n",
+ "blocks=%u method=%d tokens=%s record=%s tier=%s\n",
test->label,
info.type,
info.static_cdb_base,
info.mem_blocks,
info.preferred_method,
info.tokens ? info.tokens : "(null)",
- info.record_id ? info.record_id : "(null)");
+ info.record_id ? info.record_id : "(null)",
+ info.support_tier ? info.support_tier : "(null)");
return 0;
}
"HL-DT-ST", "CDRW/DVD GCC4243", "A102",
true, 3, 0x880U, 0x9003731dU, 5, 8,
"hybrid_identity_v3:stage5b_0439",
- "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+ "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+ "known_supported_profile_hardening_live_validated"
},
{
"A102 canonical alias",
"HL-DT-ST", "GCC-4243N", "a102",
true, 3, 0x880U, 0x9003731dU, 5, 8,
"hybrid_identity_v3:stage5b_0439",
- "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+ "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+ "known_supported_profile_hardening_live_validated"
},
{
"B101 live inquiry alias",
"HL-DT-ST", "CDRW/DVD GCC4244", "B101",
true, 3, 0x894U, 0x900386d2U, 5, 8,
"hybrid_identity_v3:stage5b_0426",
- "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+ "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+ "known_supported_profile_hardening_live_validated"
},
{
"B101 canonical alias",
"HL-DT-ST", "GCC-4244N", "b101",
true, 3, 0x894U, 0x900386d2U, 5, 8,
"hybrid_identity_v3:stage5b_0426",
- "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+ "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+ "known_supported_profile_hardening_live_validated"
},
{
"A101 existing canonical profile",
"HL-DT-ST", "GCC-4241N", "A101",
true, 21, 0x85cU, 0x900356b7U, 1, 8,
"stage5b_0064",
- "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX"
+ "HL;IT;RPC;RPC_JCS3;RPC_SUFFIX",
+ "error_prone_supported_profile_hardening"
},
{
"GDR-8050L 0012 hybrid operating identity",
"HL-DT-ST", "DVD-ROM GDR8050L", "0012",
true, 44, 0x5d0U, 0x90026160U, 1, 8,
"hybrid_identity_v3:gdr8050l_0012",
- "HL;IT;RPC;RPC_JD4_SPACE;RPC_SUFFIX"
+ "HL;IT;RPC;RPC_JD4_SPACE;RPC_SUFFIX",
+ "hybrid_crossflash_modified_firmware_only"
},
{
"GDR-8050L 0L23 has no false exact metadata",
"HL-DT-ST", "DVD-ROM GDR8050L", "0L23",
- false, 44, 0, 0, 0, 0, NULL, NULL
+ false, 44, 0, 0, 0, 0, NULL, NULL, NULL
},
{
"A103 conservative Type3 fallback",
"HL-DT-ST", "CDRW/DVD GCC4243", "A103",
- false, 3, 0, 0, 0, 0, NULL, NULL
+ false, 3, 0, 0, 0, 0, NULL, NULL, NULL
},
{
"B102 conservative Type3 fallback",
"HL-DT-ST", "CDRW/DVD GCC4244", "B102",
- false, 3, 0, 0, 0, 0, NULL, NULL
+ false, 3, 0, 0, 0, 0, NULL, NULL, NULL
},
{
"non-HL vendor rejected",
"NOT-HL", "CDRW/DVD GCC4243", "A102",
- false, 0, 0, 0, 0, 0, NULL, NULL
+ false, 0, 0, 0, 0, 0, NULL, NULL, NULL
}
};
size_t i;