Open SCAP Library
|
Common Vulnerability and Exposure dictionary. More...
#include <string.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include "public/cve_nvd.h"
#include "cve_priv.h"
#include "common/list.h"
#include "common/_error.h"
#include "common/xmltext_priv.h"
#include "common/elements.h"
#include "CPE/cpelang_priv.h"
#include "CVSS/cvss_priv.h"
#include "CVSS/public/cvss_score.h"
#include "source/oscap_source_priv.h"
#include "source/public/oscap_source.h"
Data Structures | |
struct | cve_model |
Structure holding CVE model. More... | |
struct | cve_reference |
Structure holding CVE reference data. More... | |
struct | cve_summary |
Structure holding CVE summary data. More... | |
struct | cve_product |
Structure holding CVE product data. More... | |
struct | cwe_entry |
Structure holding CWE data. More... | |
struct | cve_configuration |
Structure CVE vulnerable configuration data. More... | |
struct | cve_entry |
Structure holding CVE entry data. More... | |
Functions | |
const struct cvss_impact * | cve_entry_get_cvss (const struct cve_entry *item) |
const struct cpe_testexpr * | cve_configuration_get_expr (const struct cve_configuration *item) |
struct cve_entry * | cve_entry_new () |
struct cve_entry * | cve_entry_clone (struct cve_entry *old_entry) |
struct cve_configuration * | cve_configuration_new () |
struct cve_configuration * | cve_configuration_clone (struct cve_configuration *old_conf) |
struct cwe_entry * | cwe_entry_new () |
struct cwe_entry * | cwe_entry_clone (struct cwe_entry *old_entry) |
struct cve_product * | cve_product_new () |
struct cve_product * | cve_product_clone (struct cve_product *old_product) |
struct cve_summary * | cve_summary_new () |
struct cve_summary * | cve_summary_clone (struct cve_summary *old_sum) |
struct cve_reference * | cve_reference_new () |
struct cve_reference * | cve_reference_clone (struct cve_reference *old_ref) |
struct cve_model * | cve_model_new () |
struct cve_model * | cve_model_clone (struct cve_model *old_model) |
struct cve_model * | cve_model_parse_xml (const char *file) |
Parse CVE model from XML (private function) More... | |
struct cve_model * | cve_model_parse (xmlTextReaderPtr reader) |
Parse CVE model. More... | |
struct cve_entry * | cve_entry_parse (xmlTextReaderPtr reader) |
Parse CVE entry. More... | |
void | cve_model_export_xml (struct cve_model *cve, const char *file) |
Export CVE model to XML file. More... | |
void | cve_export (const struct cve_model *cve, xmlTextWriterPtr writer) |
Export CVE model to XML file. More... | |
void | cve_reference_export (const struct cve_reference *refer, xmlTextWriterPtr writer) |
Export CVE reference to XML file. More... | |
void | cve_summary_export (const struct cve_summary *sum, xmlTextWriterPtr writer) |
Export CVE summary to XML file. More... | |
void | cve_entry_export (const struct cve_entry *entry, xmlTextWriterPtr writer) |
Export CVE entry to XML file. More... | |
void | cve_summary_free (struct cve_summary *summary) |
void | cve_model_free (struct cve_model *cve_model) |
void | cve_configuration_free (struct cve_configuration *conf) |
void | cve_product_free (struct cve_product *product) |
void | cve_reference_free (struct cve_reference *ref) |
void | cwe_entry_free (struct cwe_entry *entry) |
void | cve_entry_free (struct cve_entry *entry) |
Common Vulnerability and Exposure dictionary.
See details at: http://cve.mitre.org/ http://nvd.nist.gov/download.cfm
void cve_entry_export | ( | const struct cve_entry * | entry, |
xmlTextWriterPtr | writer | ||
) |
Export CVE entry to XML file.
entry | CVE entry |
writer | XML Text Writer representing XML model |
struct cve_entry * cve_entry_parse | ( | xmlTextReaderPtr | reader | ) |
Parse CVE entry.
reader | XML Text Reader representing XML model |
void cve_export | ( | const struct cve_model * | cve, |
xmlTextWriterPtr | writer | ||
) |
Export CVE model to XML file.
cve | CVE model |
writer | XML Text Writer representing XML model |
void cve_model_export_xml | ( | struct cve_model * | cve, |
const char * | file | ||
) |
Export CVE model to XML file.
cve | CVE model |
file | OSCAP export target |
struct cve_model * cve_model_parse | ( | xmlTextReaderPtr | reader | ) |
Parse CVE model.
reader | XML Text Reader representing XML model |
struct cve_model * cve_model_parse_xml | ( | const char * | file | ) |
Parse CVE model from XML (private function)
file | OSCAP import source |
void cve_reference_export | ( | const struct cve_reference * | refer, |
xmlTextWriterPtr | writer | ||
) |
Export CVE reference to XML file.
refer | CVE reference |
writer | XML Text Writer representing XML model |
void cve_summary_export | ( | const struct cve_summary * | sum, |
xmlTextWriterPtr | writer | ||
) |
Export CVE summary to XML file.
sum | CVE summary |
writer | XML Text Writer representing XML model |