test: Move reusable code from tpm-crb-swtpm-test.c to tpm-util.c
commitb1e4b7c6b299b8aba1cef9a5ac7221d9eef4e949
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 30 May 2018 16:12:50 +0000 (30 12:12 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 6 Jun 2018 19:43:54 +0000 (6 15:43 -0400)
tree2413569c357cf209f04bece9522ec59fecaa4131
parentc1c2a435905ae76b159c573b0c0d6f095b45ebc6
test: Move reusable code from tpm-crb-swtpm-test.c to tpm-util.c

Move code we can reuse from tpm-crb-swtpm-test.c into tpm-util.c
and prefix functions with 'tpm_util_'.

Remove some unnecessary #include's.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
tests/tpm-crb-swtpm-test.c
tests/tpm-util.c
tests/tpm-util.h