mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 05:24:16 -04:00

find -name '*.go' -exec sed -i 's/SPDX-License-Identifier: AGPL-3.0-only/SPDX-License-Identifier: BUSL-1.1/' {} +
23 lines
482 B
Go
23 lines
482 B
Go
//go:build disable_tpm_simulator
|
|
|
|
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
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")
|
|
}
|