diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-07 14:47:24 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-07 14:47:24 -0500 |
commit | 5919b5a0ee3f1a102a931d7b2147f805b0c15b43 (patch) | |
tree | f9275b15c6696592b71c19e5f21cd31ae3ef3d88 /cvss | |
parent | 405e10830d8bd5e58bca7f83ea55ccb4f4f4ab26 (diff) | |
download | cvez-5919b5a0ee3f1a102a931d7b2147f805b0c15b43.tar.bz2 cvez-5919b5a0ee3f1a102a931d7b2147f805b0c15b43.zip |
cvss: s/MMRNotDefined/MPRNotDefined/
Diffstat (limited to 'cvss')
-rw-r--r-- | cvss/v3metric.go | 6 | ||||
-rw-r--r-- | cvss/v3metric_string.go | 2 | ||||
-rw-r--r-- | cvss/v3metric_test.go | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/cvss/v3metric.go b/cvss/v3metric.go index fc4c860..df408fd 100644 --- a/cvss/v3metric.go +++ b/cvss/v3metric.go @@ -78,7 +78,7 @@ const ( v3MACLow // MAC:L v3MACHigh // MAC:H - v3MMRNotDefined // MPR:X + v3MPRNotDefined // MPR:X v3MPRLow // MPR:L v3MPRHigh // MPR:H @@ -182,7 +182,7 @@ var v3KeyLut = map[v3Metric]v3Key { v3MACLow: v3ModifiedAttackComplexity, // MAC:L v3MACHigh: v3ModifiedAttackComplexity, // MAC:H - v3MMRNotDefined: v3ModifiedPrivilegesRequired, // MPR:X + v3MPRNotDefined: v3ModifiedPrivilegesRequired, // MPR:X v3MPRLow: v3ModifiedPrivilegesRequired, // MPR:L v3MPRHigh: v3ModifiedPrivilegesRequired, // MPR:H @@ -284,7 +284,7 @@ var v3MetricStrLut = map[string]v3Metric { "MAC:L": v3MACLow, "MAC:H": v3MACHigh, - "MPR:X": v3MMRNotDefined, + "MPR:X": v3MPRNotDefined, "MPR:L": v3MPRLow, "MPR:H": v3MPRHigh, diff --git a/cvss/v3metric_string.go b/cvss/v3metric_string.go index 612ed83..b7d6702 100644 --- a/cvss/v3metric_string.go +++ b/cvss/v3metric_string.go @@ -64,7 +64,7 @@ func _() { _ = x[v3MACNotDefined-53] _ = x[v3MACLow-54] _ = x[v3MACHigh-55] - _ = x[v3MMRNotDefined-56] + _ = x[v3MPRNotDefined-56] _ = x[v3MPRLow-57] _ = x[v3MPRHigh-58] _ = x[v3MUINotDefined-59] diff --git a/cvss/v3metric_test.go b/cvss/v3metric_test.go index 432d34a..a3c587a 100644 --- a/cvss/v3metric_test.go +++ b/cvss/v3metric_test.go @@ -80,7 +80,7 @@ func TestGetV3Metric(t *testing.T) { { "MAC:L", v3MACLow, true }, { "MAC:H", v3MACHigh, true }, - { "MPR:X", v3MMRNotDefined, true }, + { "MPR:X", v3MPRNotDefined, true }, { "MPR:L", v3MPRLow, true }, { "MPR:H", v3MPRHigh, true }, @@ -201,7 +201,7 @@ func TestGetV3MetricKey(t *testing.T) { { v3MACLow, v3ModifiedAttackComplexity }, // MAC:L { v3MACHigh, v3ModifiedAttackComplexity }, // MAC:H - { v3MMRNotDefined, v3ModifiedPrivilegesRequired }, // MPR:X + { v3MPRNotDefined, v3ModifiedPrivilegesRequired }, // MPR:X { v3MPRLow, v3ModifiedPrivilegesRequired }, // MPR:L { v3MPRHigh, v3ModifiedPrivilegesRequired }, // MPR:H @@ -316,7 +316,7 @@ func TestV3MetricString(t *testing.T) { { v3MACLow, "MAC:L" }, { v3MACHigh, "MAC:H" }, - { v3MMRNotDefined, "MPR:X" }, + { v3MPRNotDefined, "MPR:X" }, { v3MPRLow, "MPR:L" }, { v3MPRHigh, "MPR:H" }, |