mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
3467df6b69
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
19 lines
436 B
Go
19 lines
436 B
Go
//go:build disable_tpm_simulator
|
|
// +build disable_tpm_simulator
|
|
|
|
package simulator
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// OpenSimulatedTPM returns a simulated TPM device.
|
|
func OpenSimulatedTPM() (io.ReadWriteCloser, error) {
|
|
panic("simulator not enabled")
|
|
}
|
|
|
|
// NewSimulatedTPMOpenFunc returns a TPMOpenFunc that opens a simulated TPM.
|
|
func NewSimulatedTPMOpenFunc() (func() (io.ReadWriteCloser, error), io.Closer) {
|
|
panic("simulator not enabled")
|
|
}
|