Data Structures | |
struct | cve_reference |
Structure holding CVE Reference data. More... | |
struct | cve_info |
Structure holding Common Vulnerabilities and Exposures data. More... | |
Files | |
file | cve.h |
Interface to Common Vulnerability and Exposure dictionary. | |
Typedefs | |
typedef struct cve_reference | cve_reference_t |
Structure holding CVE Reference data. | |
typedef struct cve_info | cve_info_t |
Structure holding Common Vulnerabilities and Exposures data. | |
Functions | |
cve_reference_t * | cveReferenceNew () |
Create new CVE Reference structure. | |
void | cveReferenceDel (cve_reference_t *reference) |
Free the CVE Reference structure and its data. | |
void | cveReferenceDelAll (cve_reference_t *ref) |
Free the whole CVE Reference list. | |
cve_info_t * | cveNew () |
Create new CVE structure. | |
void | cveDel (cve_info_t *cve) |
Free the CVE structure and its data. | |
void | cveDelAll (cve_info_t *cve) |
Free the whole CVE list. | |
int | cveParse (char *xmlfile, cve_info_t **outCveList) |
Parses the specified XML file and creates a list of CVE data structures. | |
Variables | |
char * | cve_reference::href |
href | |
char * | cve_reference::refType |
reference type | |
char * | cve_reference::source |
source | |
struct cve_reference * | cve_reference::next |
char * | cve_info::pub |
published datetime | |
char * | cve_info::mod |
last modified datetime | |
char * | cve_info::cwe |
cwe | |
char * | cve_info::summary |
summary | |
char * | cve_info::score |
score | |
char * | cve_info::vector |
access vector | |
char * | cve_info::complexity |
access complexity | |
char * | cve_info::authentication |
authentication | |
char * | cve_info::confidentiality |
confidentiality impact | |
char * | cve_info::integrity |
integrity impact | |
char * | cve_info::availability |
availability impact | |
char * | cve_info::source |
source | |
char * | cve_info::generated |
generated on datetime | |
cve_reference_t * | cve_info::refs |
cve references | |
struct cve_info * | cve_info::next |
next cve info |
void cveDel | ( | cve_info_t * | cve | ) |
Free the CVE structure and its data.
cve | CVE to be freed |
void cveDelAll | ( | cve_info_t * | cve | ) |
Free the whole CVE list.
cve | root of the CVE list to be freed |
cve_info_t* cveNew | ( | ) |
Create new CVE structure.
NULL | on failure |
int cveParse | ( | char * | xmlfile, | |
cve_info_t ** | outCveList | |||
) |
Parses the specified XML file and creates a list of CVE data structures.
The returned list can be freed with cveDelAll().
xmlfile | path to the file to be parsed | |
outCveList | address of the pointer to which the root element of the list is to be stored |
void cveReferenceDel | ( | cve_reference_t * | reference | ) |
Free the CVE Reference structure and its data.
reference | CVE Reference to be freed |
void cveReferenceDelAll | ( | cve_reference_t * | ref | ) |
Free the whole CVE Reference list.
ref | root of the CVE Reference list to be freed |
cve_reference_t* cveReferenceNew | ( | ) |
Create new CVE Reference structure.
NULL | on failure |