Open SCAP Library: cve_priv.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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 OSCAP_HIDDEN_START;
46 /* @endcond */
47
52 struct cve_model;
57 struct cve_entry;
62 struct cve_summary;
67 struct cve_product;
72 struct cve_configuration;
77 struct cwe_entry;
82 struct cve_reference;
83
89 struct cve_model *cve_model_parse_xml(const char *file);
90
96 struct cve_model *cve_model_parse(xmlTextReaderPtr reader);
97
103 struct cve_entry *cve_entry_parse(xmlTextReaderPtr reader);
104
110 void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer);
111
117 void cve_model_export_xml(struct cve_model *cve, const char *file);
118
124 void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer);
125
131 void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer);
132
138 void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer);
139
143 OSCAP_HIDDEN_END;
144 /* @endcond */
145
146 #endif
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:395
cve_model
Structure holding CVE model.
Definition: cve_priv.c:65
cve_reference
Structure holding CVE reference data.
Definition: cve_priv.c:77
cve_entry_parse
struct cve_entry * cve_entry_parse(xmlTextReaderPtr reader)
Parse CVE entry.
Definition: cve_priv.c:458
cve_configuration
Structure CVE vulnerable configuration data.
Definition: cve_priv.c:113
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:586
cve_summary_export
void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer)
Export CVE summary to XML file.
Definition: cve_priv.c:677
cve_reference_export
void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer)
Export CVE reference to XML file.
Definition: cve_priv.c:638
cve_product
Structure holding CVE product data.
Definition: cve_priv.c:99
cve_export
void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer)
Export CVE model to XML file.
Definition: cve_priv.c:614
cwe_entry
Structure holding CWE data.
Definition: cve_priv.c:106
cve_entry
Structure holding CVE entry data.
Definition: cve_priv.c:121
cve_entry_export
void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer)
Export CVE entry to XML file.
Definition: cve_priv.c:691
cve_model_parse
struct cve_model * cve_model_parse(xmlTextReaderPtr reader)
Parse CVE model.
Definition: cve_priv.c:424
cve_summary
Structure holding CVE summary data.
Definition: cve_priv.c:92