Greenbone Vulnerability Management Libraries 22.32.0
cvss4_metric_def_t Struct Reference

String to enum mapping and allowed values for a CVSS 4.0 metric. More...

Collaboration diagram for cvss4_metric_def_t:
Collaboration graph

Data Fields

const char * metric_str
const cvss4_metric_t metric
const char * values

Detailed Description

String to enum mapping and allowed values for a CVSS 4.0 metric.

This assumes all allowed values are single characters. The Provider Urgency metric can be longer, so it needs special handling only using the first letter.

Definition at line 277 of file cvss.c.

Field Documentation

◆ metric

const cvss4_metric_t cvss4_metric_def_t::metric

The metric enum value

Definition at line 280 of file cvss.c.

Referenced by simplify_cvss4_vector().

◆ metric_str

const char* cvss4_metric_def_t::metric_str

The metric abbreviation string

Definition at line 279 of file cvss.c.

Referenced by cvss4_vector_expand(), and simplify_cvss4_vector().

◆ values

const char* cvss4_metric_def_t::values

String of characters allowed as values

Definition at line 281 of file cvss.c.

Referenced by simplify_cvss4_vector().


The documentation for this struct was generated from the following file: