Interface to Common Vulnerability Scoring System Version 2. More...
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include <string.h>
#include "cvss_priv.h"
#include "public/cvss.h"
#include "../common/list.h"
#include "../common/_error.h"
Data Structures | |
struct | cvss_entry |
Struct holding CVSS entry data. More... | |
struct | cvss_map_ac |
struct | cvss_map_auth |
struct | cvss_map_imp |
Defines | |
#define | TAG_CVSS_STR BAD_CAST "cvss" |
#define | TAG_BASE_METRICS_STR BAD_CAST "base_metrics" |
#define | TAG_SCORE_STR BAD_CAST "score" |
#define | TAG_ACCESS_VECTOR_STR BAD_CAST "access-vector" |
#define | TAG_ACCESS_COMPLEXITY_STR BAD_CAST "access-complexity" |
#define | TAG_AUTHENTICATION_STR BAD_CAST "authentication" |
#define | TAG_CONFIDENTIALITY_IMPACT_STR BAD_CAST "confidentiality-impact" |
#define | TAG_INTEGRITY_IMPACT_STR BAD_CAST "integrity-impact" |
#define | TAG_AVAILABILITY_IMPACT_STR BAD_CAST "availability-impact" |
#define | TAG_GENERATED_ON_DATETIME_STR BAD_CAST "generated-on-datetime" |
#define | TAG_SOURCE_STR BAD_CAST "source" |
#define | NS_VULN_STR BAD_CAST "vuln" |
#define | NS_CVSS_STR BAD_CAST "cvss" |
Functions | |
OSCAP_ACCESSOR_STRING (OSCAP_ACCESSOR_STRING(cvss_entry, score) | |
int | cvss_map_av_get (const char *string) |
int | cvss_map_ac_get (const char *string) |
int | cvss_map_auth_get (const char *string) |
int | cvss_map_imp_get (const char *string) |
struct cvss_entry * | cvss_entry_new () |
void | cvss_entry_free (struct cvss_entry *entry) |
struct cvss_entry * | cvss_entry_parse (xmlTextReaderPtr reader) |
Parse CVSS entry. | |
void | cvss_entry_export (const struct cvss_entry *entry, xmlTextWriterPtr writer) |
Export CVSS entry. |
Interface to Common Vulnerability Scoring System Version 2.
See details at http://nvd.nist.gov/cvss.cfm
void cvss_entry_export | ( | const struct cvss_entry * | entry, | |
xmlTextWriterPtr | writer | |||
) |
Export CVSS entry.
entry | CVSS entry | |
writer | XML Text Writer representing XML model |
struct cvss_entry* cvss_entry_parse | ( | xmlTextReaderPtr | reader | ) | [read] |
Parse CVSS entry.
reader | XML Text Reader representing XML model |