Open SCAP Library
Loading...
Searching...
No Matches
Macros | Functions
cpedict.c File Reference

Interface to Common Platform Enumeration (CPE) Dictionary. More...

#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>
Include dependency graph for cpedict.c:

Macros

#define CPE_DICT_SUPPORTED   "2.3"
 

Functions

struct cpe_dict_modelcpe_dict_model_import_source (struct oscap_source *source)
 
void cpe_dict_model_export (const struct cpe_dict_model *dict, const char *file)
 
bool cpe_name_match_dict (struct cpe_name *cpe, struct cpe_dict_model *dict)
 
bool cpe_name_applicable_dict (struct cpe_name *cpe, struct cpe_dict_model *dict, cpe_check_fn cb, void *usr)
 
bool cpe_item_is_applicable (struct cpe_item *item, cpe_check_fn cb, void *usr)
 
const char * cpe_dict_model_supported (void)
 
char * cpe_dict_detect_version_priv (xmlTextReader *reader)
 Get a version info from xmlTextReader.
 

Detailed Description

Interface to Common Platform Enumeration (CPE) Dictionary.

See more details at http://nvd.nist.gov/cpe.cfm

Function Documentation

◆ cpe_dict_detect_version_priv()

char * cpe_dict_detect_version_priv ( xmlTextReader * reader)

Get a version info from xmlTextReader.

Parameters
readerxmlTextReader
Returns
version string that shall be disposed by caller