Sophie

Sophie

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

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

\hypertarget{structcvss__entry}{
\section{cvss\_\-entry Struct Reference}
\label{structcvss__entry}\index{cvss\_\-entry@{cvss\_\-entry}}
}


Struct holding CVSS entry data.  


{\ttfamily \#include $<$cvss\_\-priv.h$>$}\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcvss__entry_a110be223710a7b00f63ee06dd637276c}{
char $\ast$ {\bfseries score}}
\label{structcvss__entry_a110be223710a7b00f63ee06dd637276c}

\item 
\hypertarget{structcvss__entry_a4ab9d0381c4cd3a42037ff1662531d23}{
char $\ast$ {\bfseries AV}}
\label{structcvss__entry_a4ab9d0381c4cd3a42037ff1662531d23}

\item 
\hypertarget{structcvss__entry_a6f6692fb1903b5263a79ba0a8a3771d5}{
char $\ast$ {\bfseries AC}}
\label{structcvss__entry_a6f6692fb1903b5263a79ba0a8a3771d5}

\item 
\hypertarget{structcvss__entry_a9b2e63a167506f305ba98d96648d5478}{
char $\ast$ {\bfseries authentication}}
\label{structcvss__entry_a9b2e63a167506f305ba98d96648d5478}

\item 
\hypertarget{structcvss__entry_aaf92894756e97a87dcecfe173cbaec32}{
char $\ast$ {\bfseries imp\_\-confidentiality}}
\label{structcvss__entry_aaf92894756e97a87dcecfe173cbaec32}

\item 
\hypertarget{structcvss__entry_a4741457583f464dcc1bb6cf7fc28aea3}{
char $\ast$ {\bfseries imp\_\-integrity}}
\label{structcvss__entry_a4741457583f464dcc1bb6cf7fc28aea3}

\item 
\hypertarget{structcvss__entry_a4cf392f4433268dd52b5b0ffca718325}{
char $\ast$ {\bfseries imp\_\-availability}}
\label{structcvss__entry_a4cf392f4433268dd52b5b0ffca718325}

\item 
\hypertarget{structcvss__entry_a977ce317bdd12e343ba2efc07622000b}{
char $\ast$ {\bfseries source}}
\label{structcvss__entry_a977ce317bdd12e343ba2efc07622000b}

\item 
\hypertarget{structcvss__entry_a7c326bdb4732c09744d7c99f41b302b2}{
char $\ast$ {\bfseries generated}}
\label{structcvss__entry_a7c326bdb4732c09744d7c99f41b302b2}

\end{DoxyCompactItemize}
\subsection*{Related Functions}
(Note that these are not 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{structcvss__entry}{cvss\_\-entry} $\ast$ \hyperlink{group__CVSSPrivate_gad0fe4c019ce63487133295df23cea7a0}{cvss\_\-entry\_\-parse} (xmlTextReaderPtr reader)
\begin{DoxyCompactList}\small\item\em Parse CVSS entry. \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__CVSSPrivate_gada625a1322a5ac2ea63e5ea3afaf8719}{cvss\_\-entry\_\-export} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, xmlTextWriterPtr writer)
\begin{DoxyCompactList}\small\item\em Export CVSS entry. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Set functions}\par
{\em \label{_amgrp8b7ecf2f4bd25da1aae981677901d55d}
Set functions assign values to members of structures except lists.

For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller. }\begin{DoxyCompactItemize}
\item 
bool \hyperlink{group__CVSS_ga8d84f6ec61dd6f895acdfba14ed0e642}{cvss\_\-entry\_\-set\_\-score} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-score)
\begin{DoxyCompactList}\small\item\em Set of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga85b27c0845cee337a308a010090122fe}{cvss\_\-entry\_\-set\_\-AV} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-AV)
\begin{DoxyCompactList}\small\item\em Set access vector of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga55c2c8908553d144dec1cfbd3c543cd8}{cvss\_\-entry\_\-set\_\-AC} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-AC)
\begin{DoxyCompactList}\small\item\em Set access complexity of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga39187f57af2103da2cf1797b083c1ad9}{cvss\_\-entry\_\-set\_\-authentication} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-authentication)
\begin{DoxyCompactList}\small\item\em Set authentication of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_gafdca34c98464178049a520a8b155dc9a}{cvss\_\-entry\_\-set\_\-imp\_\-confidentiality} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-item)
\begin{DoxyCompactList}\small\item\em Set confidentiality impact of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga34ff47528aa91b62c7c0f7fe848c4c45}{cvss\_\-entry\_\-set\_\-imp\_\-integrity} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-item)
\begin{DoxyCompactList}\small\item\em Set integrity impact of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga08355043529fa595668b68720516feb4}{cvss\_\-entry\_\-set\_\-imp\_\-availability} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-item)
\begin{DoxyCompactList}\small\item\em Set availability impact of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga05fd7639fe9882c87df4aba240c0b1ad}{cvss\_\-entry\_\-set\_\-source} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-source)
\begin{DoxyCompactList}\small\item\em Set source of CVSS entry. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVSS_ga27f5a60fe5320c17a8d0b31c8f648047}{cvss\_\-entry\_\-set\_\-generated} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry, const char $\ast$new\_\-generated)
\begin{DoxyCompactList}\small\item\em Set generated date-\/time of CVSS entry. \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{structcvss__entry}{cvss\_\-entry} $\ast$ \hyperlink{group__CVSS_gac22e9720255da64ad61254e9f83a217a}{cvss\_\-entry\_\-new} (void)
\begin{DoxyCompactList}\small\item\em New CVSS entry. \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__CVSS_gadf17b884bb1f6a4bf8060dca0c1985b8}{cvss\_\-entry\_\-free} (struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Free CVSS entry. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Get functions}
\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 
const char $\ast$ \hyperlink{group__CVSS_gace7bd1259aba5ec54efa3ed38bab87d4}{cvss\_\-entry\_\-get\_\-score} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get score from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_ga8cfc7b2fefdee65e6d58b84402164c05}{cvss\_\-entry\_\-get\_\-AV} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get access vector from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_gae21e77d6573a0ee1420a9ca82a7be75c}{cvss\_\-entry\_\-get\_\-AC} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get access complexity from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_ga0d2b448084aae54a11ef0ea40cfa4626}{cvss\_\-entry\_\-get\_\-authentication} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get authentication from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_ga2a0c39ead4bd61db45d5cffb87dae5e8}{cvss\_\-entry\_\-get\_\-imp\_\-confidentiality} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get confidentiality impact from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_ga47101f9f9df15a9ac9e0c663d1bc5d36}{cvss\_\-entry\_\-get\_\-imp\_\-integrity} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get integrity impact from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_gae294a548923b0737967ad61062413ede}{cvss\_\-entry\_\-get\_\-imp\_\-availability} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get availability impact from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_ga37520cd0e3901deca807f10d7b3705ec}{cvss\_\-entry\_\-get\_\-source} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get source from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_ga013f35141b2e82821e7c59ab73542e85}{cvss\_\-entry\_\-get\_\-generated} (const struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$entry)
\begin{DoxyCompactList}\small\item\em Get generated date-\/time from CVSS entry. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVSS_gab5eff9009d32f324ea52d1a2c4a109de}{cvss\_\-model\_\-supported} (void)
\begin{DoxyCompactList}\small\item\em Get supported version of CVSS XML. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Struct holding CVSS entry data. Structure holding CVSS model. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVSS/\hyperlink{cvss__priv_8c}{cvss\_\-priv.c}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVSS/\hyperlink{cvss__priv_8h}{cvss\_\-priv.h}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVSS/public/\hyperlink{cvss_8h}{cvss.h}\end{DoxyCompactItemize}