commit | 5aac5855889e6b7785c34026d00504be2448ad1b | [log] [tgz] |
---|---|---|
author | Jocelyn Bohr <bohr@chromium.org> | Thu Aug 20 16:05:05 2015 -0700 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Fri Aug 21 16:21:35 2015 +0000 |
tree | 2b8a283eeee846063ba24d7979cff814635ff5a0 | |
parent | c9eeb60f4b0d78f844103c9d8747ab2145d72c5b [diff] |
Call marshal functions with correct buffer size. CL:289647 removed instances of calling marshal functions with size as NULL. This is correct, but the buffer size was not computed correctly in some instances, causing data to not be marshaled. TEST=build tpm2, tpm2-simulator, and trunks, and deploy to DUT On a DUT: $ sudo tpm2-simulator // in one terminal $ sudo trunksd --simulator // in another terminal $ trunks_client --clear // in a third terminal $ trunks_client --own --owner_password="" $ trunks_client --regression_test Trunks is able to take ownership of the software TPM, as well as pass a few regression tests. Prior to this change, trunks failed on taking ownership. BUG=none Change-Id: I46e3a5a30307c832405cc7f91623f87cbece0cb9 Reviewed-on: https://chromium-review.googlesource.com/294883 Tested-by: Jocelyn Bohr <bohr@chromium.org> Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org> Commit-Queue: Jocelyn Bohr <bohr@chromium.org>