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.
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.
Getters

Return value is pointer to structure's member.

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



struct xml_metadata_iteratorcve_model_get_xmlns (const struct cve_model *cve_model)
 Get en iterator to XML metadatas from CVE model.
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.
bool cve_model_add_xml (struct cve_model *model, struct xml_metadata *xml)
 Add XML namespace to CVE model.
Evaluators



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

Data Fields

struct xml_metadata xml
struct oscap_listxmlns
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
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

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