diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-06 15:07:07 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-06 15:07:07 -0500 |
commit | 210c57382dfcd1e1d307609d7a34afd4d58b5c1d (patch) | |
tree | a39d6050eed6aca014f32669410397a2e799c5f5 /cvss | |
parent | 7dff00e81184aed2a6074c0e8e396be2b5445af9 (diff) | |
download | cvez-210c57382dfcd1e1d307609d7a34afd4d58b5c1d.tar.bz2 cvez-210c57382dfcd1e1d307609d7a34afd4d58b5c1d.zip |
cvss: add v2scores and tests (busted atm)
Diffstat (limited to 'cvss')
-rw-r--r-- | cvss/v2vector.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cvss/v2vector.go b/cvss/v2vector.go index b1fca1f..14a4afb 100644 --- a/cvss/v2vector.go +++ b/cvss/v2vector.go @@ -41,6 +41,11 @@ func (v v2Vector) Metrics() []Metric { return r } +// Return numerical scores for this vector. +func (v v2Vector) Scores() (v2Scores, error) { + return newV2Scores(v) +} + // Create CVSS 2.0 vector from string. func newV2Vector(s string) (v2Vector, error) { strs := strings.Split(s, "/") |