Skip to content

Commit

Permalink
adding policy ints option
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Jan 25, 2024
1 parent 33998ff commit 955c3a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ func VerifyWithPolicyCARoots(roots []*x509.Certificate) VerifyOption {
}
}

func VerifyWithPolicyCAIntermediates(intermediates []*x509.Certificate) VerifyOption {
return func(vo *verifyOptions) {
vo.policyCAIntermediates = intermediates
}
}

// Verify verifies a set of attestations against a provided policy. The set of attestations that satisfy the policy will be returned
// if verifiation is successful.
func Verify(ctx context.Context, policyEnvelope dsse.Envelope, policyVerifiers []cryptoutil.Verifier, opts ...VerifyOption) (map[string][]source.VerifiedCollection, error) {
Expand Down

0 comments on commit 955c3a3

Please sign in to comment.