File: structcve__model.html

package info (click to toggle)
openscap 0.5.12-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 27,052 kB
  • ctags: 21,075
  • sloc: xml: 82,351; ansic: 52,101; sh: 17,802; makefile: 748; perl: 442; cpp: 117; python: 110
file content (154 lines) | stat: -rw-r--r-- 11,158 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!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"/>
<title>Open SCAP Library: cve_model Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>cve_model Struct Reference<br/>
<small>
[<a class="el" href="group__CVE.html">CVE</a>]</small>
</h1><!-- doxytag: class="cve_model" -->
<p>cve_list cve_list is the top level element of the CVE List provided by MITRE.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="cve__priv_8h_source.html">cve_priv.h</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga743af6ca1c274180e587feb63599bcd6">cve_model_new</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">New CVE model.  <a href="group__CVE.html#ga743af6ca1c274180e587feb63599bcd6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga43fce49d7e548907db40e89c9555b87d">cve_model_free</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *<a class="el" href="structcve__model.html">cve_model</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free CVE model.  <a href="group__CVE.html#ga43fce49d7e548907db40e89c9555b87d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcve__model.html#adea9158aefbd20d08ffd39918871196d">cve_model_export</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *cve, const char *file)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Export CVE model to XML file.  <a href="#adea9158aefbd20d08ffd39918871196d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcve__model.html">cve_model</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcve__model.html#a0b4422c3e6ea2339721a2ac973365b09">cve_model_import</a> (const char *file)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses the specified XML file and creates a list of CVE data structures.  <a href="#a0b4422c3e6ea2339721a2ac973365b09"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Getters</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpc9fd0bcb5385a65354c37f1bb504399d"></a>Return value is pointer to structure's member.</p>
<p>Do not free unless you null the pointer in the structure. Use remove function otherwise. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structxml__metadata__iterator.html">xml_metadata_iterator</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#gac03cbd24e33a5f7c7b207fc56fbd1686">cve_model_get_xmlns</a> (const struct <a class="el" href="structcve__model.html">cve_model</a> *<a class="el" href="structcve__model.html">cve_model</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get en iterator to XML metadatas from CVE model.  <a href="group__CVE.html#gac03cbd24e33a5f7c7b207fc56fbd1686"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Setters</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp6e47466b75bb957a603aa54c079ac8bf"></a>For lists use add functions.</p>
<p>Parameters of set functions are duplicated in memory and need to be freed by caller. </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#gaec8f745d0f680c83f6fe74f61b1d1d8f">cve_model_add_entry</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *model, struct <a class="el" href="structcve__entry.html">cve_entry</a> *new_entry)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add entry to CVE model.  <a href="group__CVE.html#gaec8f745d0f680c83f6fe74f61b1d1d8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1d1df0af8af9655a11623baf7c2b9c34"></a><!-- doxytag: member="cve_model::cve_model_add_xml" ref="ga1d1df0af8af9655a11623baf7c2b9c34" args="(struct cve_model *model, struct xml_metadata *xml)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga1d1df0af8af9655a11623baf7c2b9c34">cve_model_add_xml</a> (struct <a class="el" href="structcve__model.html">cve_model</a> *model, struct <a class="el" href="structxml__metadata.html">xml_metadata</a> *xml)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add XML namespace to CVE model. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Evaluators</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp1fdbbbb8aba6580be2c9cb4b12e86ca2"></a> </p>
<br/><br/></div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__CVE.html#ga0521ad9696a5a48d5b7f13a1b7d782d4">cve_model_supported</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get supported version of CVE XML.  <a href="group__CVE.html#ga0521ad9696a5a48d5b7f13a1b7d782d4"></a><br/></td></tr>
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed4e7417f4da06e1a5a3054a0ef8ebfb"></a><!-- doxytag: member="cve_model::xml" ref="aed4e7417f4da06e1a5a3054a0ef8ebfb" args="" -->
struct <a class="el" href="structxml__metadata.html">xml_metadata</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>xml</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04d607e72138335cb5d6f6a5dd98144c"></a><!-- doxytag: member="cve_model::xmlns" ref="a04d607e72138335cb5d6f6a5dd98144c" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>xmlns</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b98546f5f16b7239e494ba57cc084fe"></a><!-- doxytag: member="cve_model::entries" ref="a0b98546f5f16b7239e494ba57cc084fe" args="" -->
struct <a class="el" href="structoscap__list.html">oscap_list</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>entries</b></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>cve_list cve_list is the top level element of the CVE List provided by MITRE. </p>
<p>Structure holding CVE model.</p>
<p>It represents holds all CVE Items. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="adea9158aefbd20d08ffd39918871196d"></a><!-- doxytag: member="cve_model::cve_model_export" ref="adea9158aefbd20d08ffd39918871196d" args="(struct cve_model *cve, const char *file)" -->
<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> *&nbsp;</td>
          <td class="paramname"> <em>cve</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>file</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Export CVE model to XML file. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cve</em>&nbsp;</td><td>CVE model </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>target</em>&nbsp;</td><td>OSCAP export target </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0b4422c3e6ea2339721a2ac973365b09"></a><!-- doxytag: member="cve_model::cve_model_import" ref="a0b4422c3e6ea2339721a2ac973365b09" args="(const char *file)" -->
<div class="memitem">
<div class="memproto">
      <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 *&nbsp;</td>
          <td class="paramname"> <em>file</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Parses the specified XML file and creates a list of CVE data structures. </p>
<p>The returned list can be freed with cveDelAll().</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>filename </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>non-negative value indicates the number of CVEs in the list, negative value indicates an error </dd></dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>/home/pvrabec/project/openscap/openscap-0.5.12/src/CVE/<a class="el" href="cve__priv_8c.html">cve_priv.c</a></li>
<li>/home/pvrabec/project/openscap/openscap-0.5.12/src/CVE/public/<a class="el" href="cve_8h_source.html">cve.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on 30 Jun 2010 for Open SCAP Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>