Skip to content

Commit

Permalink
rc-decode: Add tables mapping TPM_RC codes to human readable strings.
Browse files Browse the repository at this point in the history
This includes functions to look them up as well as unit tests to ensure
the lookup functions work as expected.

Signed-off-by: Philip Tricca <[email protected]>
  • Loading branch information
flihp committed Jul 13, 2016
1 parent 312928f commit 7502e55
Show file tree
Hide file tree
Showing 5 changed files with 1,148 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ src/tpm2_loadexternal
src/tpm2_getmanufec
test-driver
test/tpm2-rc-decode_unit
test/tpm2-rc-entry_unit
8 changes: 7 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ sbin_PROGRAMS = src/tpm2_listpcrs \
src/tpm2_verifysignature \
src/tpm2_listpersistent

check_PROGRAMS = test/tpm2-rc-decode_unit
check_PROGRAMS = \
test/tpm2-rc-decode_unit \
test/tpm2-rc-entry_unit

COMMON_SRC = \
src/common.c \
Expand Down Expand Up @@ -131,3 +133,7 @@ src_tpm2_listpersistent_SOURCES = src/tpm2_listpersistent.cpp
test_tpm2_rc_decode_unit_CFLAGS = $(AM_CXXFLAGS) $(CMOCKA_CFLAGS)
test_tpm2_rc_decode_unit_LDADD = $(CMOCKA_LIBS)
test_tpm2_rc_decode_unit_SOURCES = test/tpm2-rc-decode_unit.c

test_tpm2_rc_entry_unit_CFLAGS = $(AM_CXXFLAGS) $(CMOCKA_CFLAGS)
test_tpm2_rc_entry_unit_LDADD = $(CMOCKA_LIBS)
test_tpm2_rc_entry_unit_SOURCES = src/rc-decode.c test/tpm2-rc-entry_unit.c
Loading

0 comments on commit 7502e55

Please sign in to comment.