00001
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef OVAL_DEFINITIONS
00040 #define OVAL_DEFINITIONS
00041
00042 #include "oval_types.h"
00043 #include <stdbool.h>
00044
00045
00051 typedef enum {
00052 OVAL_AFCFML_UNKNOWN = 0,
00053 OVAL_AFCFML_CATOS = 1,
00054 OVAL_AFCFML_IOS = 2,
00055 OVAL_AFCFML_MACOS = 3,
00056 OVAL_AFCFML_PIXOS = 4,
00057 OVAL_AFCFML_UNDEFINED = 5,
00058 OVAL_AFCFML_UNIX = 6,
00059 OVAL_AFCFML_WINDOWS = 7
00060 } oval_affected_family_t;
00061
00063 typedef enum {
00064 OVAL_NODETYPE_UNKNOWN = 0,
00065 OVAL_NODETYPE_CRITERIA = 1,
00066 OVAL_NODETYPE_CRITERION = 2,
00067 OVAL_NODETYPE_EXTENDDEF = 3
00068 } oval_criteria_node_type_t;
00069
00071 typedef enum {
00072 OVAL_OPERATOR_UNKNOWN = 0,
00073 OVAL_OPERATOR_AND = 1,
00074 OVAL_OPERATOR_ONE = 2,
00075 OVAL_OPERATOR_OR = 3,
00076 OVAL_OPERATOR_XOR = 4
00077 } oval_operator_t;
00078
00080 typedef enum {
00081 OVAL_OPERATION_UNKNOWN = 0,
00082 OVAL_OPERATION_EQUALS = 1,
00083 OVAL_OPERATION_NOT_EQUAL = 2,
00084 OVAL_OPERATION_CASE_INSENSITIVE_EQUALS = 3,
00085 OVAL_OPERATION_CASE_INSENSITIVE_NOT_EQUAL = 4,
00086 OVAL_OPERATION_GREATER_THAN = 5,
00087 OVAL_OPERATION_LESS_THAN = 6,
00088 OVAL_OPERATION_GREATER_THAN_OR_EQUAL = 7,
00089 OVAL_OPERATION_LESS_THAN_OR_EQUAL = 8,
00090 OVAL_OPERATION_BITWISE_AND = 9,
00091 OVAL_OPERATION_BITWISE_OR = 10,
00092 OVAL_OPERATION_PATTERN_MATCH = 11
00093 } oval_operation_t;
00094
00096 typedef enum { OVAL_CLASS_UNKNOWN = 0, OVAL_CLASS_COMPLIANCE = 1, OVAL_CLASS_INVENTORY = 2, OVAL_CLASS_MISCELLANEOUS = 3, OVAL_CLASS_PATCH = 4, OVAL_CLASS_VULNERABILITY = 5,
00103 } oval_definition_class_t;
00104
00106 typedef enum {
00107 OVAL_EXISTENCE_UNKNOWN = 0,
00108 OVAL_ALL_EXIST = 1,
00109 OVAL_ANY_EXIST = 2,
00110 OVAL_AT_LEAST_ONE_EXISTS = 3,
00111 OVAL_ONLY_ONE_EXISTS = 4,
00112 OVAL_NONE_EXIST = 5
00113 } oval_existence_t;
00114
00116 typedef enum {
00117 OVAL_CHECK_UNKNOWN = 0,
00118 OVAL_CHECK_ALL = 1,
00119 OVAL_CHECK_AT_LEAST_ONE = 2,
00120 OVAL_CHECK_NONE_EXIST = 3,
00121 OVAL_CHECK_NONE_SATISFY = 4,
00122 OVAL_CHECK_ONLY_ONE = 5
00123 } oval_check_t;
00124
00126 typedef enum {
00127 OVAL_OBJECTCONTENT_UNKNOWN = 0,
00128 OVAL_OBJECTCONTENT_ENTITY = 1,
00129 OVAL_OBJECTCONTENT_SET = 2
00130 } oval_object_content_type_t;
00131
00133 typedef enum {
00134 OVAL_ENTITY_TYPE_UNKNOWN,
00135 OVAL_ENTITY_TYPE_ANY,
00136 OVAL_ENTITY_TYPE_BINARY,
00137 OVAL_ENTITY_TYPE_BOOLEAN,
00138 OVAL_ENTITY_TYPE_FLOAT,
00139 OVAL_ENTITY_TYPE_INTEGER,
00140 OVAL_ENTITY_TYPE_STRING,
00141 } oval_entity_type_t;
00142
00144 typedef enum {
00145 OVAL_DATATYPE_UNKNOWN = 0,
00146 OVAL_DATATYPE_BINARY = 1,
00147 OVAL_DATATYPE_BOOLEAN = 2,
00148 OVAL_DATATYPE_EVR_STRING = 3,
00149 OVAL_DATATYPE_FILESET_REVISION = 4,
00150 OVAL_DATATYPE_FLOAT = 5,
00151 OVAL_DATATYPE_IOS_VERSION = 6,
00152 OVAL_DATATYPE_VERSION = 7,
00153 OVAL_DATATYPE_INTEGER = 8,
00154 OVAL_DATATYPE_STRING = 9
00155 } oval_datatype_t;
00156
00158 typedef enum {
00159 OVAL_ENTITY_VARREF_UNKNOWN,
00160 OVAL_ENTITY_VARREF_NONE,
00161 OVAL_ENTITY_VARREF_ATTRIBUTE,
00162 OVAL_ENTITY_VARREF_ELEMENT
00163 } oval_entity_varref_type_t;
00164
00166 typedef enum {
00167 OVAL_SET_UNKNOWN,
00168 OVAL_SET_AGGREGATE,
00169 OVAL_SET_COLLECTIVE
00170 } oval_setobject_type_t;
00171
00173 typedef enum {
00174 OVAL_SET_OPERATION_UNKNOWN,
00175 OVAL_SET_OPERATION_COMPLEMENT = 1,
00176 OVAL_SET_OPERATION_INTERSECTION = 2,
00177 OVAL_SET_OPERATION_UNION = 3
00178 } oval_setobject_operation_t;
00179
00181 typedef enum {
00182 OVAL_VARIABLE_UNKNOWN,
00183 OVAL_VARIABLE_EXTERNAL,
00184 OVAL_VARIABLE_CONSTANT,
00185 OVAL_VARIABLE_LOCAL
00186 } oval_variable_type_t;
00187
00188 #define OVAL_FUNCTION 10
00190 typedef enum {
00191 OVAL_COMPONENT_UNKNOWN = 0,
00192 OVAL_COMPONENT_LITERAL = 1,
00193 OVAL_COMPONENT_OBJECTREF = 2,
00194 OVAL_COMPONENT_VARREF = 3,
00195 OVAL_COMPONENT_FUNCTION = 4,
00196 OVAL_FUNCTION_BEGIN = OVAL_FUNCTION + 1,
00197 OVAL_FUNCTION_CONCAT = OVAL_FUNCTION + 2,
00198 OVAL_FUNCTION_END = OVAL_FUNCTION + 3,
00199 OVAL_FUNCTION_SPLIT = OVAL_FUNCTION + 4,
00200 OVAL_FUNCTION_SUBSTRING = OVAL_FUNCTION + 5,
00201 OVAL_FUNCTION_TIMEDIF = OVAL_FUNCTION + 6,
00202 OVAL_FUNCTION_ESCAPE_REGEX = OVAL_FUNCTION + 7,
00203 OVAL_FUNCTION_REGEX_CAPTURE = OVAL_FUNCTION + 8,
00204 OVAL_FUNCTION_ARITHMETIC = OVAL_FUNCTION + 9
00205 } oval_component_type_t;
00206
00208 typedef enum {
00209 OVAL_ARITHMETIC_UNKNOWN = 0,
00210 OVAL_ARITHMETIC_ADD = 1,
00211 OVAL_ARITHMETIC_MULTIPLY = 2,
00212 OVAL_ARITHMETIC_SUBTRACT = 3,
00213 OVAL_ARITHMETIC_DIVIDE = 4
00214 } oval_arithmetic_operation_t;
00215
00217 typedef enum {
00218 OVAL_DATETIME_UNKNOWN = 0,
00219 OVAL_DATETIME_YEAR_MONTH_DAY = 1,
00220 OVAL_DATETIME_MONTH_DAY_YEAR = 2,
00221 OVAL_DATETIME_DAY_MONTH_YEAR = 3,
00222 OVAL_DATETIME_WIN_FILETIME = 4,
00223 OVAL_DATETIME_SECONDS_SINCE_EPOCH = 5
00224 } oval_datetime_format_t;
00225
00226
00230 oval_family_t oval_subtype_get_family(oval_subtype_t);
00231 const char *oval_operator_get_text(oval_operator_t);
00232 const char *oval_subtype_get_text(oval_subtype_t);
00233 const char *oval_family_get_text(oval_family_t);
00234 const char *oval_check_get_text(oval_check_t);
00235 const char *oval_existence_get_text(oval_existence_t);
00236 const char *oval_affected_family_get_text(oval_affected_family_t);
00237 const char *oval_datatype_get_text(oval_datatype_t);
00238 const char *oval_operation_get_text(oval_operation_t);
00239 const char *oval_set_operation_get_text(oval_setobject_operation_t);
00240 const char *oval_datetime_format_get_text(oval_datetime_format_t);
00241 const char *oval_arithmetic_operation_get_text(oval_arithmetic_operation_t);
00242
00243
00248 struct oval_definition_model;
00249
00256 struct oval_definition;
00261 struct oval_definition_iterator;
00267 struct oval_test;
00272 struct oval_test_iterator;
00281 struct oval_object;
00286 struct oval_object_iterator;
00293 struct oval_state;
00298 struct oval_state_iterator;
00313 struct oval_variable;
00318 struct oval_variable_iterator;
00339 struct oval_affected;
00344 struct oval_affected_iterator;
00352 struct oval_reference;
00357 struct oval_reference_iterator;
00366 struct oval_criteria_node;
00371 struct oval_criteria_node_iterator;
00376 struct oval_object_content;
00381 struct oval_object_content_iterator;
00386 struct oval_behavior;
00391 struct oval_behavior_iterator;
00396 struct oval_state_content;
00401 struct oval_state_content_iterator;
00406 struct oval_value;
00411 struct oval_value_iterator;
00416 struct oval_entity;
00420 struct oval_entity_iterator;
00425 struct oval_setobject;
00430 struct oval_setobject_iterator;
00528 struct oval_component;
00533 struct oval_component_iterator;
00543 struct oval_string_iterator;
00544
00549 struct oval_definition_model *oval_definition_model_new(void);
00556 struct oval_definition_model * oval_definition_model_import(const char *file);
00557
00566 int oval_definition_model_merge(struct oval_definition_model *model, const char *file);
00567
00573 struct oval_definition_model *oval_definition_model_clone(struct oval_definition_model *);
00579 int oval_definition_model_export(struct oval_definition_model *, const char *file);
00584 void oval_definition_model_free(struct oval_definition_model *model);
00585
00595 int oval_definition_model_bind_variable_model(struct oval_definition_model *, struct oval_variable_model *);
00596
00597 void oval_definition_model_clear_external_variables(struct oval_definition_model *);
00604 void oval_definition_model_lock(struct oval_definition_model *definition_model);
00618 struct oval_definition *oval_definition_model_get_definition(struct oval_definition_model *, const char *id);
00627 struct oval_test *oval_definition_model_get_test(struct oval_definition_model *model, const char *id);
00636 struct oval_object *oval_definition_model_get_object(struct oval_definition_model *model, const char *id);
00645 struct oval_state *oval_definition_model_get_state(struct oval_definition_model *model, const char *id);
00654 struct oval_variable *oval_definition_model_get_variable(struct oval_definition_model *model, const char *id);
00659 struct oval_definition_iterator *oval_definition_model_get_definitions(struct oval_definition_model *model);
00666 struct oval_test_iterator *oval_definition_model_get_tests(struct oval_definition_model *model);
00673 struct oval_object_iterator *oval_definition_model_get_objects(struct oval_definition_model *model);
00680 struct oval_state_iterator *oval_definition_model_get_states(struct oval_definition_model *model);
00687 struct oval_variable_iterator *oval_definition_model_get_variables(struct oval_definition_model *model);
00693 bool oval_definition_model_is_locked(struct oval_definition_model *definition_model);
00694
00700 const char * oval_definition_model_supported(void);
00717 bool oval_definition_model_is_valid(struct oval_definition_model *definition_model);
00736 struct oval_definition *oval_definition_new(struct oval_definition_model *, const char *id);
00737
00743 struct oval_definition *oval_definition_clone(struct oval_definition_model *new_model, struct oval_definition *old_definition);
00744
00754 void oval_definition_free(struct oval_definition *);
00755
00767 void oval_definition_set_version(struct oval_definition *, int version);
00775 void oval_definition_set_class(struct oval_definition *, oval_definition_class_t);
00781 void oval_definition_set_deprecated(struct oval_definition *, bool deprecated);
00789 void oval_definition_set_title(struct oval_definition *, char *title);
00797 void oval_definition_set_description(struct oval_definition *, char *description);
00808 void oval_definition_add_affected(struct oval_definition *, struct oval_affected *affected);
00819 void oval_definition_add_reference(struct oval_definition *, struct oval_reference *reference);
00825 void oval_definition_add_note(struct oval_definition *, char *note);
00839 void oval_definition_set_criteria(struct oval_definition *, struct oval_criteria_node *criteria);
00850 char *oval_definition_get_id(struct oval_definition *);
00856 int oval_definition_get_version(struct oval_definition *);
00861 oval_definition_class_t oval_definition_get_class(struct oval_definition *);
00866 bool oval_definition_get_deprecated(struct oval_definition *);
00872 char *oval_definition_get_title(struct oval_definition *);
00878 char *oval_definition_get_description(struct oval_definition *);
00885 struct oval_affected_iterator *oval_definition_get_affected(struct oval_definition *);
00892 struct oval_reference_iterator *oval_definition_get_references(struct oval_definition *);
00899 struct oval_string_iterator *oval_definition_get_notes(struct oval_definition *);
00905 struct oval_criteria_node *oval_definition_get_criteria(struct oval_definition *);
00911 bool oval_definition_is_locked(struct oval_definition *definition);
00912
00925 bool oval_definition_is_valid(struct oval_definition *definition);
00936 bool oval_definition_iterator_has_more(struct oval_definition_iterator *);
00942 struct oval_definition *oval_definition_iterator_next(struct oval_definition_iterator *);
00947 void oval_definition_iterator_free(struct oval_definition_iterator *);
00970 struct oval_test *oval_test_new(struct oval_definition_model *, const char *id);
00976 struct oval_test *oval_test_clone(struct oval_definition_model *new_model, struct oval_test *old_test);
00981 void oval_test_free(struct oval_test *);
00982
00996 void oval_test_set_subtype(struct oval_test *, oval_subtype_t subtype);
01002 void oval_test_add_note(struct oval_test *, char *note);
01008 void oval_test_set_comment(struct oval_test *, char *comment);
01013 void oval_test_set_deprecated(struct oval_test *, bool deprecated);
01022 void oval_test_set_version(struct oval_test *, int version);
01031 void oval_test_set_existence(struct oval_test *, oval_existence_t);
01041 void oval_test_set_check(struct oval_test *, oval_check_t);
01050 void oval_test_set_object(struct oval_test *, struct oval_object *);
01059 void oval_test_set_state(struct oval_test *, struct oval_state *state);
01070 oval_family_t oval_test_get_family(struct oval_test *);
01075 oval_subtype_t oval_test_get_subtype(struct oval_test *);
01082 struct oval_string_iterator *oval_test_get_notes(struct oval_test *);
01088 char *oval_test_get_comment(struct oval_test *);
01094 char *oval_test_get_id(struct oval_test *);
01099 bool oval_test_get_deprecated(struct oval_test *);
01104 int oval_test_get_version(struct oval_test *);
01109 oval_existence_t oval_test_get_existence(struct oval_test *);
01114 oval_check_t oval_test_get_check(struct oval_test *);
01120 struct oval_object *oval_test_get_object(struct oval_test *);
01126 struct oval_state *oval_test_get_state(struct oval_test *);
01132 bool oval_test_is_locked(struct oval_test *test);
01133
01149 bool oval_test_is_valid(struct oval_test *);
01160 bool oval_test_iterator_has_more(struct oval_test_iterator *);
01165 struct oval_test *oval_test_iterator_next(struct oval_test_iterator *);
01170 void oval_test_iterator_free(struct oval_test_iterator *);
01191 struct oval_object *oval_object_new(struct oval_definition_model *, const char *id);
01197 struct oval_object *oval_object_clone(struct oval_definition_model *new_model, struct oval_object *old_object);
01202 void oval_object_free(struct oval_object *);
01203
01217 void oval_object_set_subtype(struct oval_object *, oval_subtype_t subtype);
01223 void oval_object_add_note(struct oval_object *, char *note);
01224
01230 void oval_object_set_comment(struct oval_object *, char *comment);
01231
01236 void oval_object_set_deprecated(struct oval_object *, bool deprecated);
01245 void oval_object_set_version(struct oval_object *, int version);
01258 void oval_object_add_object_content(struct oval_object *, struct oval_object_content *content);
01271 void oval_object_add_behavior(struct oval_object *, struct oval_behavior *behavior);
01282 oval_family_t oval_object_get_family(struct oval_object *);
01288 const char *oval_object_get_name(struct oval_object *);
01293 oval_subtype_t oval_object_get_subtype(struct oval_object *);
01300 struct oval_string_iterator *oval_object_get_notes(struct oval_object *);
01306 char *oval_object_get_comment(struct oval_object *);
01312 char *oval_object_get_id(struct oval_object *);
01313
01318 bool oval_object_get_deprecated(struct oval_object *);
01323 int oval_object_get_version(struct oval_object *);
01330 struct oval_object_content_iterator *oval_object_get_object_contents(struct oval_object *);
01337 struct oval_behavior_iterator *oval_object_get_behaviors(struct oval_object *);
01343 bool oval_object_is_locked(struct oval_object *object);
01357 bool oval_object_is_valid(struct oval_object *object);
01368 bool oval_object_iterator_has_more(struct oval_object_iterator *);
01373 struct oval_object *oval_object_iterator_next(struct oval_object_iterator *);
01378 void oval_object_iterator_free(struct oval_object_iterator *);
01399 struct oval_state *oval_state_new(struct oval_definition_model *, const char *id);
01405 struct oval_state *oval_state_clone(struct oval_definition_model *new_model, struct oval_state *old_state);
01410 void oval_state_free(struct oval_state *);
01411
01425 void oval_state_set_subtype(struct oval_state *, oval_subtype_t subtype);
01431 void oval_state_add_note(struct oval_state *, char *note);
01437 void oval_state_set_comment(struct oval_state *, char *comment);
01442 void oval_state_set_deprecated(struct oval_state *, bool deprecated);
01451 void oval_state_set_version(struct oval_state *, int version);
01456 void oval_state_set_operator(struct oval_state *, oval_operator_t);
01469 void oval_state_add_content(struct oval_state *, struct oval_state_content *content);
01480 oval_family_t oval_state_get_family(struct oval_state *);
01486 const char *oval_state_get_name(struct oval_state *);
01491 oval_subtype_t oval_state_get_subtype(struct oval_state *);
01498 struct oval_string_iterator *oval_state_get_notes(struct oval_state *);
01504 char *oval_state_get_comment(struct oval_state *);
01510 char *oval_state_get_id(struct oval_state *);
01515 bool oval_state_get_deprecated(struct oval_state *);
01520 int oval_state_get_version(struct oval_state *);
01525 int oval_state_get_operator(struct oval_state *);
01532 struct oval_state_content_iterator *oval_state_get_contents(struct oval_state *);
01538 bool oval_state_is_locked(struct oval_state *state);
01549 bool oval_state_iterator_has_more(struct oval_state_iterator *);
01554 struct oval_state *oval_state_iterator_next(struct oval_state_iterator *);
01559 void oval_state_iterator_free(struct oval_state_iterator *);
01572 bool oval_state_is_valid(struct oval_state *state);
01599 struct oval_variable *oval_variable_new(struct oval_definition_model *model, const char *id, oval_variable_type_t type);
01605 struct oval_variable *oval_variable_clone(struct oval_definition_model *new_model, struct oval_variable *old_variable);
01610 void oval_variable_free(struct oval_variable *);
01611
01623 void oval_variable_set_comment(struct oval_variable *, char *comment);
01631 void oval_variable_set_version(struct oval_variable *, int version);
01637 void oval_variable_set_deprecated(struct oval_variable *, bool deprecated);
01645 void oval_variable_set_datatype(struct oval_variable *, oval_datatype_t);
01659 void oval_variable_add_value(struct oval_variable *, struct oval_value *);
01660
01661 void oval_variable_clear_values(struct oval_variable *);
01674 void oval_variable_set_component(struct oval_variable *, struct oval_component *component);
01686 char *oval_variable_get_id(struct oval_variable *);
01692 char *oval_variable_get_comment(struct oval_variable *);
01697 int oval_variable_get_version(struct oval_variable *);
01702 bool oval_variable_get_deprecated(struct oval_variable *);
01707 oval_variable_type_t oval_variable_get_type(struct oval_variable *);
01712 oval_datatype_t oval_variable_get_datatype(struct oval_variable *);
01720 struct oval_value_iterator *oval_variable_get_values(struct oval_variable *);
01727 struct oval_component *oval_variable_get_component(struct oval_variable *);
01732 const char *oval_component_type_get_text(oval_component_type_t type);
01738 bool oval_variable_is_locked(struct oval_variable *variable);
01749 bool oval_variable_iterator_has_more(struct oval_variable_iterator *);
01754 struct oval_variable *oval_variable_iterator_next(struct oval_variable_iterator *);
01759 void oval_variable_iterator_free(struct oval_variable_iterator *);
01780 bool oval_variable_is_valid(struct oval_variable *);
01787 struct oval_affected *oval_affected_new(struct oval_definition_model *);
01793 struct oval_affected *oval_affected_clone(struct oval_definition_model *new_model, struct oval_affected *old_affected);
01798 void oval_affected_free(struct oval_affected *);
01799
01808 void oval_affected_set_family(struct oval_affected *, oval_affected_family_t family);
01813 void oval_affected_add_platform(struct oval_affected *, char *platform_name);
01818 void oval_affected_add_product(struct oval_affected *, char *product_name);
01831 oval_affected_family_t oval_affected_get_family(struct oval_affected *);
01839 struct oval_string_iterator *oval_affected_get_platforms(struct oval_affected *);
01847 struct oval_string_iterator *oval_affected_get_products(struct oval_affected *);
01853 bool oval_affected_is_locked(struct oval_affected *);
01864 bool oval_affected_is_valid(struct oval_affected *);
01875 bool oval_affected_iterator_has_more(struct oval_affected_iterator *);
01880 struct oval_affected *oval_affected_iterator_next(struct oval_affected_iterator *);
01885 void oval_affected_iterator_free(struct oval_affected_iterator *);
01891 struct oval_reference *oval_reference_new(struct oval_definition_model *);
01896 struct oval_reference *oval_reference_clone
01897 (struct oval_definition_model *new_model, struct oval_reference *old_reference);
01901 void oval_reference_free(struct oval_reference *);
01902
01912 void oval_reference_set_source(struct oval_reference *, char *);
01916 void oval_reference_set_id(struct oval_reference *, char *);
01920 void oval_reference_set_url(struct oval_reference *, char *);
01932 char *oval_reference_get_source(struct oval_reference *);
01938 char *oval_reference_get_id(struct oval_reference *);
01944 char *oval_reference_get_url(struct oval_reference *);
01950 bool oval_reference_is_locked(struct oval_reference *reference);
01960 bool oval_reference_iterator_has_more(struct oval_reference_iterator *);
01964 struct oval_reference *oval_reference_iterator_next(struct oval_reference_iterator *);
01968 void oval_reference_iterator_free(struct oval_reference_iterator *);
01979 bool oval_reference_is_valid(struct oval_reference *reference);
02002 struct oval_criteria_node *oval_criteria_node_new(struct oval_definition_model *, oval_criteria_node_type_t type);
02008 struct oval_criteria_node *oval_criteria_node_clone
02009 (struct oval_definition_model *new_model, struct oval_criteria_node *old_node);
02014 void oval_criteria_node_free(struct oval_criteria_node *);
02015
02025 void oval_criteria_node_set_negate(struct oval_criteria_node *, bool negate);
02031 void oval_criteria_set_node_type(struct oval_criteria_node *node, oval_criteria_node_type_t type);
02037 void oval_criteria_node_set_comment(struct oval_criteria_node *, char *comment);
02045 void oval_criteria_node_set_operator(struct oval_criteria_node *, oval_operator_t op);
02056 void oval_criteria_node_add_subnode(struct oval_criteria_node *, struct oval_criteria_node *node);
02064 void oval_criteria_node_set_test(struct oval_criteria_node *, struct oval_test *);
02072 void oval_criteria_node_set_definition(struct oval_criteria_node *, struct oval_definition *);
02083 oval_criteria_node_type_t oval_criteria_node_get_type(struct oval_criteria_node *);
02088 bool oval_criteria_node_get_negate(struct oval_criteria_node *);
02094 char *oval_criteria_node_get_comment(struct oval_criteria_node *);
02100 oval_operator_t oval_criteria_node_get_operator(struct oval_criteria_node *);
02108 struct oval_criteria_node_iterator *oval_criteria_node_get_subnodes(struct oval_criteria_node *);
02115 struct oval_test *oval_criteria_node_get_test(struct oval_criteria_node *);
02122 struct oval_definition *oval_criteria_node_get_definition(struct oval_criteria_node *);
02128 bool oval_criteria_node_is_locked(struct oval_criteria_node *);
02139 bool oval_criteria_node_iterator_has_more(struct oval_criteria_node_iterator *);
02145 struct oval_criteria_node *oval_criteria_node_iterator_next(struct oval_criteria_node_iterator *);
02150 void oval_criteria_node_iterator_free(struct oval_criteria_node_iterator *);
02169 bool oval_criteria_node_is_valid(struct oval_criteria_node *);
02175 struct oval_object_content *oval_object_content_new(struct oval_definition_model *model, oval_object_content_type_t type);
02176
02181 struct oval_object_content *oval_object_content_clone
02182 (struct oval_definition_model *new_model, struct oval_object_content *old_content);
02183
02187 void oval_object_content_free(struct oval_object_content *);
02188
02197 void oval_object_content_set_type(struct oval_object_content *, oval_object_content_type_t);
02201 void oval_object_content_set_field_name(struct oval_object_content *, char *);
02205 void oval_object_content_set_entity(struct oval_object_content *, struct oval_entity *);
02209 void oval_object_content_set_varCheck(struct oval_object_content *, oval_check_t);
02213 void oval_object_content_set_setobject(struct oval_object_content *, struct oval_setobject *);
02225 char *oval_object_content_get_field_name(struct oval_object_content *);
02230 oval_object_content_type_t oval_object_content_get_type(struct oval_object_content *);
02236 struct oval_entity *oval_object_content_get_entity(struct oval_object_content *);
02241 oval_check_t oval_object_content_get_varCheck(struct oval_object_content *);
02247 struct oval_setobject *oval_object_content_get_setobject(struct oval_object_content *);
02253 bool oval_object_content_is_locked(struct oval_object_content *object_content);
02263 bool oval_object_content_iterator_has_more(struct oval_object_content_iterator *);
02267 struct oval_object_content *oval_object_content_iterator_next(struct oval_object_content_iterator *);
02271 void oval_object_content_iterator_free(struct oval_object_content_iterator *);
02287 bool oval_object_content_is_valid(struct oval_object_content *object_content);
02293 struct oval_behavior *oval_behavior_new(struct oval_definition_model *);
02294
02299 struct oval_behavior *oval_behavior_clone(struct oval_definition_model *new_model, struct oval_behavior *old_behavior);
02303 void oval_behavior_free(struct oval_behavior *);
02304
02312 void oval_behavior_set_keyval(struct oval_behavior *behavior, const char *key, const char *value);
02324 char *oval_behavior_get_key(struct oval_behavior *);
02330 char *oval_behavior_get_value(struct oval_behavior *);
02336 bool oval_behavior_is_locked(struct oval_behavior *behavior);
02346 bool oval_behavior_iterator_has_more(struct oval_behavior_iterator *);
02350 struct oval_behavior *oval_behavior_iterator_next(struct oval_behavior_iterator *);
02354 void oval_behavior_iterator_free(struct oval_behavior_iterator *);
02365 bool oval_behavior_is_valid(struct oval_behavior *behavior);
02371 struct oval_state_content *oval_state_content_new(struct oval_definition_model *);
02376 struct oval_state_content *oval_state_content_clone (struct oval_definition_model *new_model, struct oval_state_content *old_content);
02380 void oval_state_content_free(struct oval_state_content *);
02381
02389 void oval_state_content_set_entity(struct oval_state_content *, struct oval_entity *);
02393 void oval_state_content_set_varcheck(struct oval_state_content *, oval_check_t);
02397 void oval_state_content_set_entcheck(struct oval_state_content *, oval_check_t);
02409 struct oval_entity *oval_state_content_get_entity(struct oval_state_content *);
02414 oval_check_t oval_state_content_get_var_check(struct oval_state_content *);
02419 oval_check_t oval_state_content_get_ent_check(struct oval_state_content *);
02425 bool oval_state_content_is_locked(struct oval_state_content *);
02436 bool oval_state_content_iterator_has_more(struct oval_state_content_iterator *);
02440 struct oval_state_content *oval_state_content_iterator_next(struct oval_state_content_iterator *);
02444 void oval_state_content_iterator_free(struct oval_state_content_iterator *);
02450 struct oval_value *oval_value_new(oval_datatype_t datatype, char *text_value);
02455 struct oval_value *oval_value_clone(struct oval_value *old_value);
02459 void oval_value_free(struct oval_value *);
02460
02469 oval_datatype_t oval_value_get_datatype(struct oval_value *);
02475 char *oval_value_get_text(struct oval_value *);
02480 unsigned char *oval_value_get_binary(struct oval_value *);
02485 bool oval_value_get_boolean(struct oval_value *);
02490 float oval_value_get_float(struct oval_value *);
02495 long oval_value_get_integer(struct oval_value *);
02501 bool oval_value_is_locked(struct oval_value *value);
02511 bool oval_value_iterator_has_more(struct oval_value_iterator *);
02515 struct oval_value *oval_value_iterator_next(struct oval_value_iterator *);
02519 int oval_value_iterator_remaining(struct oval_value_iterator *iterator);
02523 void oval_value_iterator_free(struct oval_value_iterator *);
02534 bool oval_value_is_valid(struct oval_value *value);
02540 struct oval_entity *oval_entity_new(struct oval_definition_model *);
02545 struct oval_entity *oval_entity_clone(struct oval_definition_model *model, struct oval_entity *old_entity);
02549 void oval_entity_free(struct oval_entity *);
02550
02558 void oval_entity_set_type(struct oval_entity *, oval_entity_type_t);
02562 void oval_entity_set_datatype(struct oval_entity *, oval_datatype_t);
02566 void oval_entity_set_mask(struct oval_entity *, int);
02570 void oval_entity_set_varref_type(struct oval_entity *, oval_entity_varref_type_t);
02574 void oval_entity_set_variable(struct oval_entity *, struct oval_variable *);
02578 void oval_entity_set_value(struct oval_entity *, struct oval_value *);
02582 void oval_entity_set_name(struct oval_entity *, char *);
02586 void oval_entity_set_operation(struct oval_entity *, oval_operation_t);
02598 char *oval_entity_get_name(struct oval_entity *);
02603 oval_entity_type_t oval_entity_get_type(struct oval_entity *);
02608 oval_datatype_t oval_entity_get_datatype(struct oval_entity *);
02613 oval_operation_t oval_entity_get_operation(struct oval_entity *);
02619 struct oval_variable *oval_entity_get_variable(struct oval_entity *);
02625 struct oval_value *oval_entity_get_value(struct oval_entity *);
02630 int oval_entity_get_mask(struct oval_entity *);
02635 oval_entity_varref_type_t oval_entity_get_varref_type(struct oval_entity *);
02641 bool oval_entity_is_locked(struct oval_entity *entity);
02651 bool oval_entity_iterator_has_more(struct oval_entity_iterator *);
02655 struct oval_entity *oval_entity_iterator_next(struct oval_entity_iterator *);
02659 void oval_entity_iterator_free(struct oval_entity_iterator *);
02670 bool oval_entity_is_valid(struct oval_entity *entity);
02676 struct oval_setobject *oval_setobject_new(struct oval_definition_model *);
02681 struct oval_setobject *oval_setobject_clone(struct oval_definition_model *new_model, struct oval_setobject *old_setobject);
02685 void oval_setobject_free(struct oval_setobject *);
02686
02693 void oval_setobject_set_type(struct oval_setobject *, oval_setobject_type_t);
02697 void oval_setobject_set_operation(struct oval_setobject *, oval_setobject_operation_t);
02701 void oval_setobject_add_subset(struct oval_setobject *, struct oval_setobject *);
02705 void oval_setobject_add_object(struct oval_setobject *, struct oval_object *);
02709 void oval_setobject_add_filter(struct oval_setobject *, struct oval_state *);
02720 oval_setobject_type_t oval_setobject_get_type(struct oval_setobject *);
02725 oval_setobject_operation_t oval_setobject_get_operation(struct oval_setobject *);
02733 struct oval_setobject_iterator *oval_setobject_get_subsets(struct oval_setobject *);
02741 struct oval_object_iterator *oval_setobject_get_objects(struct oval_setobject *);
02749 struct oval_state_iterator *oval_setobject_get_filters(struct oval_setobject *);
02755 bool oval_setobject_is_locked(struct oval_setobject *setobject);
02765 bool oval_setobject_iterator_has_more(struct oval_setobject_iterator *);
02769 struct oval_setobject *oval_setobject_iterator_next(struct oval_setobject_iterator *);
02773 void oval_setobject_iterator_free(struct oval_setobject_iterator *);
02793 bool oval_setobject_is_valid(struct oval_setobject *setobject);
02837 struct oval_component *oval_component_new(struct oval_definition_model *, oval_component_type_t type);
02843 struct oval_component *oval_component_clone(struct oval_definition_model *new_model,
02844 struct oval_component *old_component);
02849 void oval_component_free(struct oval_component *);
02850
02859 void oval_component_set_type(struct oval_component *component, oval_component_type_t type);
02865 void oval_component_set_object(struct oval_component *, struct oval_object *object);
02872 void oval_component_set_object_field(struct oval_component *, char *field);
02878 void oval_component_set_variable(struct oval_component *, struct oval_variable *variable);
02885 void oval_component_add_function_component(struct oval_component *, struct oval_component *);
02889 void oval_component_set_arithmetic_operation(struct oval_component *, oval_arithmetic_operation_t);
02893 void oval_component_set_prefix(struct oval_component *, char *);
02897 void oval_component_set_suffix(struct oval_component *, char *);
02901 void oval_component_set_split_delimiter(struct oval_component *, char *);
02905 void oval_component_set_substring_start(struct oval_component *, int);
02909 void oval_component_set_substring_length(struct oval_component *, int);
02913 void oval_component_set_timedif_format_1(struct oval_component *, oval_datetime_format_t);
02917 void oval_component_set_timedif_format_2(struct oval_component *, oval_datetime_format_t);
02921 void oval_component_set_regex_pattern(struct oval_component *, char *);
02925 void oval_component_set_literal_value(struct oval_component *, struct oval_value *);
02936 oval_component_type_t oval_component_get_type(struct oval_component *);
02944 struct oval_object *oval_component_get_object(struct oval_component *);
02952 char *oval_component_get_object_field(struct oval_component *);
02960 struct oval_variable *oval_component_get_variable(struct oval_component *);
02968 struct oval_component_iterator *oval_component_get_function_components(struct oval_component *);
02974 oval_arithmetic_operation_t oval_component_get_arithmetic_operation(struct oval_component *);
02982 char *oval_component_get_prefix(struct oval_component *);
02990 char *oval_component_get_suffix(struct oval_component *);
02998 char *oval_component_get_split_delimiter(struct oval_component *);
03004 int oval_component_get_substring_start(struct oval_component *);
03010 int oval_component_get_substring_length(struct oval_component *);
03016 oval_datetime_format_t oval_component_get_timedif_format_1(struct oval_component *);
03022 oval_datetime_format_t oval_component_get_timedif_format_2(struct oval_component *);
03030 char *oval_component_get_regex_pattern(struct oval_component *);
03038 struct oval_value *oval_component_get_literal_value(struct oval_component *);
03044 bool oval_component_is_locked(struct oval_component *component);
03055 bool oval_component_iterator_has_more(struct oval_component_iterator *);
03061 struct oval_component *oval_component_iterator_next(struct oval_component_iterator *);
03066 void oval_component_iterator_free(struct oval_component_iterator *);
03071 int oval_component_iterator_remaining(struct oval_component_iterator *);
03126 bool oval_component_is_valid(struct oval_component *);
03137 bool oval_string_iterator_has_more(struct oval_string_iterator *);
03142 char *oval_string_iterator_next(struct oval_string_iterator *);
03147 int oval_string_iterator_remaining(struct oval_string_iterator *);
03152 void oval_string_iterator_free(struct oval_string_iterator *);
03159 #endif