Oval_test evaluator methods
More...
Detailed Description
Oval_test evaluator methods
Function Documentation
bool oval_test_is_valid |
( |
struct oval_test * |
|
) |
|
Returns true if Oval_test is valid.
An Oval_test is valid if all of the following are true:
- The value of the version attribute is not zero.
- The object attribute is not NULL
- The object attribute is valid
- The subtype of the object attribute is the same as the subtype of the test.
- The value of the existence attribute is not OVAL_CHECK_UNKNOWN
- If the state attribute is not NULL
- the subtype of the state attribute is the same as the subtype of the test
- the state attribute is valid
- the value of the operator attribute is not OVAL_CHECK_UNKNOWN
- the value of the check attribute is not OVAL_CHECK_UNKNOWN