constellation/internal/attestation/simulator/simulator_disabled.go

24 lines
487 B
Go
Raw Normal View History

//go:build disable_tpm_simulator
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
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")
}