Evaluators
[Oval_component]

Oval_component evaluator methods More...

Functions

bool oval_component_is_valid (struct oval_component *)
 Returns true if the Oval_component is valid.

Detailed Description

Oval_component evaluator methods


Function Documentation

bool oval_component_is_valid ( struct oval_component  ) 

Returns true if the Oval_component is valid.

An Oval_component is valid if one of the following is true:

  • type == OVAL_FUNCTION_CONCAT AND components.length > 0 AND all appended components are valid
  • type == OVAL_FUNCTION_ARITHMETIC AND arithmetic_operation <> OVAL_ARITHMETIC_UNKNOWN AND components.length at least 2 AND all appended components are valid
  • type == OVAL_FUNCTION_BEGIN AND prefix <> NULL AMD components.length == 1 AND the appended component is valid
  • type == OVAL_FUNCTION_END AND suffix <> NULL components.length == 1 AND the appended component is valid
  • type == OVAL_FUNCTION_SPLIT AND delimiter <> NULL components.length == 1 AND the appended component is valid
  • type == OVAL_FUNCTION_SUBSTRING AND start > 0 AND length > 0 components.length == 1 AND the appended component is valid
  • type == OVAL_FUNCTION_TIMEDIF AND timedif_format_1 <> OVAL_DATETIME_FORMAT_UNKNOWN AND components.length > 0 AND all appended components are valid AND IF timedif_format_2 <> OVAL_DATETIME_FORMAT_UNKNOWN THEN components.length is divisible by 2
  • type == OVAL_FUNCTION_REGEX_CAPTURE AND pattern <> NULL components.length == 1 AND the appended component is valid
  • type == OVAL_FUNCTION_ESCAPE_REGEX AND components.length == 1 AND the appended component is valid
  • type == OVAL_COMPONENT_LITERAL AND literal <> NULL
  • type == OVAL_COMPONENT_OBJECTREF object <> NULL AND object is a valid Oval_object AND object_field <> NULL
  • type == OVAL_COMPONENT_VARREF variable <> NULL AND variable is a valid Oval_variable

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1