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_model * | cve_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_model * | cve_model_import (const char *file) |
Parses the specified XML file and creates a list of CVE data structures. | |
Getters | |
struct xml_metadata_iterator * | cve_model_get_xmlns (const struct cve_model *cve_model) |
Get en iterator to XML metadatas from CVE model. | |
Setters | |
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_list * | xmlns |
struct oscap_list * | entries |
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.
void cve_model_export | ( | struct cve_model * | cve, | |
const char * | file | |||
) |
Export CVE model to XML file.
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().
file | filename |