mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Remove obsolete tpmPath passed to OpenTPM
This commit is contained in:
parent
1f4fb3feda
commit
25b769d1e2
@ -12,17 +12,12 @@ import (
|
||||
"github.com/google/go-tpm/tpm2"
|
||||
)
|
||||
|
||||
const (
|
||||
// tpmPath is the path to the vTPM.
|
||||
tpmPath = "/dev/tpmrm0"
|
||||
)
|
||||
|
||||
// TPMOpenFunc opens a TPM device.
|
||||
type TPMOpenFunc func() (io.ReadWriteCloser, error)
|
||||
|
||||
// OpenVTPM opens the vTPM at `TPMPath`.
|
||||
func OpenVTPM() (io.ReadWriteCloser, error) {
|
||||
return tpm2.OpenTPM(tpmPath)
|
||||
return tpm2.OpenTPM()
|
||||
}
|
||||
|
||||
type nopTPM struct{}
|
||||
|
Loading…
Reference in New Issue
Block a user