Move code related to tpm2_checkquote into its own function (#639)
Move code related to tpm2_checkquote into its own function (#639)

Move the closure of file descriptors into the finally branch so that,
if something happens we don't end up with an open file descriptor.

Move much of the tpm2_checkquote related code from check_quote into its
own private function _tpm2_checkquote.

Shorten the code a bit by removing the files in a loop over the list
of files to remove.

Signed-off-by: Stefan Berger <5c96973112e540fb909b13997fcd087e5bfbee96@linux.ibm.com>

mit-ll/python-keylime,mit-ll/python-keylime,mit-ll/python-keylime,mit-ll/python-keylime