/home/pvrabec/tmp/openscap/openscap-0.1.4/src/CPE/cpelang.c File Reference
Interface to Common Product Enumeration (CPE) Language.
More...
#include <libxml/tree.h>
#include <string.h>
#include "cpelang.h"
Detailed Description
Interface to Common Product Enumeration (CPE) Language.
See more details at http://nvd.nist.gov/cpe.cfm
Function Documentation
Delete CPE language boolean expression
- Parameters:
-
| expr | expression to be deleted |
Create new CPE language boolean expression from XML node
- Parameters:
-
| ret | pointer to resulting expression |
| node | XML node to be processed |
- Returns:
- true on success
Match list of CPEs against CPE language platform specification
- Parameters:
-
| cpe | List of CPEs describing tested platform as a list of pointers |
| n | number of CPEs |
| platform | CPE language platform, that is expected (not) to match given list of CPEs |
- Returns:
- result of expression evaluation
Delete single CPE paltform specification
- Parameters:
-
| platform | platform to be deleted |
New platform form XML node
- Parameters:
-
| node | XML node to be processed |
- Returns:
- new platform specification
- Return values:
-
Add new platform entry to platformspec
- Note:
- platformspec will take over memory management of platform
- Parameters:
-
| platformspec | list of platforms being extended |
| platform | platform to add to the list |
- Returns:
- true on success
Free specified platform specification list
- Parameters:
-
| platformspec | pointer to list to be deleted |
New platform specification from file
- Parameters:
-
- Returns:
- new platform specification list
- Return values:
-
New platform specification from XML node
- Parameters:
-
| root | XML node to be processed |
- Returns:
- new platform specification list
- Return values:
-