aboutsummaryrefslogtreecommitdiff
path: root/feed/v2authentication.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-03-19 01:10:35 -0400
committerPaul Duncan <pabs@pablotron.org>2022-03-19 01:10:35 -0400
commit122ca3016cdc12ff61b2c2e2edd8df9cf2a17dc4 (patch)
tree735f0a807abce94ed51ff8094944c915a5c38dd4 /feed/v2authentication.go
parentcbaa1b4ddafd7eb6822b07d311d42c3cc03231ac (diff)
downloadcvez-122ca3016cdc12ff61b2c2e2edd8df9cf2a17dc4.tar.bz2
cvez-122ca3016cdc12ff61b2c2e2edd8df9cf2a17dc4.zip
feed: support multiple cvss v2 authentication value
Diffstat (limited to 'feed/v2authentication.go')
-rw-r--r--feed/v2authentication.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/feed/v2authentication.go b/feed/v2authentication.go
index 853954f..56af521 100644
--- a/feed/v2authentication.go
+++ b/feed/v2authentication.go
@@ -13,6 +13,7 @@ type V2Authentication byte
const (
V2AuthNone V2Authentication = iota // NONE
V2AuthSingle // SINGLE
+ V2AuthMultiple // MULTIPLE
)
// Unmarshal CVSS V2 authentication from JSON.
@@ -29,6 +30,8 @@ func (me *V2Authentication) UnmarshalJSON(b []byte) error {
*me = V2AuthNone
case "SINGLE":
*me = V2AuthSingle
+ case "MULTIPLE":
+ *me = V2AuthMultiple
default:
// return error
return fmt.Errorf("unknown CVSS v2 authentication: %s", s)