Display unknown CVEs to TUI

This commit is contained in:
Kota Kanbe
2016-11-07 14:59:50 +09:00
parent 1bbf320755
commit b61adcb1fd
2 changed files with 13 additions and 8 deletions

View File

@@ -165,6 +165,11 @@ func (r ScanResult) CveSummary() string {
high+middle+low+unknown, high, middle, low, unknown)
}
// AllCves returns Known and Unknown CVEs
func (r ScanResult) AllCves() []CveInfo {
return append(r.KnownCves, r.UnknownCves...)
}
// NWLink has network link information.
type NWLink struct {
gorm.Model `json:"-" xml:"-"`