Open SCAP Library
|
Structure holding CVE reference data. More...
#include <cve_priv.h>
Public Member Functions | |
OSCAP_API struct cve_reference * | cve_reference_new (void) |
New CVE reference. More... | |
OSCAP_API struct cve_reference * | cve_reference_clone (struct cve_reference *old_ref) |
Clone CVE reference. More... | |
OSCAP_API void | cve_reference_free (struct cve_reference *ref) |
Free CVE reference. More... | |
Getters | |
Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. | |
OSCAP_API const char * | cve_reference_get_value (const struct cve_reference *ref) |
Get CVE reference values. More... | |
OSCAP_API const char * | cve_reference_get_href (const struct cve_reference *ref) |
Get CVE reference href. More... | |
OSCAP_API const char * | cve_reference_get_type (const struct cve_reference *ref) |
Get CVE reference type. More... | |
OSCAP_API const char * | cve_reference_get_source (const struct cve_reference *ref) |
Get CVE reference source. More... | |
OSCAP_API const char * | cve_reference_get_lang (const struct cve_reference *ref) |
Setters | |
For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller. | |
OSCAP_API bool | cve_reference_set_value (struct cve_reference *reference, const char *new_value) |
Set value of CVE reference. More... | |
OSCAP_API bool | cve_reference_set_href (struct cve_reference *reference, const char *new_href) |
Set href of CVE reference. More... | |
OSCAP_API bool | cve_reference_set_type (struct cve_reference *reference, const char *new_type) |
Set type of CVE reference. More... | |
OSCAP_API bool | cve_reference_set_source (struct cve_reference *reference, const char *new_source) |
Set source of CVE reference. More... | |
OSCAP_API bool | cve_reference_set_lang (struct cve_reference *reference, const char *new_lang) |
Data Fields | |
char * | value |
char * | href |
char * | type |
char * | source |
char * | lang |
Structure holding CVE reference data.