00001 00019 /* 00020 * Copyright 2008 Red Hat Inc., Durham, North Carolina. 00021 * All Rights Reserved. 00022 * 00023 * This library is free software; you can redistribute it and/or 00024 * modify it under the terms of the GNU Lesser General Public 00025 * License as published by the Free Software Foundation; either 00026 * version 2.1 of the License, or (at your option) any later version. 00027 * 00028 * This library is distributed in the hope that it will be useful, 00029 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00030 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00031 * Lesser General Public License for more details. 00032 * 00033 * You should have received a copy of the GNU Lesser General Public 00034 * License along with this library; if not, write to the Free Software 00035 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00036 * 00037 * Authors: 00038 * Maros Barabas <mbarabas@redhat.com> 00039 */ 00040 00041 #ifndef CVE_PRIV_H_ 00042 #define CVE_PRIV_H_ 00043 00044 #include <libxml/xmlreader.h> 00045 #include <libxml/xmlwriter.h> 00046 00047 #include "../common/list.h" 00048 #include "../common/elements.h" 00049 00053 OSCAP_HIDDEN_START; 00054 /* @endcond */ 00055 00060 struct cve_model; 00065 struct cve_entry; 00070 struct cve_summary; 00075 struct cve_product; 00080 struct cve_configuration; 00085 struct cwe_entry; 00090 struct cve_reference; 00091 00105 struct cve_model *cve_model_parse_xml(const struct oscap_import_source *source); 00106 00113 struct cve_model *cve_model_parse(xmlTextReaderPtr reader); 00114 00121 struct cve_entry *cve_entry_parse(xmlTextReaderPtr reader); 00122 00137 void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer); 00138 00145 void cve_model_export_xml(struct cve_model *cve, const struct oscap_export_target *target); 00146 00153 void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer); 00154 00161 void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer); 00162 00169 void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer); 00170 00174 OSCAP_HIDDEN_END; 00175 /* @endcond */ 00176 00180 00182 #endif