1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Add Requirements 18-20 to rules.go

This commit is contained in:
JanHoefelmeyer 2023-06-14 10:16:31 +02:00
parent 87dbb5674b
commit 719ecaea76

View file

@ -187,7 +187,12 @@ func (p *processor) eval(requirement int) bool {
case 17: case 17:
// TODO: Implement me! // TODO: Implement me!
return true return true
case 18:
return !p.badIntegrities.hasErrors()
case 19:
return !p.badSignatures.hasErrors()
case 20:
return !p.badPGPs.hasErrors()
default: default:
panic(fmt.Sprintf("evaluating unexpected requirement %d", requirement)) panic(fmt.Sprintf("evaluating unexpected requirement %d", requirement))
} }