cve.c File Reference

Interface to Common Vulnerability and Exposure dictionary. More...

#include "public/cve_nvd.h"
#include "cve_priv.h"
#include "common/util.h"
#include "common/list.h"

Defines

#define CVE_SUPPORTED   "2.0"

Functions

struct cve_modelcve_model_import (const char *file)
 Public function to import CVE model from OSCAP import source.
void cve_model_export (struct cve_model *cve, const char *file)
 Public function to export CVE model to OSCAP export target.
const char * cve_model_supported (void)
 Get supported version of CVE XML.


Detailed Description

Interface to Common Vulnerability and Exposure dictionary.

See details at: http://cve.mitre.org/ http://nvd.nist.gov/download.cfm


Function Documentation

void cve_model_export ( struct cve_model cve,
const char *  file 
)

Public function to export CVE model to OSCAP export target.

Export CVE model to XML file cve_model.

Function fill the structure _target_ with model that is represented by structure _cve_.

struct cve_model* cve_model_import ( const char *  file  )  [read]

Public function to import CVE model from OSCAP import source.

Parses the specified XML file and creates a list of CVE data structures.

Function returns CVE model, need to free source after calling this function


Generated on Tue Nov 14 12:18:54 2017 for Open SCAP Library by  doxygen 1.5.6