8000 Godeps: bump go-tspi by iaguis · Pull Request #2060 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
8000

Godeps: bump go-tspi #2060

Merged
merged 1 commit into from
Feb 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
6 changes: 3 additions & 3 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion pkg/tpm/tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
package tpm

import (
"time"

"github.com/coreos/go-tspi/tpmclient"
)

// we're connecting to localhost, so 10ms is a reasonable timeout value
const timeout = 10 * time.Millisecond

// Extend extends the TPM log with the provided string. Returns any error.
func Extend(description string) error {
connection := tpmclient.New("localhost:12041")
connection := tpmclient.New("localhost:12041", timeout)
err := connection.Extend(15, 0x1000, nil, description)
return err
}
0