tpm: Implement tpm_sized_buffer_reset
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 11 Oct 2017 14:36:53 +0000 (10:36 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 22 Dec 2017 14:01:09 +0000 (09:01 -0500)
commitb86da7ddeda904b5fb1da03781328e7039536025
tree6f4f1ba0beb82d9d396876979668bab183101e79
parentf999d81bc7d9ff3dd2b699d0091824e6b9071d83
tpm: Implement tpm_sized_buffer_reset

Move the definition of TPMSizedBuffer out of tpm_tis.c into tpm_util.h
and implement tpm_sized_buffer_reset() for the following patches to use.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/tpm/tpm_tis.c
hw/tpm/tpm_util.c
hw/tpm/tpm_util.h