Skip to content

Commit

Permalink
Further work
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Dec 10, 2023
1 parent c221d83 commit 63a1d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vts/trustedservices/trustedservices_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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())
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 63a1d3d

Please sign in to comment.