8000 Update dependancies by josephlr · Pull Request #163 · google/go-tpm-tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update dependancies #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 15, 2022
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Check Protobuf Generation
run: go generate ./... && git diff -G'^[^/]' --exit-code
- name: Install Linux packages
run: sudo apt-get -y install libssl-dev libtspi-dev
run: sudo apt-get -y install libssl-dev
if: runner.os == 'Linux'
- name: Install Mac packages
run: brew install openssl
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Linux packages
run: sudo apt-get -y install libssl-dev libtspi-dev
run: sudo apt-get -y install libssl-dev
- name: Check for CGO Warnings (gcc)
run: CGO_CFLAGS=-Werror CC=gcc go build ./...
- name: Check for CGO Warnings (clang)
Expand Down
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@ go build ./cmd/gotpm

This project currently requires Go 1.16 or newer. Any update to the minimum required Go version will be released as a **minor** version update.

## `trousers` errors when building `server`

When building the `server` library (or tests) you may get an error that looks like:
```
fatal error: trousers/tss.h: No such file or directory
17 | // #include <trousers/tss.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
```
This is because the `server` library (indirectly) depends on the [Trousers `libtspi` library](http://trousers.sourceforge.net/). This is a _temporary_ dependency ([tracking issue](https://github.com/google/go-tpm-tools/issues/109)). To fix this error, install `libtspi` by running:
```bash
sudo apt install libtspi-dev
```

## `openssl` errors when building `simulator`

Similarly, when building the `simulator` library (or tests), you may get an error that looks like:
Expand Down
2 changes: 1 addition & 1 deletion client/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func newEKSession(rw io.ReadWriter) (session, error) {

func (e ekSession) Auth() (auth tpm2.AuthCommand, err error) {
nullAuth := tpm2.AuthCommand{Session: tpm2.HandlePasswordSession, Attributes: tpm2.AttrContinueSession}
if _, err = tpm2.PolicySecret(e.rw, tpm2.HandleEndorsement, nullAuth, e.session, nil, nil, nil, 0); err != nil {
if _, _, err = tpm2.PolicySecret(e.rw, tpm2.HandleEndorsement, nullAuth, e.session, nil, nil, nil, 0); err != nil {
return
}
return tpm2.AuthCommand{Session: e.session, Attributes: tpm2.AttrContinueSession}, nil
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.16

require (
github.com/google/certificate-transparency-go v1.1.2
github.com/google/go-attestation v0.4.0
github.com/google/go-cmp v0.5.6
github.com/google/go-tpm v0.3.2
github.com/spf13/cobra v1.1.3
github.com/google/go-attestation v0.4.3-0.20220215003148-83d71b1c538e
github.com/google/go-cmp v0.5.7
github.com/google/go-tpm v0.3.3
github.com/spf13/cobra v1.3.0
google.golang.org/protobuf v1.27.1
)
Loading
0