00001 00017 /* 00018 * Copyright 2008 Red Hat Inc., Durham, North Carolina. 00019 * All Rights Reserved. 00020 * 00021 * This library is free software; you can redistribute it and/or 00022 * modify it under the terms of the GNU Lesser General Public 00023 * License as published by the Free Software Foundation; either 00024 * version 2.1 of the License, or (at your option) any later version. 00025 * 00026 * This library is distributed in the hope that it will be useful, 00027 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00028 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00029 * Lesser General Public License for more details. 00030 * 00031 * You should have received a copy of the GNU Lesser General Public 00032 * License along with this library; if not, write to the Free Software 00033 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00034 * 00035 * Authors: 00036 * Maros Barabas <mbarabas@redhat.com> 00037 */ 00038 00039 #ifndef CVSS_PRIV_H_ 00040 #define CVSS_PRIV_H_ 00041 00042 #include <libxml/xmlreader.h> 00043 #include <libxml/xmlwriter.h> 00044 00045 #include "../common/list.h" 00046 #include "../common/util.h" 00047 #include "../common/elements.h" 00048 00052 OSCAP_HIDDEN_START; 00053 /* @endcond */ 00054 00059 struct cvss_entry; 00060 00074 struct cvss_entry * cvss_entry_parse(xmlTextReaderPtr reader); 00075 00090 void cvss_entry_export(const struct cvss_entry * entry, xmlTextWriterPtr writer); 00091 00100 int cvss_map_av_get(const char * string); 00103 int cvss_map_ac_get(const char * string); 00106 int cvss_map_auth_get(const char * string); 00109 int cvss_map_imp_get(const char * string); 00110 00116 OSCAP_HIDDEN_END; 00117 /* @endcond */ 00118 00121 00122 #endif