]> git.proxmox.com Git - swtpm.git/commit - tests/Makefile.am
swtpm: Implemented support for PTM_SET_BUFFERSIZE command
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Sat, 4 Nov 2017 23:33:13 +0000 (19:33 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Sun, 5 Nov 2017 19:53:00 +0000 (14:53 -0500)
commit688c8e24009298b257f5cf5ffa9cf74b5d7d5f7e
tree8e6317304d28a87eedbee4fb768fdc9c23cca8a1
parentca7f7a4006e1005e3f014ed5187a4369dfcba714
swtpm: Implemented support for PTM_SET_BUFFERSIZE command

Implement a command for setting and querying the buffer size the
TPM implementation (libtpms) is using. The setting of the
buffersize allows to reduce the size of the buffer to a size
that the interface can support so that these two sizes match
and the TPM will not produce larger responses than what the
interface can support.

Extend swtpm_ioctl with an option to set the buffersize.

Adapt the existing tests to reflect the newly supported command.
Implement a new test for getting/setting of the buffer size.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
12 files changed:
include/swtpm/tpm_ioctl.h
man/man3/swtpm_ioctls.3
man/man3/swtpm_ioctls.pod
src/swtpm/ctrlchannel.c
src/swtpm/cuse_tpm.c
src/swtpm_ioctl/tpm_ioctl.c
tests/Makefile.am
tests/_test_setbuffersize [new file with mode: 0755]
tests/test_clientfds.py
tests/test_ctrlchannel
tests/test_ctrlchannel4
tests/test_setbuffersize [new file with mode: 0755]