#include "public/cpe_dict.h"
#include "cpedict_priv.h"
#include "common/list.h"
#include "common/util.h"
#include "common/_error.h"
#include "common/xmlns_priv.h"
#include "common/elements.h"
#include "common/xmltext_priv.h"
#include "source/oscap_source_priv.h"
#include "source/public/oscap_source.h"
#include <string.h>
Defines | |
#define | CPE_DICT_SUPPORTED "2.3" |
Functions | |
struct cpe_dict_model * | cpe_dict_model_import_source (struct oscap_source *source) |
Load new CPE dictionary from an oscap_source cpe_dict_model. | |
struct cpe_dict_model * | cpe_dict_model_import (const char *file) |
Load new CPE dictionary from file cpe_dict_model. | |
bool | cpe_dict_model_set_origin_file (struct cpe_dict_model *dict, const char *origin_file) |
Sets the origin file hint. | |
const char * | cpe_dict_model_get_origin_file (const struct cpe_dict_model *dict) |
Gets the file the CPE dict model was loaded from. | |
void | cpe_dict_model_export (const struct cpe_dict_model *dict, const char *file) |
Write the dict_model to a file. | |
bool | cpe_name_match_dict (struct cpe_name *cpe, struct cpe_dict_model *dict) |
Verify wether given CPE is known according to specified dictionary cpe_name cpe_dict_model. | |
bool | cpe_name_match_dict_str (const char *cpestr, struct cpe_dict_model *dict) |
Verify if CPE given by string is known according to specified dictionary cpe_name cpe_dict_model. | |
bool | cpe_name_applicable_dict (struct cpe_name *cpe, struct cpe_dict_model *dict, cpe_check_fn cb, void *usr) |
Verify whether given CPE is applicable to current platform by evaluating checks associated with it. | |
bool | cpe_item_is_applicable (struct cpe_item *item, cpe_check_fn cb, void *usr) |
cpe_item | |
const char * | cpe_dict_model_supported (void) |
Get the newest supported version of CPE dictionary XML. | |
char * | cpe_dict_detect_version_priv (xmlTextReader *reader) |
Get a version info from xmlTextReader. | |
char * | cpe_dict_detect_version (const char *file) |
Detects which version the given CPE file is. |
See more details at http://nvd.nist.gov/cpe.cfm
char* cpe_dict_detect_version_priv | ( | xmlTextReader * | reader | ) |
Get a version info from xmlTextReader.
reader | xmlTextReader |