Interface to Common Vulnerability and Exposure dictionary. More...
#include "config.h"
#include <libxml/xmlreader.h>
#include <libxml/xmlstring.h>
#include "cve.h"
#include "../common/util.h"
#include "../common/list.h"
Data Structures | |
struct | cve_reference |
Structure holding CVE Reference data. More... | |
struct | cve_info |
Structure holding Common Vulnerabilities and Exposures data. More... | |
struct | cve |
Structure holding all the cve_info entries. More... | |
struct | tagStack_t |
Defines | |
#define | TAG_ENTRY_STR BAD_CAST "entry" |
#define | TAG_PUBLISHED_STR BAD_CAST "published-datetime" |
#define | TAG_MODIFIED_STR BAD_CAST "last-modified-datetime" |
#define | TAG_CWE_STR BAD_CAST "cwe" |
#define | TAG_SUMMARY_STR BAD_CAST "summary" |
#define | ATTR_CWEID_STR BAD_CAST "id" |
#define | ATTR_ID_STR BAD_CAST "id" |
#define | TAG_SCORE_STR BAD_CAST "score" |
#define | TAG_VECTOR_STR BAD_CAST "access-vector" |
#define | TAG_COMPLEXITY_STR BAD_CAST "access-complexity" |
#define | TAG_AUTHENTICATION_STR BAD_CAST "authentication" |
#define | TAG_CONFIDENTIALITY_STR BAD_CAST "confidentiality-impact" |
#define | TAG_INTEGRITY_STR BAD_CAST "integrity-impact" |
#define | TAG_AVAILABILITY_STR BAD_CAST "availability-impact" |
#define | TAG_CVSSSOURCE_STR BAD_CAST "source" |
#define | TAG_GENERATED_STR BAD_CAST "generated-on-datetime" |
#define | TAG_REFS_STR BAD_CAST "references" |
#define | ATTR_REFTYPE_STR BAD_CAST "reference_type" |
#define | ATTR_HREF_STR BAD_CAST "href" |
#define | TAG_SOURCE_STR BAD_CAST "source" |
#define | TAG_REF_STR BAD_CAST "reference" |
#define | URI_VULN_STR BAD_CAST "http://scap.nist.gov/schema/vulnerability/0.4" |
#define | URI_CVSS_STR BAD_CAST "http://scap.nist.gov/schema/cvss-v2/0.2" |
Enumerations | |
enum | { TAG_UNKNOWN = 0, TAG_ENTRY, TAG_CVEID, TAG_PUBLISHED, TAG_MODIFIED, TAG_CWE, TAG_REFS, TAG_SOURCE, TAG_REF, TAG_SUMMARY, TAG_SCORE, TAG_VECTOR, TAG_COMPLEXITY, TAG_AUTHENTICATION, TAG_CONFIDENTIALITY, TAG_INTEGRITY, TAG_AVAILABILITY, TAG_CVSSSOURCE, TAG_GENERATED } |
Functions | |
struct cve_reference * | cve_reference_new () |
void | cve_reference_free (struct cve_reference *reference) |
struct cve_info * | cve_info_new () |
void | cve_info_free (struct cve_info *cve) |
int | cve_parse (const char *xmlfile, struct cve *outCveList) |
struct cve * | cve_new_empty (void) |
struct cve * | cve_new (const char *fname) |
void | cve_free (struct cve *cve) |
bool | cve_add_info (struct cve *cve, struct cve_info *info) |
Interface to Common Vulnerability and Exposure dictionary.
See details at: http://cve.mitre.org/ http://nvd.nist.gov/download.cfm