<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Open SCAP Library: cve.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Open SCAP Library </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_426b44f855cafb9ba3a69c06cbfa5053.html">CVE</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">cve.c File Reference</div> </div> </div><!--header--> <div class="contents"> <p>Interface to Common Vulnerability and Exposure dictionary. <a href="#details">More...</a></p> <div class="textblock"><code>#include "public/cve_nvd.h"</code><br/> <code>#include "<a class="el" href="cve__priv_8h_source.html">cve_priv.h</a>"</code><br/> <code>#include "common/util.h"</code><br/> <code>#include "common/list.h"</code><br/> </div><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:a03544e0b14e64db06c427a109f27d308"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03544e0b14e64db06c427a109f27d308"></a> #define </td><td class="memItemRight" valign="bottom"><b>CVE_SUPPORTED</b>   "2.0"</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a1a2eaa0c745daf67769e815f93287496"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="cve_8c.html#a1a2eaa0c745daf67769e815f93287496">cve_model_import</a> (const char *file)</td></tr> <tr class="memdesc:a1a2eaa0c745daf67769e815f93287496"><td class="mdescLeft"> </td><td class="mdescRight">Public function to import CVE model from OSCAP import source. <a href="#a1a2eaa0c745daf67769e815f93287496"></a><br/></td></tr> <tr class="memitem:adea9158aefbd20d08ffd39918871196d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cve_8c.html#adea9158aefbd20d08ffd39918871196d">cve_model_export</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *cve, const char *file)</td></tr> <tr class="memdesc:adea9158aefbd20d08ffd39918871196d"><td class="mdescLeft"> </td><td class="mdescRight">Public function to export CVE model to OSCAP export target. <a href="#adea9158aefbd20d08ffd39918871196d"></a><br/></td></tr> <tr class="memitem:aa3cede3c354e6209b6c4a87af61be0a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3cede3c354e6209b6c4a87af61be0a4"></a> const char * </td><td class="memItemRight" valign="bottom"><b>cve_model_supported</b> (void)</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Interface to Common Vulnerability and Exposure dictionary. </p> <p>See details at: <a href="http://cve.mitre.org/">http://cve.mitre.org/</a> <a href="http://nvd.nist.gov/download.cfm">http://nvd.nist.gov/download.cfm</a> </p> </div><hr/><h2>Function Documentation</h2> <a class="anchor" id="adea9158aefbd20d08ffd39918871196d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void cve_model_export </td> <td>(</td> <td class="paramtype">struct <a class="el" href="structcve__model.html">cve_model</a> * </td> <td class="paramname"><em>cve</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>file</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Public function to export CVE model to OSCAP export target. </p> <p>Function fill the structure <em>target</em> with model that is represented by structure <em>cve</em>. </p> </div> </div> <a class="anchor" id="a1a2eaa0c745daf67769e815f93287496"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">struct <a class="el" href="structcve__model.html">cve_model</a>* cve_model_import </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>file</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">read</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Public function to import CVE model from OSCAP import source. </p> <p>Function returns CVE model, need to free source after calling this function </p> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.1 </small></address> </body> </html>