Skip to content

Conversation

@maraino
Copy link
Contributor

@maraino maraino commented Oct 30, 2025

This commits adds a new constructor to tpmkms that allows to initializes the TPMKMS with a given *tpm.TPM. instance.

Note that most of the file changes are because the new version of golangci-lint complains with legacy build tags, e.g. // +build windows

This commits adds a new method that allows to get the TPM instance used
by the tpmkms.
@maraino maraino requested a review from hslatman October 30, 2025 23:47
@maraino maraino marked this pull request as draft October 31, 2025 00:35
@maraino maraino marked this pull request as ready for review October 31, 2025 02:46
This commit adds tpmkks.NewWithTPM that initializes the tpmkms with
a given *tpm.TPM.
@maraino maraino force-pushed the mariano/tpm-instance branch from 032419e to 9a00bef Compare October 31, 2025 02:55
@hslatman hslatman changed the title Get TPM instance of the tpmkms Add support for providing *tpm.TPM instance when creating a TPMKMS instance Oct 31, 2025
@hslatman hslatman changed the title Add support for providing *tpm.TPM instance when creating a TPMKMS instance Add support for providing *tpm.TPM instance when creating a TPMKMS Oct 31, 2025
This commit removes the legacy build tags because the latest version of
golangci-lint show errors.
Copy link
Member

@hslatman hslatman left a comment

Choose a reason for hiding this comment

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

Looking pretty nice overall! Looking forward to try it 😄

@maraino maraino requested a review from hslatman November 3, 2025 19:37
@maraino maraino merged commit ed51854 into master Nov 4, 2025
12 of 13 checks passed
@maraino maraino deleted the mariano/tpm-instance branch November 4, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants