cvss_entry Struct Reference
[CVSS]

Struct holding CVSS entry data. More...

#include <cvss_priv.h>

Public Member Functions

struct cvss_entrycvss_entry_new (void)
 New CVSS entry.
void cvss_entry_free (struct cvss_entry *entry)
 Free CVSS entry.
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.



const char * cvss_entry_get_score (const struct cvss_entry *entry)
 Get score from CVSS entry.
const char * cvss_entry_get_AV (const struct cvss_entry *entry)
 Get access vector from CVSS entry.
const char * cvss_entry_get_AC (const struct cvss_entry *entry)
 Get access complexity from CVSS entry.
const char * cvss_entry_get_authentication (const struct cvss_entry *entry)
 Get authentication from CVSS entry.
const char * cvss_entry_get_imp_confidentiality (const struct cvss_entry *entry)
 Get confidentiality impact from CVSS entry.
const char * cvss_entry_get_imp_integrity (const struct cvss_entry *entry)
 Get integrity impact from CVSS entry.
const char * cvss_entry_get_imp_availability (const struct cvss_entry *entry)
 Get availability impact from CVSS entry.
const char * cvss_entry_get_source (const struct cvss_entry *entry)
 Get source from CVSS entry.
const char * cvss_entry_get_generated (const struct cvss_entry *entry)
 Get generated date-time from CVSS entry.
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.



bool cvss_entry_set_score (struct cvss_entry *entry, const char *new_score)
 Set of CVSS entry.
bool cvss_entry_set_AV (struct cvss_entry *entry, const char *new_AV)
 Set access vector of CVSS entry.
bool cvss_entry_set_AC (struct cvss_entry *entry, const char *new_AC)
 Set access complexity of CVSS entry.
bool cvss_entry_set_authentication (struct cvss_entry *entry, const char *new_authentication)
 Set authentication of CVSS entry.
bool cvss_entry_set_imp_confidentiality (struct cvss_entry *entry, const char *new_item)
 Set confidentiality impact of CVSS entry.
bool cvss_entry_set_imp_integrity (struct cvss_entry *entry, const char *new_item)
 Set integrity impact of CVSS entry.
bool cvss_entry_set_imp_availability (struct cvss_entry *entry, const char *new_item)
 Set availability impact of CVSS entry.
bool cvss_entry_set_source (struct cvss_entry *entry, const char *new_source)
 Set source of CVSS entry.
bool cvss_entry_set_generated (struct cvss_entry *entry, const char *new_generated)
 Set generated date-time of CVSS entry.
Evaluators



const char * cvss_model_supported (void)
 Get supported version of CVSS XML.

Data Fields

char * score
char * AV
char * AC
char * authentication
char * imp_confidentiality
char * imp_integrity
char * imp_availability
char * source
char * generated

Detailed Description

Struct holding CVSS entry data.

Structure holding CVSS model.


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

Generated on 14 Jul 2010 for Open SCAP Library by  doxygen 1.6.1