Interface to Common Platform Enumeration (CPE) Language.
More...
#include <libxml/xmlreader.h>
#include <libxml/xmlwriter.h>
#include "cpe_lang.h"
#include "../common/util.h"
#include "../common/list.h"
#include "../common/elements.h"
#include "../common/public/oscap.h"
Go to the source code of this file.
Interface to Common Platform Enumeration (CPE) Language.
See more details at http://nvd.nist.gov/cpe.cfm
◆ cpe_lang_export()
void cpe_lang_export |
( |
const struct cpe_lang_model * |
spec, |
|
|
xmlTextWriterPtr |
writer |
|
) |
| |
Function for export CPE language top element.
- Parameters
-
writer | xmlTextWriterPtr structure representing XML model |
spec | CPE language model structure |
◆ cpe_lang_model_export_xml()
void cpe_lang_model_export_xml |
( |
const struct cpe_lang_model * |
spec, |
|
|
const char * |
file |
|
) |
| |
Function for export CPE language model to XML.
- Parameters
-
spec | CPE language model structure |
file | filename |
◆ cpe_lang_model_get_origin_file()
const char * cpe_lang_model_get_origin_file |
( |
const struct cpe_lang_model * |
lang_model | ) |
|
Gets the file the CPE dict model was loaded from This is necessary to figure out the full OVAL file path for applicability testing.
We can't do applicability here in the CPE module because that would create awful interdependencies.
◆ cpe_lang_model_parse()
struct cpe_lang_model * cpe_lang_model_parse |
( |
xmlTextReaderPtr |
reader | ) |
|
Parse function for CPE Lang model.
- Parameters
-
reader | xmlTextReaderPtr structure representing XML model |
◆ cpe_lang_model_set_origin_file()
bool cpe_lang_model_set_origin_file |
( |
struct cpe_lang_model * |
lang_model, |
|
|
const char * |
origin_file |
|
) |
| |
◆ cpe_platform_export()
void cpe_platform_export |
( |
const struct cpe_platform * |
platform, |
|
|
xmlTextWriterPtr |
writer |
|
) |
| |
Function for export CPE platform element.
- Parameters
-
writer | xmlTextWriterPtr structure representing XML model |
platform | CPE platform structure |
◆ cpe_platform_parse()
struct cpe_platform * cpe_platform_parse |
( |
xmlTextReaderPtr |
reader | ) |
|
Parse CPE platform structure.
- Parameters
-
reader | xmlTextReaderPtr structure representing XML model |
- Returns
- cpe_platform structure with CPE platform item
◆ cpe_testexpr_export()
void cpe_testexpr_export |
( |
const struct cpe_testexpr * |
expr, |
|
|
xmlTextWriterPtr |
writer |
|
) |
| |
Function for export CPE test expression element.
- Parameters
-
writer | xmlTextWriterPtr structure representing XML model |
expr | CPE test expression structure |
◆ cpe_testexpr_parse()
struct cpe_testexpr * cpe_testexpr_parse |
( |
xmlTextReaderPtr |
reader | ) |
|
Parse CPE test expression structure.
- Parameters
-
reader | xmlTextReaderPtr structure representing XML model |
- Returns
- cpe_testexpr structure with CPE test expression item