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

Add stubs for missing rule checks of providers.

This commit is contained in:
Sascha L. Teichmann 2023-06-19 17:49:35 +02:00
parent 421a05d421
commit 20bf16bd4f

View file

@ -38,6 +38,7 @@ var (
cond: condAll,
subs: []*requirementRules{
publisherRules,
{cond: condAll, subs: ruleAtoms(5, 6, 7)},
{cond: condOneOf, subs: ruleAtoms(8, 9, 10)},
{cond: condOneOf, subs: []*requirementRules{
{cond: condAll, subs: ruleAtoms(11, 12, 13, 14)},
@ -163,6 +164,15 @@ func (p *processor) eval(requirement int) bool {
case 3:
return len(p.noneTLS) == 0
case 5:
// TODO: implement me!
return true
case 6:
return len(p.redirects) == 0
case 7:
// TODO: implement me!
return true
case 8:
return !p.badSecurity.hasErrors()
case 9: