Open SCAP Library
|
00001 /* 00002 * Copyright 2009 Red Hat Inc., Durham, North Carolina. 00003 * Copyright (C) 2010 Tresys Technology, LLC 00004 * All Rights Reserved. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 * Authors: 00021 * Josh Adams <jadams@tresys.com> 00022 */ 00023 00024 #ifndef XCCDF_IMPL 00025 #define XCCDF_IMPL 00026 00027 #include <libxml/xmlreader.h> 00028 #include <public/xccdf.h> 00029 #include <../common/util.h> 00030 00031 OSCAP_HIDDEN_START; 00032 00033 #define XCCDF_BASE_NAMESPACE BAD_CAST "http://checklists.nist.gov/xccdf/1.1" 00034 #define XCCDF_DC_NAMESPACE BAD_CAST "http://purl.org/dc/elements/1.1/" 00035 #define XCCDF_CDF_NAMESPACE BAD_CAST "http://checklists.nist.gov/xccdf/1.1" 00036 #define XCCDF_CPE_NAMESPACE BAD_CAST "http://cpe.mitre.org/dictionary/2.0" 00037 #define XCCDF_DSIG_NAMESPACE BAD_CAST "http://w3.org/2000/09/xmldsig#" 00038 #define XCCDF_XHTML_NAMESPACE BAD_CAST "http://www.w3.org/1999/xhtml" 00039 #define XCCDF_XSI_NAMESPACE BAD_CAST "http://www.w3.org/2001/XMLSchema-instance" 00040 00041 #define XCCDF_SCHEMA_LOCATION BAD_CAST "http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.4.xsd" 00042 00043 xmlNode *xccdf_benchmark_to_dom(struct xccdf_benchmark *benchmark, xmlDocPtr doc, 00044 xmlNode *parent, void *user_args); 00045 xmlNode *xccdf_item_to_dom(struct xccdf_item *item, xmlDoc *doc, xmlNode *parent); 00046 xmlNode *xccdf_profile_note_to_dom(struct xccdf_profile_note *note, xmlDoc *doc, xmlNode *parent); 00047 xmlNode *xccdf_fixtext_to_dom(struct xccdf_fixtext *fixtext, xmlDoc *doc, xmlNode *parent); 00048 xmlNode *xccdf_fix_to_dom(struct xccdf_fix *fix, xmlDoc *doc, xmlNode *parent); 00049 xmlNode *xccdf_status_to_dom(struct xccdf_status *status, xmlDoc *doc, xmlNode *parent); 00050 xmlNode *xccdf_warning_to_dom(struct xccdf_warning *warning, xmlDoc *doc, xmlNode *parent); 00051 xmlNode *xccdf_check_to_dom(struct xccdf_check *check, xmlDoc *doc, xmlNode *parent); 00052 void xccdf_rule_to_dom(struct xccdf_rule *rule, xmlNode *rule_node, xmlDoc *doc, xmlNode *parent); 00053 void xccdf_value_to_dom(struct xccdf_value *value, xmlNode *value_node, xmlDoc *doc, xmlNode *parent); 00054 void xccdf_group_to_dom(struct xccdf_group *group, xmlNode *group_node, xmlDoc *doc, xmlNode *parent); 00055 void xccdf_profile_to_dom(struct xccdf_profile *profile, xmlNode *profile_node, xmlDoc *doc, xmlNode *parent); 00056 void xccdf_result_to_dom(struct xccdf_result *result, xmlNode *result_node, xmlDoc *doc, xmlNode *parent); 00057 xmlNode *xccdf_rule_result_to_dom(struct xccdf_rule_result *result, xmlDoc *doc, xmlNode *parent); 00058 xmlNode *xccdf_ident_to_dom(struct xccdf_ident *ident, xmlDoc *doc, xmlNode *parent); 00059 xmlNode *xccdf_setvalue_to_dom(struct xccdf_setvalue *setvalue, xmlDoc *doc, xmlNode *parent); 00060 xmlNode *xccdf_override_to_dom(struct xccdf_override *override, xmlDoc *doc, xmlNode *parent); 00061 00062 OSCAP_HIDDEN_END; 00063 00064 #endif