Evaluators
[Oval_variable]

Oval_variable evaluator methods More...

Functions

bool oval_variable_is_valid (struct oval_variable *)
 Returns true if Oval_variable is valid.

Detailed Description

Oval_variable evaluator methods


Function Documentation

bool oval_variable_is_valid ( struct oval_variable  ) 

Returns true if Oval_variable is valid.

An Oval_variable is valid if all of the following are true:

  • The value of the id attribute is matched by the regular expression ^oval:[\.A-Za-z0-9_\-]+:var:[1-9][0-9]*$
  • The value of the type attribute is not OVAL_VARIABLE_UNKNOWN
  • The value of the version attribute is a positive integer
  • The value of the datatype attribute is not OVAL_DATATYPE_UNKNOWN
  • If type == OVAL_VARIABLE_CONSTANT
    • At least one Oval_value is appended to the values attribute.
  • If type == OVAL_VARIABLE_LOCAL

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