From 63a1d3d419ba51a274db7b080daebd02566bc0cd Mon Sep 17 00:00:00 2001 From: Yogesh Deshpande Date: Sun, 10 Dec 2023 13:45:49 -0500 Subject: [PATCH] Further work Signed-off-by: Yogesh Deshpande --- vts/trustedservices/trustedservices_grpc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {