diff --git a/vts/trustedservices/trustedservices_grpc.go b/vts/trustedservices/trustedservices_grpc.go index 4c4419ef..9d4d2d6a 100644 --- a/vts/trustedservices/trustedservices_grpc.go +++ b/vts/trustedservices/trustedservices_grpc.go @@ -335,7 +335,7 @@ func (o *GRPC) GetAttestation( return o.finalize(appraisal, err) } - ta, err := o.getTrustAnchor(appraisal.EvidenceContext.TrustAnchorIds) + tas, err := o.getTrustAnchors(appraisal.EvidenceContext.TrustAnchorIds) if err != nil { if errors.Is(err, kvstore.ErrKeyNotFound) { err = handlermod.BadEvidence("no trust anchor for %s", @@ -346,7 +346,7 @@ func (o *GRPC) GetAttestation( return o.finalize(appraisal, err) } - extracted, err := handler.ExtractClaims(token, ta) + extracted, err := handler.ExtractClaims(token, tas) if err != nil { if errors.Is(err, handlermod.BadEvidenceError{}) { appraisal.AddPolicyClaim("problem", err.Error()) @@ -424,7 +424,7 @@ func (c *GRPC) initEvidenceContext( return appraisal, err } -func (c *GRPC) getTrustAnchor(id []string) ([]string, error) { +func (c *GRPC) getTrustAnchors(id []string) ([]string, error) { ta_values := make([]string, 0) for _, taId := range id {