feature/tpm: implement key.HardwareAttestationKey (#17256)
Updates #15830 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
"tailscale.com/ipn/store"
|
||||
"tailscale.com/paths"
|
||||
"tailscale.com/tailcfg"
|
||||
"tailscale.com/types/key"
|
||||
"tailscale.com/types/logger"
|
||||
)
|
||||
|
||||
@@ -39,6 +40,10 @@ func init() {
|
||||
hi.TPM = infoOnce()
|
||||
})
|
||||
store.Register(store.TPMPrefix, newStore)
|
||||
key.RegisterHardwareAttestationKeyFns(
|
||||
func() key.HardwareAttestationKey { return &attestationKey{} },
|
||||
func() (key.HardwareAttestationKey, error) { return newAttestationKey() },
|
||||
)
|
||||
}
|
||||
|
||||
func info() *tailcfg.TPMInfo {
|
||||
|
||||
Reference in New Issue
Block a user