50 CVSS_TEMPORAL = 0x0200,
51 CVSS_ENVIRONMENTAL = 0x0300,
58 CVSS_AV_ADJACENT_NETWORK,
94 CVSS_E_PROOF_OF_CONCEPT,
103 CVSS_RL_OFFICIAL_FIX,
104 CVSS_RL_TEMPORARY_FIX,
114 CVSS_RC_UNCORROBORATED,
121 CVSS_CDP_NOT_DEFINED,
125 CVSS_CDP_MEDIUM_HIGH,
142 CVSS_REQ_NOT_DEFINED,
416 #endif // _CVSSCALC_H_
CVSS impact.
Definition: cvss_priv.h:81
bool cvss_metrics_set_exploitability(struct cvss_metrics *metrics, enum cvss_exploitability)
struct cvss_metrics * cvss_metrics_new(enum cvss_category category)
Definition: cvss.c:536
bool cvss_metrics_set_integrity_requirement(struct cvss_metrics *metrics, enum cvss_cia_requirement)
struct cvss_impact * cvss_impact_new(void)
Definition: cvss.c:83
bool cvss_metrics_set_confidentiality_requirement(struct cvss_metrics *metrics, enum cvss_cia_requirement)
struct cvss_impact * cvss_impact_new_from_vector(const char *cvss_vector)
Definition: cvss.c:230
struct cvss_impact * cvss_impact_clone(const struct cvss_impact *impact)
Definition: cvss.c:290
bool cvss_metrics_set_availability_requirement(struct cvss_metrics *metrics, enum cvss_cia_requirement)
struct cvss_metrics * cvss_impact_get_environmental_metrics(const struct cvss_impact *impact)
enum cvss_authentication cvss_metrics_get_authentication(const struct cvss_metrics *metrics)
struct cvss_metrics * cvss_metrics_clone(const struct cvss_metrics *metrics)
Definition: cvss.c:579
float cvss_impact_base_exploitability_subscore(const struct cvss_impact *impact)
Calculate exploitability subscore of base score.
Definition: cvss.c:409
cvss_exploitability
CVSS Exploitability.
Definition: cvss_score.h:91
cvss_authentication
CVSS Authentication.
Definition: cvss_score.h:73
enum cvss_remediation_level cvss_metrics_get_remediation_level(const struct cvss_metrics *metrics)
bool cvss_metrics_set_confidentiality_impact(struct cvss_metrics *metrics, enum cvss_cia_impact)
cvss_cia_impact
CVSS Confidentiality/Integrity/Availibility impact.
Definition: cvss_score.h:82
cvss_collateral_damage_potential
CVSS Collateral Damage Potential.
Definition: cvss_score.h:120
const char * cvss_metrics_get_source(const struct cvss_metrics *metrics)
void cvss_metrics_free(struct cvss_metrics *metrics)
Definition: cvss.c:631
bool cvss_metrics_set_access_complexity(struct cvss_metrics *metrics, enum cvss_access_complexity)
float cvss_impact_environmental_score(const struct cvss_impact *impact)
Calculate environmental score.
Definition: cvss.c:476
float cvss_impact_adjusted_base_score(const struct cvss_impact *impact)
Calculate base score adjusted to particular environment.
Definition: cvss.c:464
bool cvss_metrics_is_valid(const struct cvss_metrics *metrics)
Validate CVSS metrics completeness.
Definition: cvss.c:325
enum cvss_category cvss_metrics_get_category(const struct cvss_metrics *metrics)
const char * cvss_metrics_get_upgraded_from_version(const struct cvss_metrics *metrics)
bool cvss_metrics_set_report_confidence(struct cvss_metrics *metrics, enum cvss_report_confidence)
bool cvss_metrics_set_availability_impact(struct cvss_metrics *metrics, enum cvss_cia_impact)
CVSS metrics.
Definition: cvss_priv.h:87
struct cvss_metrics * cvss_impact_get_temporal_metrics(const struct cvss_impact *impact)
bool cvss_metrics_set_authentication(struct cvss_metrics *metrics, enum cvss_authentication)
bool cvss_metrics_set_collateral_damage_potential(struct cvss_metrics *metrics, enum cvss_collateral_damage_potential)
bool cvss_metrics_set_access_vector(struct cvss_metrics *metrics, enum cvss_access_vector)
void cvss_impact_describe(const struct cvss_impact *impact, FILE *f)
Write out a human-readable textual description of CVSS impact contents.
Definition: cvss.c:496
enum cvss_access_vector cvss_metrics_get_access_vector(const struct cvss_metrics *metrics)
bool cvss_metrics_set_score(struct cvss_metrics *metrics, float score)
enum cvss_cia_requirement cvss_metrics_get_integrity_requirement(const struct cvss_metrics *metrics)
enum cvss_collateral_damage_potential cvss_metrics_get_collateral_damage_potential(const struct cvss_metrics *metrics)
float cvss_impact_base_impact_subscore(const struct cvss_impact *impact)
Calculate impact subscore of base score.
Definition: cvss.c:415
cvss_cia_requirement
CVSS Confidentiality/Integrity/Availibility requirement.
Definition: cvss_score.h:141
bool cvss_metrics_set_generated_on_datetime(struct cvss_metrics *metrics, const char *new_datetime)
float cvss_metrics_get_score(const struct cvss_metrics *metrics)
struct cvss_metrics * cvss_impact_get_base_metrics(const struct cvss_impact *impact)
enum cvss_cia_requirement cvss_metrics_get_confidentiality_requirement(const struct cvss_metrics *metrics)
cvss_target_distribution
CVSS Target Distribution.
Definition: cvss_score.h:131
const char * cvss_metrics_get_generated_on_datetime(const struct cvss_metrics *metrics)
cvss_access_vector
CVSS access vector.
Definition: cvss_score.h:55
bool cvss_metrics_set_integrity_impact(struct cvss_metrics *metrics, enum cvss_cia_impact)
float cvss_impact_base_adjusted_impact_subscore(const struct cvss_impact *impact)
Calculate impact subscore of base score adjusted to particular environment.
Definition: cvss.c:451
bool cvss_impact_set_metrics(struct cvss_impact *impact, struct cvss_metrics *metrics)
Set base, temporal, or environmental metrics (type is determined from the metrics itself) ...
Definition: cvss.c:391
cvss_category
CVSS score category.
Definition: cvss_score.h:47
cvss_access_complexity
CVSS access complexity.
Definition: cvss_score.h:64
bool cvss_metrics_set_upgraded_from_version(struct cvss_metrics *metrics, const char *new_upgraded_from_version)
enum cvss_access_complexity cvss_metrics_get_access_complexity(const struct cvss_metrics *metrics)
enum cvss_target_distribution cvss_metrics_get_target_distribution(const struct cvss_metrics *metrics)
cvss_report_confidence
CVSS Report Confidence.
Definition: cvss_score.h:111
cvss_remediation_level
CVSS Remediation Level.
Definition: cvss_score.h:101
enum cvss_cia_impact cvss_metrics_get_availability_impact(const struct cvss_metrics *metrics)
bool cvss_metrics_set_source(struct cvss_metrics *metrics, const char *new_source)
enum cvss_report_confidence cvss_metrics_get_report_confidence(const struct cvss_metrics *metrics)
void cvss_impact_free(struct cvss_impact *impact)
Definition: cvss.c:379
float cvss_impact_temporal_multiplier(const struct cvss_impact *impact)
Calculate temporal multiplier.
Definition: cvss.c:437
enum cvss_cia_impact cvss_metrics_get_integrity_impact(const struct cvss_metrics *metrics)
float cvss_impact_base_score(const struct cvss_impact *impact)
Calculate base score.
Definition: cvss.c:431
char * cvss_impact_to_vector(const struct cvss_impact *impact)
Definition: cvss.c:347
enum cvss_cia_requirement cvss_metrics_get_availability_requirement(const struct cvss_metrics *metrics)
const char * cvss_model_supported(void)
Get supported version of CVSS XML.
Definition: cvss.c:68
float cvss_impact_temporal_score(const struct cvss_impact *impact)
Calculate temporal score.
Definition: cvss.c:444
bool cvss_metrics_set_remediation_level(struct cvss_metrics *metrics, enum cvss_remediation_level)
float cvss_round(float x)
Round x to one decimal place as described in CVSS standard.
Definition: cvss.c:405
float cvss_impact_adjusted_temporal_score(const struct cvss_impact *impact)
Calculate temporal score adjusted to particular environment.
Definition: cvss.c:470
enum cvss_cia_impact cvss_metrics_get_confidentiality_impact(const struct cvss_metrics *metrics)
enum cvss_exploitability cvss_metrics_get_exploitability(const struct cvss_metrics *metrics)
bool cvss_metrics_set_target_distribution(struct cvss_metrics *metrics, enum cvss_target_distribution)