Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce CheckedClose #19

Merged
merged 2 commits into from
Jun 26, 2019
Merged

Introduce CheckedClose #19

merged 2 commits into from
Jun 26, 2019

Conversation

josephlr
Copy link
Member

@josephlr josephlr commented May 21, 2019

Based off of #15, but we make the helper public so that the cmd tests will also be able to use it.

Tests can now enforce error checking on tpm close.
Tests can now fail if they leak TPM Handles.

Introducing this actually found a bug in tpm2tools.TestHandles. This bug has been fixed to properly clear the handles.

We also fixed an issue in NewKey that was sometimes not clearing a key.

@josephlr josephlr requested a review from stevenrutherford May 21, 2019 20:14
Tests can now enforce error checking on tpm close.
Tests can now fail if they leak TPM Handles.

Introducting this actually found a bug in tpm2tools.TestHandles. This
bug has been fixed to properly clear the handles.
Copy link

@twitchy-jsonp twitchy-jsonp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, and TIL about testing.TB.

@josephlr josephlr merged commit f55a3d0 into master Jun 26, 2019
@josephlr josephlr deleted the checked branch July 2, 2019 20:18
josephlr pushed a commit to josephlr/go-tpm-tools that referenced this pull request Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants