\hypertarget{structcve__entry}{ \section{cve\_\-entry Struct Reference} \label{structcve__entry}\index{cve\_\-entry@{cve\_\-entry}} } Structure holding CVE entry data. {\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__entry}{cve\_\-entry} $\ast$ \hyperlink{group__CVEPrivate_ga2fb69cce7477e42284924a42dded9763}{cve\_\-entry\_\-parse} (xmlTextReaderPtr reader) \begin{DoxyCompactList}\small\item\em Parse CVE 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__CVEPrivate_gaf9b081ed4f93096e68a945e2b4a56461}{cve\_\-entry\_\-export} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, xmlTextWriterPtr writer) \begin{DoxyCompactList}\small\item\em Export CVE entry 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{structcve__entry__iterator}{cve\_\-entry\_\-iterator} $\ast$ \hyperlink{group__CVE_ga6c0559319c41b84a79c42d0125e7bead}{cve\_\-model\_\-get\_\-entries} (const struct \hyperlink{structcve__model}{cve\_\-model} $\ast$\hyperlink{structcve__model}{cve\_\-model}) \begin{DoxyCompactList}\small\item\em Get en iterator to CVE entries. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{group__CVE_gacfe04d0908821755400cc9ce0499a04a}{cve\_\-entry\_\-get\_\-id} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$item) \begin{DoxyCompactList}\small\item\em Get CVE entry ID. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{group__CVE_gab1e298fe4686a8ca10e8e1743fa7a25b}{cve\_\-entry\_\-get\_\-cwe} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$item) \begin{DoxyCompactList}\small\item\em Get CVE entry CWE. \item\end{DoxyCompactList}\item struct \hyperlink{structcve__summary__iterator}{cve\_\-summary\_\-iterator} $\ast$ \hyperlink{group__CVE_ga14a12fe41900b182f931036a9f5e3985}{cve\_\-entry\_\-get\_\-summaries} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$item) \begin{DoxyCompactList}\small\item\em Get CVE entry summary. \item\end{DoxyCompactList}\item struct \hyperlink{structcve__reference__iterator}{cve\_\-reference\_\-iterator} $\ast$ \hyperlink{group__CVE_ga65ea73a356d65b40bd762715544ffda8}{cve\_\-entry\_\-get\_\-references} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$item) \begin{DoxyCompactList}\small\item\em Get an iterator to CVE entry's references. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{group__CVE_ga21d4051a634306e5fbed80bea417ce50}{cwe\_\-entry\_\-get\_\-value} (const struct \hyperlink{structcwe__entry}{cwe\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Get CVE entry value. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{group__CVE_gac3d36ed79d2cef94deb794acc842f044}{cve\_\-entry\_\-get\_\-published} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Get CVE entry published date. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{group__CVE_gaecdcf4a431a138256189a4f7db2915e7}{cve\_\-entry\_\-get\_\-modified} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Get CVE entry modified. \item\end{DoxyCompactList}\item const char $\ast$ \hyperlink{group__CVE_ga4825c77c766209270e22e5091c36124d}{cve\_\-entry\_\-get\_\-sec\_\-protection} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Get CVE entry protection. \item\end{DoxyCompactList}\item struct \hyperlink{structcve__product__iterator}{cve\_\-product\_\-iterator} $\ast$ \hyperlink{group__CVE_gaeaf693667a6be5206b93115d9376b01b}{cve\_\-entry\_\-get\_\-products} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Get CVE entry products. \item\end{DoxyCompactList}\item struct \hyperlink{structcve__configuration__iterator}{cve\_\-configuration\_\-iterator} $\ast$ \hyperlink{group__CVE_gabfc55b43fec27e5d0d4909aa70fa6b1d}{cve\_\-entry\_\-get\_\-configurations} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Get CVE . \item\end{DoxyCompactList}\item struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$ \hyperlink{group__CVE_ga506ec7b3cbffb45eeb53d588acb9f4a1}{cve\_\-entry\_\-get\_\-cvss} (const struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$item) \begin{DoxyCompactList}\small\item\em Get CVSS structure from CVE. \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_gab8c42486b472130a692b942402a52e51}{cve\_\-entry\_\-add\_\-product} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, struct \hyperlink{structcve__product}{cve\_\-product} $\ast$new\_\-product) \item bool \hyperlink{group__CVE_ga56861fdd2a2155d04b862a90d26386ed}{cve\_\-entry\_\-add\_\-reference} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$new\_\-reference) \item bool \hyperlink{group__CVE_gaaef57a0f6d5a61373df62d07b84d8afe}{cve\_\-entry\_\-add\_\-summary} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, struct \hyperlink{structcve__summary}{cve\_\-summary} $\ast$new\_\-summary) \item bool \hyperlink{group__CVE_ga7920b4204de8bde9190ec2de9eb948a2}{cve\_\-entry\_\-add\_\-configuration} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, struct \hyperlink{structcve__configuration}{cve\_\-configuration} $\ast$new\_\-configuration) \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__CVE_gab1109126271493e2c0db33b7f082eb4b}{cve\_\-entry\_\-set\_\-id} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, const char $\ast$new\_\-id) \begin{DoxyCompactList}\small\item\em Set id of CVE entry. \item\end{DoxyCompactList}\item bool \hyperlink{group__CVE_ga9f822a6af27ec49bbfbf2f604bb0cddb}{cve\_\-entry\_\-set\_\-published} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, const char $\ast$new\_\-published) \begin{DoxyCompactList}\small\item\em Set publish date of CVE entry. \item\end{DoxyCompactList}\item bool \hyperlink{group__CVE_ga946e084826674065ef4a862fae650b10}{cve\_\-entry\_\-set\_\-modified} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, const char $\ast$new\_\-modified) \begin{DoxyCompactList}\small\item\em Set modified date of CVE entry. \item\end{DoxyCompactList}\item bool \hyperlink{group__CVE_ga88ec4f6394ad5fce2e670a4d98994226}{cve\_\-entry\_\-set\_\-sec\_\-protection} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, const char $\ast$new\_\-protection) \begin{DoxyCompactList}\small\item\em Set protection of CVE entry. \item\end{DoxyCompactList}\item bool \hyperlink{group__CVE_gaab16504e6ad7113aa6763574dfcc956d}{cve\_\-entry\_\-set\_\-cwe} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry, const char $\ast$cwe) \begin{DoxyCompactList}\small\item\em Set cwe of CVE entry. \item\end{DoxyCompactList}\item bool \hyperlink{group__CVE_ga4bcc1c1d653e2e9963337982dabb5eb1}{cwe\_\-entry\_\-set\_\-value} (struct \hyperlink{structcwe__entry}{cwe\_\-entry} $\ast$entry, const char $\ast$new\_\-value) \begin{DoxyCompactList}\small\item\em Set value of CVE 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{structcve__entry}{cve\_\-entry} $\ast$ \hyperlink{group__CVE_ga0731dd5ffd1384827771a520706c982b}{cve\_\-entry\_\-new} (void) \begin{DoxyCompactList}\small\item\em New CVE 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__CVE_gae7281f9b58c72b3c75263a332d2d72be}{cve\_\-entry\_\-free} (struct \hyperlink{structcve__entry}{cve\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Free CVE entry. \item\end{DoxyCompactList}\item void \hyperlink{group__CVE_ga2bd952914d92486a9e70a1af5ae241f2}{cwe\_\-entry\_\-free} (struct \hyperlink{structcwe__entry}{cwe\_\-entry} $\ast$entry) \begin{DoxyCompactList}\small\item\em Free CVE entry. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \end{Indent} \subsection*{Data Fields} \begin{DoxyCompactItemize} \item \hypertarget{structcve__entry_a38bd9248b4b2a1754e76c633e6ffb047}{ struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}} \label{structcve__entry_a38bd9248b4b2a1754e76c633e6ffb047} \item \hypertarget{structcve__entry_a8866c847c283833ddd8ddd137bfd7d91}{ char $\ast$ {\bfseries id}} \label{structcve__entry_a8866c847c283833ddd8ddd137bfd7d91} \item \hypertarget{structcve__entry_a5ae1547c106533e8ebd334946c076091}{ char $\ast$ {\bfseries cve\_\-id}} \label{structcve__entry_a5ae1547c106533e8ebd334946c076091} \item \hypertarget{structcve__entry_a636fdb49e2b410740702afd44a8687d0}{ struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries products}} \label{structcve__entry_a636fdb49e2b410740702afd44a8687d0} \item \hypertarget{structcve__entry_a7f2d34b4da3eac6ced35dbdf9d700937}{ char $\ast$ {\bfseries published}} \label{structcve__entry_a7f2d34b4da3eac6ced35dbdf9d700937} \item \hypertarget{structcve__entry_a11024c1f2a6a9e87c98e71a4eeda82ab}{ char $\ast$ {\bfseries modified}} \label{structcve__entry_a11024c1f2a6a9e87c98e71a4eeda82ab} \item \hypertarget{structcve__entry_aa0f3e53b1929cd92dc0808a75eb15e56}{ struct \hyperlink{structcvss__entry}{cvss\_\-entry} $\ast$ {\bfseries cvss}} \label{structcve__entry_aa0f3e53b1929cd92dc0808a75eb15e56} \item \hypertarget{structcve__entry_a0dd1d249bf5241bcbf8f77dd4253ce5d}{ char $\ast$ {\bfseries sec\_\-protection}} \label{structcve__entry_a0dd1d249bf5241bcbf8f77dd4253ce5d} \item \hypertarget{structcve__entry_a616adc5c5d8b584a7d0246c02c40666f}{ char $\ast$ {\bfseries cwe}} \label{structcve__entry_a616adc5c5d8b584a7d0246c02c40666f} \item \hypertarget{structcve__entry_a7ba3b361f8ebbc69a0c14efdea718786}{ struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries summaries}} \label{structcve__entry_a7ba3b361f8ebbc69a0c14efdea718786} \item \hypertarget{structcve__entry_ada4cd5dac96e2d424ecca2a51f6b98a8}{ struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries references}} \label{structcve__entry_ada4cd5dac96e2d424ecca2a51f6b98a8} \item \hypertarget{structcve__entry_a5ef50e19d586cc44c355ccbdfb2df5c5}{ struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries configurations}} \label{structcve__entry_a5ef50e19d586cc44c355ccbdfb2df5c5} \end{DoxyCompactItemize} \subsection{Detailed Description} Structure holding CVE entry data. 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}