Open SCAP Library
cve_priv.h
Go to the documentation of this file.
1 
11 /*
12  * Copyright 2009 Red Hat Inc., Durham, North Carolina.
13  * All Rights Reserved.
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28  *
29  * Authors:
30  * Maros Barabas <mbarabas@redhat.com>
31  */
32 
33 #ifndef CVE_PRIV_H_
34 #define CVE_PRIV_H_
35 
36 #include <libxml/xmlreader.h>
37 #include <libxml/xmlwriter.h>
38 
39 #include "../common/list.h"
40 #include "../common/elements.h"
41 
45  /* @endcond */
46 
51 struct cve_model;
56 struct cve_entry;
61 struct cve_summary;
66 struct cve_product;
71 struct cve_configuration;
76 struct cwe_entry;
81 struct cve_reference;
82 
88 struct cve_model *cve_model_parse_xml(const char *file);
89 
95 struct cve_model *cve_model_parse(xmlTextReaderPtr reader);
96 
102 struct cve_entry *cve_entry_parse(xmlTextReaderPtr reader);
103 
109 void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer);
110 
116 void cve_model_export_xml(struct cve_model *cve, const char *file);
117 
123 void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer);
124 
130 void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer);
131 
137 void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer);
138 
142  /* @endcond */
143 
144 #endif
cve_export
void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer)
Export CVE model to XML file.
Definition: cve_priv.c:638
cve_entry_parse
struct cve_entry * cve_entry_parse(xmlTextReaderPtr reader)
Parse CVE entry.
Definition: cve_priv.c:462
cve_model_parse
struct cve_model * cve_model_parse(xmlTextReaderPtr reader)
Parse CVE model.
Definition: cve_priv.c:428
cve_summary_export
void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer)
Export CVE summary to XML file.
Definition: cve_priv.c:701
cve_product
Definition: cve_priv.c:99
cve_reference
Definition: cve_priv.c:77
cwe_entry
Definition: cve_priv.c:106
cve_entry
Definition: cve_priv.c:121
cve_summary
Definition: cve_priv.c:92
cve_reference_export
void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer)
Export CVE reference to XML file.
Definition: cve_priv.c:662
cve_entry_export
void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer)
Export CVE entry to XML file.
Definition: cve_priv.c:715
cve_configuration
Definition: cve_priv.c:113
cve_model
Definition: cve_priv.c:65
cve_model_export_xml
void cve_model_export_xml(struct cve_model *cve, const char *file)
Export CVE model to XML file.
Definition: cve_priv.c:610
cve_model_parse_xml
struct cve_model * cve_model_parse_xml(const char *file)
Parse CVE model from XML (private function)
Definition: cve_priv.c:399