cve_model Struct Reference
[Private membersCVE]

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

#include <cve_priv.h>

Data Fields

struct xml_metadata xml
struct oscap_listxmlns
struct oscap_listentries

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 cve_modelcve_model_parse_xml (const struct oscap_import_source *source)
 Parse CVE model from XML (private function).
struct cve_modelcve_model_parse (xmlTextReaderPtr reader)
 Parse CVE model.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cve_export (const struct cve_model *cve, xmlTextWriterPtr writer)
 Export CVE model to XML file.
void cve_model_export_xml (struct cve_model *cve, const struct oscap_export_target *target)
 Export CVE model to XML file.
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.



struct xml_metadata_iteratorcve_model_get_xmlns (const struct cve_model *cve_model)
 Get en iterator to XML metadatas from CVE model.
Add functions

Functions to add member to list.

Return value is true if added succesfuly or false in case of error.



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.
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 cve_modelcve_model_new (void)
 New CVE model.
Free functions

Destructors of CVE model structures.

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



void cve_model_free (struct cve_model *cve_model)
 Free CVE model.
Other functions



void cve_model_export (struct cve_model *cve, const struct oscap_export_target *target)
 Export CVE model to XML file.
struct cve_modelcve_model_import (const struct oscap_import_source *source)
 Parses the specified XML file and creates a list of CVE data structures.

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.


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