|
Open SCAP Library
|
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. | |
| struct cve_model * | cve_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_model * | cve_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_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 |
| 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().
| file | filename |
| 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 | ||
| ) |
1.7.4