mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-15 16:09:39 -05:00
Rename all activation
This commit is contained in:
parent
2083d37b11
commit
1af18e990d
21 changed files with 83 additions and 83 deletions
|
|
@ -17,8 +17,8 @@ const (
|
|||
PCRIndexClusterID = tpmutil.Handle(12)
|
||||
)
|
||||
|
||||
// MarkNodeAsInitialized marks a node as initialized by extending PCRs.
|
||||
func MarkNodeAsInitialized(openTPM TPMOpenFunc, ownerID, clusterID []byte) error {
|
||||
// MarkNodeAsBootstrapped marks a node as initialized by extending PCRs.
|
||||
func MarkNodeAsBootstrapped(openTPM TPMOpenFunc, ownerID, clusterID []byte) error {
|
||||
tpm, err := openTPM()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -33,8 +33,8 @@ func MarkNodeAsInitialized(openTPM TPMOpenFunc, ownerID, clusterID []byte) error
|
|||
return tpm2.PCREvent(tpm, PCRIndexClusterID, clusterID)
|
||||
}
|
||||
|
||||
// IsNodeInitialized checks if a node is already initialized by reading PCRs.
|
||||
func IsNodeInitialized(openTPM TPMOpenFunc) (bool, error) {
|
||||
// IsNodeBootstrapped checks if a node is already bootestrapped by reading PCRs.
|
||||
func IsNodeBootstrapped(openTPM TPMOpenFunc) (bool, error) {
|
||||
tpm, err := openTPM()
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue