]> xenbits.xensource.com Git - osstest/seabios.git/commit
tpm: Filter TPM commands in passthrough API
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 2 Feb 2016 18:09:19 +0000 (13:09 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 6 Feb 2016 01:49:15 +0000 (20:49 -0500)
commit7092de319399d0e2c60b1c5e681e7e923cbcd814
treefa6407733c99ce430d27d793e47d2a8f80e47ee3
parente444dce9361f079c77c1e25e61d3f5864de41e93
tpm: Filter TPM commands in passthrough API

Filter TPM commands in the passthrough API call by matching the
type of tag in the header with the version of the underlying TPM.
Return an error code if the tag indicates that the command is
for the wrong TPM version.

Fix a size check on the way.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/std/tcg.h
src/tcgbios.c