Open SCAP Library
Loading...
Searching...
No Matches
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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
51struct cve_model;
56struct cve_entry;
61struct cve_summary;
66struct cve_product;
76struct cwe_entry;
81struct cve_reference;
82
88struct cve_model *cve_model_parse_xml(const char *file);
89
95struct cve_model *cve_model_parse(xmlTextReaderPtr reader);
96
102struct cve_entry *cve_entry_parse(xmlTextReaderPtr reader);
103
109void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer);
110
116void cve_model_export_xml(struct cve_model *cve, const char *file);
117
123void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer);
124
130void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer);
131
137void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer);
138
142 /* @endcond */
143
144#endif
struct cve_entry * cve_entry_parse(xmlTextReaderPtr reader)
Parse CVE entry.
Definition: cve_priv.c:462
void cve_export(const struct cve_model *cve, xmlTextWriterPtr writer)
Export CVE model to XML file.
Definition: cve_priv.c:638
void cve_summary_export(const struct cve_summary *sum, xmlTextWriterPtr writer)
Export CVE summary to XML file.
Definition: cve_priv.c:701
void cve_model_export_xml(struct cve_model *cve, const char *file)
Export CVE model to XML file.
Definition: cve_priv.c:610
struct cve_model * cve_model_parse(xmlTextReaderPtr reader)
Parse CVE model.
Definition: cve_priv.c:428
struct cve_model * cve_model_parse_xml(const char *file)
Parse CVE model from XML (private function)
Definition: cve_priv.c:399
void cve_reference_export(const struct cve_reference *refer, xmlTextWriterPtr writer)
Export CVE reference to XML file.
Definition: cve_priv.c:662
void cve_entry_export(const struct cve_entry *entry, xmlTextWriterPtr writer)
Export CVE entry to XML file.
Definition: cve_priv.c:715
Structure CVE vulnerable configuration data.
Definition: cve_priv.c:113
Structure holding CVE entry data.
Definition: cve_priv.c:121
Structure holding CVE model.
Definition: cve_priv.c:65
Structure holding CVE product data.
Definition: cve_priv.c:99
Structure holding CVE reference data.
Definition: cve_priv.c:77
Structure holding CVE summary data.
Definition: cve_priv.c:92
Structure holding CWE data.
Definition: cve_priv.c:106