/home/pvrabec/tmp/openscap/openscap-0.1.4/src/CVE/cve.h File Reference

Interface to Common Vulnerability and Exposure dictionary. More...

Go to the source code of this file.

Classes

struct  cve_reference
struct  cve_info

Typedefs

typedef struct cve_reference cve_reference_t
typedef struct cve_info cve_info_t

Functions

cve_reference_tcveReferenceNew ()
void cveReferenceDel (cve_reference_t *reference)
void cveReferenceDelAll (cve_reference_t *ref)
cve_info_tcveNew ()
void cveDel (cve_info_t *cve)
void cveDelAll (cve_info_t *cve)
int cveParse (char *xmlfile, cve_info_t **outCveList)


Detailed Description

Interface to Common Vulnerability and Exposure dictionary.

See details at: http://cve.mitre.org/ http://nvd.nist.gov/download.cfm


Typedef Documentation

typedef struct cve_info cve_info_t

Structure holding Common Vulnerabilities and Exposures data

Structure holding CVE Reference data


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 Sun Mar 29 13:29:21 2009 for Open SCAP Library by  doxygen 1.5.6