<!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"/> <meta name="generator" content="Doxygen 1.8.6"/> <title>Open SCAP Library: xccdf_impl.h Source File</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.6 --> <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_3d1f1297aef3898034758bfcdc97a024.html">XCCDF</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">xccdf_impl.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright 2009 Red Hat Inc., Durham, North Carolina.</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 2010 Tresys Technology, LLC</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * All Rights Reserved.</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * This library is free software; you can redistribute it and/or</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * License as published by the Free Software Foundation; either</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * This library is distributed in the hope that it will be useful, </span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * Lesser General Public License for more details.</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * License along with this library; if not, write to the Free Software </span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * Authors:</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * Josh Adams <jadams@tresys.com></span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifndef XCCDF_IMPL</span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor"></span><span class="preprocessor">#define XCCDF_IMPL</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="xccdf__benchmark_8h.html">public/xccdf_benchmark.h</a>></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <common/util.h></span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <libxml/xmlreader.h></span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> OSCAP_HIDDEN_START;</div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#define XCCDF_DC_NAMESPACE BAD_CAST "http://purl.org/dc/elements/1.1/"</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor"></span><span class="preprocessor">#define XCCDF_DSIG_NAMESPACE BAD_CAST "http://w3.org/2000/09/xmldsig#"</span></div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor"></span><span class="preprocessor">#define XCCDF_XHTML_NAMESPACE BAD_CAST "http://www.w3.org/1999/xhtml"</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor"></span><span class="preprocessor">#define XCCDF_XSI_NAMESPACE BAD_CAST "http://www.w3.org/2001/XMLSchema-instance"</span></div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> xmlNode *xccdf_benchmark_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__benchmark.html">xccdf_benchmark</a> *benchmark, xmlDocPtr doc,</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  xmlNode *parent, <span class="keywordtype">void</span> *user_args);</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> xmlNode *xccdf_item_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__item.html">xccdf_item</a> *item, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> xmlNode *xccdf_profile_note_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__profile__note.html">xccdf_profile_note</a> *note, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> xmlNode *xccdf_fixtext_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__fixtext.html">xccdf_fixtext</a> *fixtext, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> xmlNode *xccdf_fix_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__fix.html">xccdf_fix</a> *fix, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> xmlNode *xccdf_status_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__status.html">xccdf_status</a> *status, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> xmlNode *xccdf_warning_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__warning.html">xccdf_warning</a> *warning, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> xmlNode *xccdf_check_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__check.html">xccdf_check</a> *check, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keywordtype">void</span> xccdf_rule_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__rule.html">xccdf_rule</a> *rule, xmlNode *rule_node, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keywordtype">void</span> xccdf_value_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__value.html">xccdf_value</a> *value, xmlNode *value_node, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">void</span> xccdf_group_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__group.html">xccdf_group</a> *group, xmlNode *group_node, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">void</span> xccdf_profile_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__profile.html">xccdf_profile</a> *profile, xmlNode *profile_node, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keywordtype">void</span> xccdf_result_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__result.html">xccdf_result</a> *result, xmlNode *result_node, xmlDoc *doc, xmlNode *parent);</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> xmlNode *xccdf_target_identifier_to_dom(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__target__identifier.html">xccdf_target_identifier</a> *ti, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span> xmlNode *xccdf_rule_result_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__rule__result.html">xccdf_rule_result</a> *result, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> xmlNode *xccdf_ident_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__ident.html">xccdf_ident</a> *ident, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> xmlNode *xccdf_setvalue_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__setvalue.html">xccdf_setvalue</a> *setvalue, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> xmlNode *xccdf_override_to_dom(<span class="keyword">struct</span> <a class="code" href="structxccdf__override.html">xccdf_override</a> *<span class="keyword">override</span>, xmlDoc *doc, xmlNode *parent, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structxccdf__version__info.html">xccdf_version_info</a>* version_info);</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> OSCAP_HIDDEN_END;</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor">#endif</span></div> <div class="ttc" id="structxccdf__profile__note_html"><div class="ttname"><a href="structxccdf__profile__note.html">xccdf_profile_note</a></div><div class="ttdoc">XCCDF note for given rule in context of given profile. </div><div class="ttdef"><b>Definition:</b> item.h:318</div></div> <div class="ttc" id="structxccdf__version__info_html"><div class="ttname"><a href="structxccdf__version__info.html">xccdf_version_info</a></div><div class="ttdef"><b>Definition:</b> XCCDF/elements.c:41</div></div> <div class="ttc" id="structxccdf__benchmark_html"><div class="ttname"><a href="structxccdf__benchmark.html">xccdf_benchmark</a></div><div class="ttdoc">Top level XCCDF structure containing profiles, rules, values and results. </div></div> <div class="ttc" id="structxccdf__setvalue_html"><div class="ttname"><a href="structxccdf__setvalue.html">xccdf_setvalue</a></div><div class="ttdoc">XCCDF set value option used in the profile. </div><div class="ttdef"><b>Definition:</b> item.h:274</div></div> <div class="ttc" id="structxccdf__check_html"><div class="ttname"><a href="structxccdf__check.html">xccdf_check</a></div><div class="ttdoc">XCCDF simple or complex check. </div><div class="ttdef"><b>Definition:</b> item.h:284</div></div> <div class="ttc" id="structxccdf__value_html"><div class="ttname"><a href="structxccdf__value.html">xccdf_value</a></div><div class="ttdoc">XCCDF Value allows test parametrization or capturing output of tests. </div><div class="ttdef"><b>Definition:</b> xccdf_benchmark.h:216</div></div> <div class="ttc" id="structxccdf__group_html"><div class="ttname"><a href="structxccdf__group.html">xccdf_group</a></div><div class="ttdoc">XCCDF rule group. </div><div class="ttdef"><b>Definition:</b> xccdf_benchmark.h:210</div></div> <div class="ttc" id="structxccdf__fixtext_html"><div class="ttname"><a href="structxccdf__fixtext.html">xccdf_fixtext</a></div><div class="ttdoc">XCCDF textual fix instructions. </div><div class="ttdef"><b>Definition:</b> item.h:334</div></div> <div class="ttc" id="structxccdf__result_html"><div class="ttname"><a href="structxccdf__result.html">xccdf_result</a></div><div class="ttdoc">Actual results of running a XCCDF test or profile. </div><div class="ttdef"><b>Definition:</b> xccdf_benchmark.h:222</div></div> <div class="ttc" id="xccdf__benchmark_8h_html"><div class="ttname"><a href="xccdf__benchmark_8h.html">xccdf_benchmark.h</a></div><div class="ttdoc">Open-scap XCCDF library interface. </div></div> <div class="ttc" id="structxccdf__override_html"><div class="ttname"><a href="structxccdf__override.html">xccdf_override</a></div><div class="ttdoc">XCCDF override. </div><div class="ttdef"><b>Definition:</b> item.h:374</div></div> <div class="ttc" id="structxccdf__rule__result_html"><div class="ttname"><a href="structxccdf__rule__result.html">xccdf_rule_result</a></div><div class="ttdoc">XCCDF rule result. </div><div class="ttdef"><b>Definition:</b> item.h:343</div></div> <div class="ttc" id="structxccdf__status_html"><div class="ttname"><a href="structxccdf__status.html">xccdf_status</a></div><div class="ttdoc">XCCDF item status. </div><div class="ttdef"><b>Definition:</b> item.h:242</div></div> <div class="ttc" id="structxccdf__ident_html"><div class="ttname"><a href="structxccdf__ident.html">xccdf_ident</a></div><div class="ttdoc">XCCDF rule ident URI. </div><div class="ttdef"><b>Definition:</b> item.h:279</div></div> <div class="ttc" id="structxccdf__rule_html"><div class="ttname"><a href="structxccdf__rule.html">xccdf_rule</a></div><div class="ttdoc">XCCDF rule defines a test execution. </div><div class="ttdef"><b>Definition:</b> xccdf_benchmark.h:204</div></div> <div class="ttc" id="structxccdf__profile_html"><div class="ttname"><a href="structxccdf__profile.html">xccdf_profile</a></div><div class="ttdoc">XCCDF profile is a set of tests and their settings in a compact package. </div><div class="ttdef"><b>Definition:</b> xccdf_benchmark.h:192</div></div> <div class="ttc" id="structxccdf__fix_html"><div class="ttname"><a href="structxccdf__fix.html">xccdf_fix</a></div><div class="ttdoc">XCCDF automatic fix. </div><div class="ttdef"><b>Definition:</b> item.h:323</div></div> <div class="ttc" id="structxccdf__target__identifier_html"><div class="ttname"><a href="structxccdf__target__identifier.html">xccdf_target_identifier</a></div><div class="ttdoc">Can be either <target-id-ref> or some other element. </div><div class="ttdef"><b>Definition:</b> item.h:393</div></div> <div class="ttc" id="structxccdf__warning_html"><div class="ttname"><a href="structxccdf__warning.html">xccdf_warning</a></div><div class="ttdoc">XCCDF warning. </div><div class="ttdef"><b>Definition:</b> item.h:232</div></div> <div class="ttc" id="structxccdf__item_html"><div class="ttname"><a href="structxccdf__item.html">xccdf_item</a></div><div class="ttdoc">A base class for XCCDF items. </div><div class="ttdef"><b>Definition:</b> item.h:219</div></div> </div><!-- fragment --></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.6 </small></address> </body> </html>