CVE


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_tcveReferenceNew ()
 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_tcveNew ()
 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_referencecve_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_tcve_info::refs
 cve references
struct cve_infocve_info::next
 next cve info

Function Documentation

void cveDel ( cve_info_t cve  ) 

Free the CVE structure and its data.

Parameters:
cve CVE to be freed

void cveDelAll ( cve_info_t cve  ) 

Free the whole CVE list.

Parameters:
cve root of the CVE list to be freed

cve_info_t* cveNew (  ) 

Create new CVE structure.

Note:
The returned memory must be freed by the caller.
Returns:
new zeroed CVE structure
Return values:
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().

Parameters:
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
Returns:
non-negative value indicates the number of CVEs in the list, negative value indicates an error

void cveReferenceDel ( cve_reference_t reference  ) 

Free the CVE Reference structure and its data.

Parameters:
reference CVE Reference to be freed

void cveReferenceDelAll ( cve_reference_t ref  ) 

Free the whole CVE Reference list.

Parameters:
ref root of the CVE Reference list to be freed

cve_reference_t* cveReferenceNew (  ) 

Create new CVE Reference structure.

Note:
The returned memory must be freed by the caller.
Returns:
new zeroed CVE Reference structure
Return values:
NULL on failure


Generated on Thu Apr 30 13:45:39 2009 for Open SCAP Library by  doxygen 1.5.7.1