cve_model Struct Reference
[CVE]

cve_list cve_list is the top level element of the CVE List provided by MITRE. More...

#include <cve_priv.h>

Public Member Functions

struct cve_modelcve_model_new (void)
 New CVE model.
struct cve_modelcve_model_clone (struct cve_model *old_model)
 Clone CVE model.
void cve_model_free (struct cve_model *cve_model)
 Free CVE model.
void cve_model_export (struct cve_model *cve, const char *file)
 Export CVE model to XML file.
struct cve_modelcve_model_import (const char *file)
 Parses the specified XML file and creates a list of CVE data structures.
const char * cve_model_get_nvd_xml_version (const struct cve_model *item)
bool cve_model_set_nvd_xml_version (struct cve_model *obj, const char *newval)
time_t cve_model_get_pub_date (const struct cve_model *item)
bool cve_model_set_pub_date (struct cve_model *obj, time_t newval)
Setters

For lists use add functions.

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



bool cve_model_add_entry (struct cve_model *model, struct cve_entry *new_entry)
 Add entry to CVE model.
Evaluators



const char * cve_model_supported (void)
 Get supported version of CVE XML.

Data Fields

time_t pub_date
char * nvd_xml_version
struct oscap_listentries

Detailed Description

cve_list cve_list is the top level element of the CVE List provided by MITRE.

Structure holding CVE model.

It represents holds all CVE Items.


Member Function Documentation

void cve_model_export ( struct cve_model cve,
const char *  file 
)

Export CVE model to XML file.

Parameters:
cve CVE model
target OSCAP export target
const char * cve_model_get_nvd_xml_version ( const struct cve_model item  ) 
time_t cve_model_get_pub_date ( const struct cve_model item  ) 
struct cve_model * cve_model_import ( const char *  file  )  [read]

Parses the specified XML file and creates a list of CVE data structures.

The returned list can be freed with cveDelAll().

Parameters:
file filename
Returns:
non-negative value indicates the number of CVEs in the list, negative value indicates an error
bool cve_model_set_nvd_xml_version ( struct cve_model obj,
const char *  newval 
)
bool cve_model_set_pub_date ( struct cve_model obj,
time_t  newval 
)

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

Generated on 30 Mar 2012 for Open SCAP Library by  doxygen 1.6.1