Skip to content

Commit

Permalink
add ego_mock_eclient tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasten committed Mar 5, 2024
1 parent 673f408 commit 3604005
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eclient/ert.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//go:build !ego_mock_eclient

package eclient

// #cgo LDFLAGS: -loehostverify -lcrypto -ldl
Expand Down
19 changes: 19 additions & 0 deletions eclient/mock.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright (c) Edgeless Systems GmbH.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//go:build ego_mock_eclient

package eclient

import (
"errors"

"github.com/edgelesssys/ego/internal/attestation"
)

func verifyRemoteReport([]byte) (attestation.Report, error) {
return attestation.Report{}, errors.New("built with ego_mock_eclient tag, no attestation support available")
}

0 comments on commit 3604005

Please sign in to comment.