package nessusProcessor

// PolicyViolationMatchCriteria holds what criteria should be checked when checking for a
// policy violation.
type PolicyViolationMatchCriteria struct {
	ExternallyAccessible             bool
	IgnoreViolationWithCriteriaMatch bool
	PreviousViolationCheck           bool
	CountIf                          string
	DescriptionRegexp                []string
	NotDescriptionRegexp             []string
	PluginID                         int
	Ports                            []int
	OrganizationIDs                  []int
	RegionIDs                        []int
}

// FalsePositiveMatchCriteria holds what criteria should be checked when
// checking for a false positive.
type FalsePositiveMatchCriteria struct {
	PluginID            int
	Port                int
	Protocol            string
	DescriptionRegexp   []string
	CheckIfIsNotDefined bool
	SQLSolarisCheck     bool
}

package nessusProcessor

// PolicyViolationMatchCriteria holds what criteria should be checked when checking for a
// policy violation.
type PolicyViolationMatchCriteria struct {
	ExternallyAccessible             bool
	IgnoreViolationWithCriteriaMatch bool
	PreviousViolationCheck           bool
	CountIf                          string
	DescriptionRegexp                []string
	NotDescriptionRegexp             []string
	PluginID                         int
	Ports                            []int
	OrganizationIDs                  []int
	RegionIDs                        []int
}

// FalsePositiveMatchCriteria holds what criteria should be checked when
// checking for a false positive.
type FalsePositiveMatchCriteria struct {
	PluginID            int
	Ports               []int
	Protocol            string
	DescriptionRegexp   []string
	CheckIfIsNotDefined bool
	SQLSolarisCheck     bool
}

Make ports a slice for consistency with policy violations
Make ports a slice for consistency with policy violations

Signed-off-by: Kevin Kirsche <18695bc9b6a48cd25cda049e45c04495c905a059@gmail.com>
