Skip to content

Commit

Permalink
Merge pull request #140 from nokia/ian
Browse files Browse the repository at this point in the history
minor bug fixes
  • Loading branch information
iolivergithub authored Nov 13, 2023
2 parents d96fc25 + 0587a35 commit 56a3112
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ga10/operations/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,24 @@ func checkRuleObjectExists(rule structures.Rule) (structures.ResultValue, string
func getEV(claim structures.Claim, rule structures.Rule) (structures.ExpectedValue, error) {
fmt.Println("Step 2 - getting EV")


// if the rule does need an EV, then we get it and return whatever comes back
// if err is not nil then there was some error, usualy no EV for that E,P pair
// but it could be something worse, eg: datalayer failure, but this is unlikely

fmt.Println(" Rule needs EV is %v",rule.NeedsEV)

if rule.NeedsEV == true {
e := claim.Header.Element.ItemID
p := claim.Header.Policy.ItemID

fmt.Println(" e = %v",claim.Header.Element.ItemID)
fmt.Println(" p = %v",claim.Header.Policy.ItemID)

ev,err := GetExpectedValueByElementAndPolicy(e,p)

fmt.Println(" GET EV error=%v, ev=%v",err,ev)

return ev,err
}

Expand Down
Binary file added ta10/ta10
Binary file not shown.

0 comments on commit 56a3112

Please sign in to comment.