cvss_entry Struct Reference
[Private membersCVSS]

Struct holding CVSS entry data. More...

#include <cvss_priv.h>

Data Fields

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

Related Functions

(Note that these are not member functions.)



Parse functions

Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller.



struct cvss_entrycvss_entry_parse (xmlTextReaderPtr reader)
 Parse CVSS entry.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cvss_entry_export (const struct cvss_entry *entry, xmlTextWriterPtr writer)
 Export CVSS entry.
Get functions

Functions for getting attributes from CVE model structures.

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.
Set functions

Set functions assign values to members of structures except lists.

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.
New functions

Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller.



struct cvss_entrycvss_entry_new (void)
 New CVSS entry.
Free functions

Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions.



void cvss_entry_free (struct cvss_entry *entry)
 Free CVSS entry.

Detailed Description

Struct holding CVSS entry data.

Structure holding CVSS model.


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

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1