Skip to content

Commit

Permalink
Replace tpm2.OpenTPM() with tpmutil.OpenTPM()
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Jun 30, 2023
1 parent 961006c commit 8444410
Show file tree
Hide file tree
Showing 21 changed files with 2 additions and 9,255 deletions.
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/gce/tpm/gcetpmsigner/tpm_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import (
"fmt"
"io"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/tpmutil"
)

var tpmPath = "/dev/tpm0"

func openTPM() (io.ReadWriteCloser, error) {
rw, err := tpm2.OpenTPM(tpmPath)
rw, err := tpmutil.OpenTPM(tpmPath)
if err != nil {
return nil, fmt.Errorf("tpm2.OpenTPM(%q): %w", tpmPath, err)
}
Expand Down
87 changes: 0 additions & 87 deletions vendor/github.com/google/go-tpm/tpm2/audit.go

This file was deleted.

82 changes: 0 additions & 82 deletions vendor/github.com/google/go-tpm/tpm2/bitfield.go

This file was deleted.

Loading

0 comments on commit 8444410

Please sign in to comment.