mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-09 00:42:57 +00:00
When the user passes no command profile, then the default command profile of the (custom) profile will be used. If the user limits the StateFormatLevel by setting it in the profile, then all those commands from the default command profile that exceed the given StateFormatLevel have to be filtered-out to avoid a rejection of the command profile. Therefore, add a parameter to indicate that filtering of commands should be done and return a new string with the enabled command codes if any command was filtered-out. Add a test case that demonstrates the filtering-out of commands 0x199 and 0x19a (from the default command profile) due to the choice of StateFormatLevel '2'. Both command codes were enable in StateFormatLevel '3'. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| .. | ||
| corpus-execute-command | ||
| base64decode.c | ||
| base64decode.sh | ||
| common | ||
| freebl_sha1flattensize.c | ||
| fuzz-main.c | ||
| fuzz.cc | ||
| fuzz.sh | ||
| Makefile.am | ||
| nvram_offsets.c | ||
| object_size.c | ||
| oss-fuzz.sh | ||
| run-fuzzer.sh | ||
| tpm2_createprimary.c | ||
| tpm2_createprimary.sh | ||
| tpm2_cve-2023-1017.c | ||
| tpm2_cve-2023-1017.sh | ||
| tpm2_cve-2023-1018.c | ||
| tpm2_cve-2023-1018.sh | ||
| tpm2_pcr_read.c | ||
| tpm2_pcr_read.sh | ||
| tpm2_run_test.sh | ||
| tpm2_selftest.c | ||
| tpm2_selftest.sh | ||
| tpm2_setprofile.c | ||
| tpm2_setprofile.sh | ||