cve_entry Struct Reference
[CVE]

Structure holding CVE entry data. More...

#include <cve_priv.h>

Public Member Functions

struct cve_entrycve_entry_new (void)
 New CVE entry.
struct cve_entrycve_entry_clone (struct cve_entry *old_entry)
 Clone CVE entry.
void cve_entry_free (struct cve_entry *entry)
 Free CVE entry.
void cwe_entry_free (struct cwe_entry *entry)
 Free CVE entry.
Getters

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_impactcve_entry_get_cvss (const struct cve_entry *item)
 Get CVSS structure from CVE.
Setters

For lists use add functions.

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



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)
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.

Data Fields

char * id
char * cve_id
struct oscap_listproducts
char * published
char * modified
struct cvss_impactcvss
char * sec_protection
char * cwe
struct oscap_listsummaries
struct oscap_listreferences
struct oscap_listconfigurations

Detailed Description

Structure holding CVE entry data.


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

Generated on 30 Mar 2012 for Open SCAP Library by  doxygen 1.6.1