cve_entry Struct Reference
[Private membersCVE]

Structure holding CVE entry data. More...

#include <cve_priv.h>

Data Fields

struct xml_metadata xml
char * id
char * cve_id
struct oscap_listproducts
char * published
char * modified
struct cvss_entrycvss
char * sec_protection
char * cwe
struct oscap_listsummaries
struct oscap_listreferences
struct oscap_listconfigurations

Related Functions

(Note that these are not member functions.)



Parse functions

Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller.



struct cve_entrycve_entry_parse (xmlTextReaderPtr reader)
 Parse CVE entry.
Export functions

Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller.



void cve_entry_export (const struct cve_entry *entry, xmlTextWriterPtr writer)
 Export CVE entry to XML file.
Get functions

Functions for getting attributes from CVE model structures.

Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise.



struct cve_entry_iteratorcve_model_get_entries (const struct cve_model *cve_model)
 Get en iterator to CVE entries.
const char * cve_entry_get_id (const struct cve_entry *item)
 Get CVE entry ID.
const char * cve_entry_get_cwe (const struct cve_entry *item)
 Get CVE entry CWE.
struct cve_summary_iteratorcve_entry_get_summaries (const struct cve_entry *item)
 Get CVE entry summary.
struct cve_reference_iteratorcve_entry_get_references (const struct cve_entry *item)
 Get an iterator to CVE entry's references.
const char * cwe_entry_get_value (const struct cwe_entry *entry)
 Get CVE entry value.
const char * cve_entry_get_published (const struct cve_entry *entry)
 Get CVE entry published date.
const char * cve_entry_get_modified (const struct cve_entry *entry)
 Get CVE entry modified.
const char * cve_entry_get_sec_protection (const struct cve_entry *entry)
 Get CVE entry protection.
struct cve_product_iteratorcve_entry_get_products (const struct cve_entry *entry)
 Get CVE entry products.
struct cve_configuration_iteratorcve_entry_get_configurations (const struct cve_entry *entry)
 Get CVE .
struct cvss_entrycve_entry_get_cvss (const struct cve_entry *item)
 Get CVSS structure from CVE.
Add functions

Functions to add member to list.

Return value is true if added succesfuly or false in case of error.



bool cve_entry_add_product (struct cve_entry *entry, struct cve_product *new_product)
bool cve_entry_add_reference (struct cve_entry *entry, struct cve_reference *new_reference)
bool cve_entry_add_summary (struct cve_entry *entry, struct cve_summary *new_summary)
bool cve_entry_add_configuration (struct cve_entry *entry, struct cve_configuration *new_configuration)
Set functions

Set functions assign values to members of structures except lists.

For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller.



bool cve_entry_set_id (struct cve_entry *entry, const char *new_id)
 Set id of CVE entry.
bool cve_entry_set_published (struct cve_entry *entry, const char *new_published)
 Set publish date of CVE entry.
bool cve_entry_set_modified (struct cve_entry *entry, const char *new_modified)
 Set modified date of CVE entry.
bool cve_entry_set_sec_protection (struct cve_entry *entry, const char *new_protection)
 Set protection of CVE entry.
bool cve_entry_set_cwe (struct cve_entry *entry, const char *cwe)
 Set cwe of CVE entry.
bool cwe_entry_set_value (struct cwe_entry *entry, const char *new_value)
 Set value of CVE entry.
New functions

Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller.



struct cve_entrycve_entry_new (void)
 New CVE entry.
Free functions

Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions.



void cve_entry_free (struct cve_entry *entry)
 Free CVE entry.
void cwe_entry_free (struct cwe_entry *entry)
 Free CVE entry.

Detailed Description

Structure holding CVE entry data.


The documentation for this struct was generated from the following files:

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1