Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 3736f276bb1ccfbcee6cb2d27b25d981 > files > 762

openscap-devel-0.5.7-1mdv2010.1.x86_64.rpm

\hypertarget{structcve__model}{
\section{cve\_\-model Struct Reference}
\label{structcve__model}\index{cve\_\-model@{cve\_\-model}}
}


cve\_\-list cve\_\-list is the top level element of the CVE List provided by MITRE.  


{\ttfamily \#include $<$cve\_\-priv.h$>$}\subsection*{Public Member Functions}
\begin{Indent}{\bf Parse functions}\par
{\em \label{_amgrp55bde346b0631e090bfc4a3be713ee4c}
Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcve__model}{cve\_\-model} $\ast$ \hyperlink{group__CVEPrivate_gaca27aa4cb28e279b387808852c8866ba}{cve\_\-model\_\-parse\_\-xml} (const struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$source)
\begin{DoxyCompactList}\small\item\em Parse CVE model from XML (private function). \item\end{DoxyCompactList}\item 
struct \hyperlink{structcve__model}{cve\_\-model} $\ast$ \hyperlink{group__CVEPrivate_gaa9c004630382a99bc8a5dc6fff389613}{cve\_\-model\_\-parse} (xmlTextReaderPtr reader)
\begin{DoxyCompactList}\small\item\em Parse CVE model. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Export functions}\par
{\em \label{_amgrp5713b34587ba18c5a4561b737b639ae5}
Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__CVEPrivate_ga72496d1817ce8a92e6662c461cd276c5}{cve\_\-export} (const struct \hyperlink{structcve__model}{cve\_\-model} $\ast$cve, xmlTextWriterPtr writer)
\begin{DoxyCompactList}\small\item\em Export CVE model to XML file. \item\end{DoxyCompactList}\item 
void \hyperlink{group__CVEPrivate_ga493ec906efb8017df07b8d3775cf20ff}{cve\_\-model\_\-export\_\-xml} (struct \hyperlink{structcve__model}{cve\_\-model} $\ast$cve, const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$target)
\begin{DoxyCompactList}\small\item\em Export CVE model to XML file. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Get functions}\par
{\em \label{_amgrpc2ac1eb4de8ec5add5567cbae2f237e5}
Functions for getting attributes from CVE model structures.

Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structxml__metadata__iterator}{xml\_\-metadata\_\-iterator} $\ast$ \hyperlink{group__CVE_gac03cbd24e33a5f7c7b207fc56fbd1686}{cve\_\-model\_\-get\_\-xmlns} (const struct \hyperlink{structcve__model}{cve\_\-model} $\ast$\hyperlink{structcve__model}{cve\_\-model})
\begin{DoxyCompactList}\small\item\em Get en iterator to XML metadatas from CVE model. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Add functions}\par
{\em \label{_amgrpaabced06c8a2e8c15954ce4b1e334884}
Functions to add member to list.

Return value is true if added succesfuly or false in case of error. }\begin{DoxyCompactItemize}
\item 
bool \hyperlink{group__CVE_gaec8f745d0f680c83f6fe74f61b1d1d8f}{cve\_\-model\_\-add\_\-entry} (struct \hyperlink{structcve__model}{cve\_\-model} $\ast$model, struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$new\_\-entry)
\begin{DoxyCompactList}\small\item\em Add entry to CVE model. \item\end{DoxyCompactList}\item 
\hypertarget{group__CVE_ga1d1df0af8af9655a11623baf7c2b9c34}{
bool \hyperlink{group__CVE_ga1d1df0af8af9655a11623baf7c2b9c34}{cve\_\-model\_\-add\_\-xml} (struct \hyperlink{structcve__model}{cve\_\-model} $\ast$model, struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml)}
\label{group__CVE_ga1d1df0af8af9655a11623baf7c2b9c34}

\begin{DoxyCompactList}\small\item\em Add XML namespace to CVE model. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf New functions}\par
{\em \label{_amgrp73a4128f20867fa23ebb2e75e58922df}
Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcve__model}{cve\_\-model} $\ast$ \hyperlink{group__CVE_ga743af6ca1c274180e587feb63599bcd6}{cve\_\-model\_\-new} (void)
\begin{DoxyCompactList}\small\item\em New CVE model. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Free functions}\par
{\em \label{_amgrp237dd65bc76b7de56066830910ced6ed}
Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions. }\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__CVE_ga43fce49d7e548907db40e89c9555b87d}{cve\_\-model\_\-free} (struct \hyperlink{structcve__model}{cve\_\-model} $\ast$\hyperlink{structcve__model}{cve\_\-model})
\begin{DoxyCompactList}\small\item\em Free CVE model. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Other functions}\par
{\em \label{_amgrpb175402ebe89f00c62233c5453c5a243}
 }\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__CVE_ga10ba15f1eb55778addf375685b80e96f}{cve\_\-model\_\-export} (struct \hyperlink{structcve__model}{cve\_\-model} $\ast$cve, const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$target)
\begin{DoxyCompactList}\small\item\em Export CVE model to XML file. \item\end{DoxyCompactList}\item 
struct \hyperlink{structcve__model}{cve\_\-model} $\ast$ \hyperlink{group__CVE_ga972a760d1eeffe1b54ad467387d16e5a}{cve\_\-model\_\-import} (const struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$source)
\begin{DoxyCompactList}\small\item\em Parses the specified XML file and creates a list of CVE data structures. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVE_ga0521ad9696a5a48d5b7f13a1b7d782d4}{cve\_\-model\_\-supported} (void)
\begin{DoxyCompactList}\small\item\em Get supported version of CVE XML. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcve__model_aed4e7417f4da06e1a5a3054a0ef8ebfb}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}}
\label{structcve__model_aed4e7417f4da06e1a5a3054a0ef8ebfb}

\item 
\hypertarget{structcve__model_a04d607e72138335cb5d6f6a5dd98144c}{
struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries xmlns}}
\label{structcve__model_a04d607e72138335cb5d6f6a5dd98144c}

\item 
\hypertarget{structcve__model_a0b98546f5f16b7239e494ba57cc084fe}{
struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries entries}}
\label{structcve__model_a0b98546f5f16b7239e494ba57cc084fe}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
cve\_\-list cve\_\-list is the top level element of the CVE List provided by MITRE. Structure holding CVE model.

It represents holds all CVE Items. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVE/\hyperlink{cve__priv_8c}{cve\_\-priv.c}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVE/\hyperlink{cve__priv_8h}{cve\_\-priv.h}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVE/public/\hyperlink{cve_8h}{cve.h}\end{DoxyCompactItemize}