Skip to content

Commit

Permalink
unexport attestWithClient
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieqliu committed Jan 21, 2025
1 parent d4394e8 commit 40e9ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launcher/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ func (a *agent) MeasureEvent(event cel.Content) error {
// When possible, Attest uses the technology-specific attestation root-of-trust
// (TDX RTMR), otherwise falls back to the vTPM.
func (a *agent) Attest(ctx context.Context, opts AttestAgentOpts) ([]byte, error) {
return a.AttestWithClient(ctx, a.clients.GCA, opts)
return a.attestWithClient(ctx, a.clients.GCA, opts)
}

func (a *agent) AttestWithClient(ctx context.Context, client verifier.Client, opts AttestAgentOpts) ([]byte, error) {
func (a *agent) attestWithClient(ctx context.Context, client verifier.Client, opts AttestAgentOpts) ([]byte, error) {
challenge, err := client.CreateChallenge(ctx)
if err != nil {
return nil, err
Expand Down

0 comments on commit 40e9ea6

Please sign in to comment.