e85c65bf85bc6251895cdfe6bb6213d125cc2366 |
|
10-Jul-2015 |
ChromeOS Developer <bohr@chromium.org> |
Changes to allow for libtpm2 compilation with marshaling code. - New files tpm_generated.c and tpm_generated.h files add functions to marshal and unmarshal TPM structures. - New file marshal_test.c contains unit tests for tpm_generated.c. - Added missing types to TPM_Types.h and renamed structure fields to match the spec. - Made changes to scraped *.c files to match renaming changes made to TPM_Types.h. - Added tpm_generated.c to Makefile. TEST=$ sudo emerge tpm2 builds libtpm2 with tpm_generated.c $ gcc marshal_test.c -ltpm2 -lssl -lcrypto marshal-test builds test exutable $ ./marshal-test passes all test cases BUG=chromium:501639 Change-Id: Iea20a9d77f236bb5aee55a8b86dc39b58e340912 Reviewed-on: https://chromium-review.googlesource.com/282042 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org> Commit-Queue: Jocelyn Bohr <bohr@chromium.org> Tested-by: Jocelyn Bohr <bohr@chromium.org>
/external/tpm2/PolicySecret.c
|
99e88835efdddfb4e01ebfe07f668379d64dda64 |
|
05-Jun-2015 |
Vadim Bendebury <vbendeb@chromium.org> |
build: fix {INT}_TO_ARRAY macros Macros used to convert different size integers into arrays return integers themselves using the comma operator. GCC throws a 'value computed but not ussed' in this case, which can be pacified by appending (void) in front of the macro invocation. For some reason different invocations trigger GCC warnings inside and outside chroot. But the bottom line is that the code does not used the values returned by the macros, so a better fix is to change the macros not to return the values. BUG=none TEST=make succeeds for x86 both inside and outside chroot now. Change-Id: I8105b8051aee2cb72409dd70c5e5cfa4f841b549 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/275394 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
/external/tpm2/PolicySecret.c
|
c5193c5b37cc5667d110d65ae8b03d5b96fc3c71 |
|
02-Jun-2015 |
Vadim Bendebury <vbendeb@chromium.org> |
Changes to allow compilation of PolicySecret.c BUG=none TEST=compilation succeeds: cc -Wall -Werror -c -o /dev/null PolicySecret.c Change-Id: I99af767c2d31d25a16c2814cb660b3235de6cf30 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274647 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
/external/tpm2/PolicySecret.c
|
5679752bf24c21135884e987c4077e2f71848971 |
|
20-May-2015 |
Vadim Bendebury <vbendeb@chromium.org> |
Initial commit to seed TPM2.0 source code directory LICENSE file text copied from TCG library specification. README describes the procedure used to extract source code from parts 3 and 4 of the specification. The python scripts and part{34}.txt files will be removed in the following commits. Change-Id: Ie281e6e988481831f33483053455e8aff8f3f75f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
/external/tpm2/PolicySecret.c
|