Skip to content

Commit

Permalink
snp: enable crl checking
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Jan 11, 2024
1 parent 7c58e99 commit ae694db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/attestation/snp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ func (v *Validator) Validate(ctx context.Context, attDocRaw []byte, nonce []byte

// Report signature verification.

verifyOpts := &verify.Options{
Getter: v.kdsGetter,
}
verifyOpts := verify.DefaultOptions()
verifyOpts.CheckRevocations = true
verifyOpts.Getter = v.kdsGetter

attestation, err := verify.GetAttestationFromReport(report, verifyOpts)
if err != nil {
return fmt.Errorf("getting attestation from report: %w", err)
Expand Down

0 comments on commit ae694db

Please sign in to comment.