Open SCAP Library: oval_definitions.h Source File

Open SCAP Library

oval_definitions.h
Go to the documentation of this file.
1
16 /*
17 * Copyright 2009-2014 Red Hat Inc., Durham, North Carolina.
18 * All Rights Reserved.
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This library is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 *
34 * Authors:
35 * "David Niemoller" <David.Niemoller@g2-inc.com>
36 */
37
38
39 #ifndef OVAL_DEFINITIONS
40 #define OVAL_DEFINITIONS
41
42 #include "oscap.h"
43 #include "oscap_source.h"
44 #include "oval_adt.h"
45 #include "oval_types.h"
46 #include "oval_version.h"
47 #include "oval_schema_version.h"
48 #include <stdbool.h>
49
55 typedef enum {
56 OVAL_AFCFML_UNKNOWN = 0,
57 OVAL_AFCFML_CATOS = 1,
58 OVAL_AFCFML_IOS = 2,
59 OVAL_AFCFML_MACOS = 3,
60 OVAL_AFCFML_PIXOS = 4,
61 OVAL_AFCFML_UNDEFINED = 5,
62 OVAL_AFCFML_UNIX = 6,
63 OVAL_AFCFML_WINDOWS = 7
64 } oval_affected_family_t;
65
67 typedef enum {
68 OVAL_NODETYPE_UNKNOWN = 0,
69 OVAL_NODETYPE_CRITERIA = 1,
70 OVAL_NODETYPE_CRITERION = 2,
71 OVAL_NODETYPE_EXTENDDEF = 3
72 } oval_criteria_node_type_t;
73
75 typedef enum {
76 OVAL_OPERATOR_UNKNOWN = 0,
77 OVAL_OPERATOR_AND = 1,
78 OVAL_OPERATOR_ONE = 2,
79 OVAL_OPERATOR_OR = 3,
80 OVAL_OPERATOR_XOR = 4
81 } oval_operator_t;
82
84 typedef enum {
85 OVAL_OPERATION_UNKNOWN = 0,
86 OVAL_OPERATION_BITWISE_AND,
87 OVAL_OPERATION_BITWISE_OR,
88 OVAL_OPERATION_CASE_INSENSITIVE_EQUALS,
89 OVAL_OPERATION_CASE_INSENSITIVE_NOT_EQUAL,
90 OVAL_OPERATION_EQUALS,
91 OVAL_OPERATION_GREATER_THAN,
92 OVAL_OPERATION_GREATER_THAN_OR_EQUAL,
93 OVAL_OPERATION_LESS_THAN,
94 OVAL_OPERATION_LESS_THAN_OR_EQUAL,
95 OVAL_OPERATION_NOT_EQUAL,
96 OVAL_OPERATION_PATTERN_MATCH,
97 OVAL_OPERATION_SUBSET_OF,
98 OVAL_OPERATION_SUPERSET_OF,
99 } oval_operation_t;
100
101
103 typedef enum {
104 OVAL_EXISTENCE_UNKNOWN = 0,
105 OVAL_ALL_EXIST = 1,
106 OVAL_ANY_EXIST = 2,
107 OVAL_AT_LEAST_ONE_EXISTS = 3,
108 OVAL_ONLY_ONE_EXISTS = 4,
109 OVAL_NONE_EXIST = 5
110 } oval_existence_t;
111
113 typedef enum {
114 OVAL_CHECK_UNKNOWN = 0,
115 OVAL_CHECK_ALL = 1,
116 OVAL_CHECK_AT_LEAST_ONE = 2,
117 OVAL_CHECK_NONE_EXIST = 3,
118 OVAL_CHECK_NONE_SATISFY = 4,
119 OVAL_CHECK_ONLY_ONE = 5
120 } oval_check_t;
121
123 typedef enum {
124 OVAL_OBJECTCONTENT_UNKNOWN = 0,
125 OVAL_OBJECTCONTENT_ENTITY = 1,
126 OVAL_OBJECTCONTENT_SET = 2,
127 OVAL_OBJECTCONTENT_FILTER = 3
128 } oval_object_content_type_t;
129
131 typedef enum {
132 OVAL_ENTITY_TYPE_UNKNOWN,
133 OVAL_ENTITY_TYPE_ANY,
134 OVAL_ENTITY_TYPE_BINARY,
135 OVAL_ENTITY_TYPE_BOOLEAN,
136 OVAL_ENTITY_TYPE_FLOAT,
137 OVAL_ENTITY_TYPE_INTEGER,
138 OVAL_ENTITY_TYPE_STRING,
139 } oval_entity_type_t;
140
142 typedef enum {
143 OVAL_FILTER_ACTION_UNKNOWN = 0,
144 OVAL_FILTER_ACTION_EXCLUDE,
145 OVAL_FILTER_ACTION_INCLUDE
146 } oval_filter_action_t;
147
149 typedef enum {
150 OVAL_DATATYPE_UNKNOWN = 0,
151 OVAL_DATATYPE_BINARY,
152 OVAL_DATATYPE_BOOLEAN,
153 OVAL_DATATYPE_EVR_STRING,
154 OVAL_DATATYPE_FILESET_REVISION,
155 OVAL_DATATYPE_FLOAT,
156 OVAL_DATATYPE_INTEGER,
157 OVAL_DATATYPE_IOS_VERSION,
158 OVAL_DATATYPE_IPV4ADDR,
159 OVAL_DATATYPE_IPV6ADDR,
160 OVAL_DATATYPE_RECORD,
161 OVAL_DATATYPE_SEXP,
162 OVAL_DATATYPE_STRING,
163 OVAL_DATATYPE_STRING_M,
164 OVAL_DATATYPE_VERSION,
165 OVAL_DATATYPE_DEBIAN_EVR_STRING
166 } oval_datatype_t;
167
169 typedef enum {
170 OVAL_ENTITY_VARREF_UNKNOWN,
171 OVAL_ENTITY_VARREF_NONE,
172 OVAL_ENTITY_VARREF_ATTRIBUTE,
173 OVAL_ENTITY_VARREF_ELEMENT
174 } oval_entity_varref_type_t;
175
177 typedef enum {
178 OVAL_SET_UNKNOWN,
179 OVAL_SET_AGGREGATE,
180 OVAL_SET_COLLECTIVE
181 } oval_setobject_type_t;
182
184 typedef enum {
185 OVAL_SET_OPERATION_UNKNOWN,
186 OVAL_SET_OPERATION_COMPLEMENT = 1,
187 OVAL_SET_OPERATION_INTERSECTION = 2,
188 OVAL_SET_OPERATION_UNION = 3
189 } oval_setobject_operation_t;
190
192 typedef enum {
193 OVAL_VARIABLE_UNKNOWN,
194 OVAL_VARIABLE_EXTERNAL,
195 OVAL_VARIABLE_CONSTANT,
196 OVAL_VARIABLE_LOCAL
197 } oval_variable_type_t;
198
199 #define OVAL_FUNCTION 4
200 typedef enum {
202 OVAL_COMPONENT_UNKNOWN = 0,
203 OVAL_COMPONENT_LITERAL = 1,
204 OVAL_COMPONENT_OBJECTREF = 2,
205 OVAL_COMPONENT_VARREF = 3,
206 OVAL_COMPONENT_FUNCTION = 4,
207 OVAL_FUNCTION_BEGIN = OVAL_FUNCTION + 1,
208 OVAL_FUNCTION_CONCAT = OVAL_FUNCTION + 2,
209 OVAL_FUNCTION_END = OVAL_FUNCTION + 3,
210 OVAL_FUNCTION_SPLIT = OVAL_FUNCTION + 4,
211 OVAL_FUNCTION_SUBSTRING = OVAL_FUNCTION + 5,
212 OVAL_FUNCTION_TIMEDIF = OVAL_FUNCTION + 6,
213 OVAL_FUNCTION_ESCAPE_REGEX = OVAL_FUNCTION + 7,
214 OVAL_FUNCTION_REGEX_CAPTURE = OVAL_FUNCTION + 8,
215 OVAL_FUNCTION_ARITHMETIC = OVAL_FUNCTION + 9,
216 OVAL_FUNCTION_COUNT = OVAL_FUNCTION + 10,
217 OVAL_FUNCTION_UNIQUE = OVAL_FUNCTION + 11,
218 OVAL_FUNCTION_GLOB_TO_REGEX = OVAL_FUNCTION + 12,
219 OVAL_FUNCTION_LAST = OVAL_FUNCTION + 13
220 } oval_component_type_t;
221
223 typedef enum {
224 OVAL_ARITHMETIC_UNKNOWN = 0,
225 OVAL_ARITHMETIC_ADD = 1,
226 OVAL_ARITHMETIC_MULTIPLY = 2,
227 OVAL_ARITHMETIC_SUBTRACT = 3, //NOT YET SUPPORTED BY OVAL
228 OVAL_ARITHMETIC_DIVIDE = 4 //NOT YET SUPPORTED BY OVAL
229 } oval_arithmetic_operation_t;
230
232 typedef enum {
233 OVAL_DATETIME_UNKNOWN = 0,
234 OVAL_DATETIME_YEAR_MONTH_DAY = 1,
235 OVAL_DATETIME_MONTH_DAY_YEAR = 2,
236 OVAL_DATETIME_DAY_MONTH_YEAR = 3,
237 OVAL_DATETIME_WIN_FILETIME = 4,
238 OVAL_DATETIME_SECONDS_SINCE_EPOCH = 5,
239 OVAL_DATETIME_CIM_DATETIME = 6
240 } oval_datetime_format_t;
241
242 typedef enum {
243 OVAL_RECORD_FIELD_UNKNOWN = 0,
244 OVAL_RECORD_FIELD_STATE = 1,
245 OVAL_RECORD_FIELD_ITEM = 2,
246 } oval_record_field_type_t;
247
251 oval_family_t oval_subtype_get_family(oval_subtype_t);
252 const char *oval_operator_get_text(oval_operator_t);
253 const char *oval_subtype_get_text(oval_subtype_t);
254 const char *oval_family_get_text(oval_family_t);
255 const char *oval_check_get_text(oval_check_t);
256 const char *oval_existence_get_text(oval_existence_t);
257 const char *oval_affected_family_get_text(oval_affected_family_t);
258 const char *oval_datatype_get_text(oval_datatype_t);
259 oval_datatype_t oval_datatype_from_text(const char *);
260 const char *oval_operation_get_text(oval_operation_t);
261 const char *oval_set_operation_get_text(oval_setobject_operation_t);
262 const char *oval_datetime_format_get_text(oval_datetime_format_t);
263 const char *oval_arithmetic_operation_get_text(oval_arithmetic_operation_t);
264 const char *oval_filter_action_get_text(oval_filter_action_t);
265
266
271 struct oval_definition_model;
272
279 struct oval_definition;
284 struct oval_definition_iterator;
290 struct oval_test;
295 struct oval_test_iterator;
304 struct oval_object;
309 struct oval_object_iterator;
316 struct oval_state;
321 struct oval_state_iterator;
336 struct oval_variable;
340 struct oval_variable_possible_value;
341 struct oval_variable_possible_value_iterator;
345 struct oval_variable_possible_restriction;
346 struct oval_variable_possible_restriction_iterator;
350 struct oval_variable_restriction;
351 struct oval_variable_restriction_iterator;
356 struct oval_variable_iterator;
377 struct oval_affected;
382 struct oval_affected_iterator;
390 struct oval_reference;
395 struct oval_reference_iterator;
404 struct oval_criteria_node;
409 struct oval_criteria_node_iterator;
414 struct oval_object_content;
419 struct oval_object_content_iterator;
424 struct oval_behavior;
429 struct oval_behavior_iterator;
434 struct oval_state_content;
439 struct oval_state_content_iterator;
444 struct oval_value;
449 struct oval_value_iterator;
454 struct oval_entity;
458 struct oval_entity_iterator;
462 struct oval_record_field;
466 struct oval_record_field_iterator;
471 struct oval_setobject;
476 struct oval_setobject_iterator;
481 struct oval_filter;
485 struct oval_filter_iterator;
586 struct oval_component;
591 struct oval_component_iterator;
592
596 struct oval_generator;
597
598 struct oval_generator *oval_generator_new(void);
599 void oval_generator_free(struct oval_generator *generator);
600 struct oval_generator *oval_generator_clone(struct oval_generator *old_generator);
601 char *oval_generator_get_product_name(struct oval_generator *generator);
602 char *oval_generator_get_product_version(struct oval_generator *generator);
603 OSCAP_DEPRECATED(char *oval_generator_get_schema_version(struct oval_generator *generator));
604 const char *oval_generator_get_core_schema_version(struct oval_generator *generator);
605 char *oval_generator_get_timestamp(struct oval_generator *generator);
606 const char *oval_generator_get_platform_schema_version (struct oval_generator *generator, const char *platform);
607 void oval_generator_set_product_name(struct oval_generator *generator, const char *product_name);
608 void oval_generator_set_product_version(struct oval_generator *generator, const char *product_version);
609 OSCAP_DEPRECATED(void oval_generator_set_schema_version(struct oval_generator *generator, const char *schema_version));
610 void oval_generator_set_core_schema_version(struct oval_generator *generator, const char *schema_version);
611 void oval_generator_add_platform_schema_version(struct oval_generator *generator, const char *platform, const char *schema_version);
612 void oval_generator_set_timestamp(struct oval_generator *generator, const char *timestamp);
613 void oval_generator_update_timestamp(struct oval_generator *generator);
614
619 struct oval_definition_model *oval_definition_model_new(void);
620
627 struct oval_definition_model *oval_definition_model_import_source(struct oscap_source *source);
628
637 OSCAP_DEPRECATED(struct oval_definition_model *oval_definition_model_import(const char *file));
638
649 OSCAP_DEPRECATED(int oval_definition_model_merge(struct oval_definition_model *model, const char *file));
650
656 struct oval_definition_model *oval_definition_model_clone(struct oval_definition_model *);
662 int oval_definition_model_export(struct oval_definition_model *, const char *file);
667 void oval_definition_model_free(struct oval_definition_model *model);
668
673 void oval_definition_model_set_generator(struct oval_definition_model *model, struct oval_generator *generator);
679 int oval_definition_model_bind_variable_model(struct oval_definition_model *, struct oval_variable_model *);
680
681 void oval_definition_model_clear_external_variables(struct oval_definition_model *);
688 struct oval_generator *oval_definition_model_get_generator(struct oval_definition_model *model);
696 struct oval_definition *oval_definition_model_get_definition(struct oval_definition_model *, const char *id);
705 struct oval_test *oval_definition_model_get_test(struct oval_definition_model *model, const char *id);
714 struct oval_object *oval_definition_model_get_object(struct oval_definition_model *model, const char *id);
723 struct oval_state *oval_definition_model_get_state(struct oval_definition_model *model, const char *id);
732 struct oval_variable *oval_definition_model_get_variable(struct oval_definition_model *model, const char *id);
737 struct oval_definition_iterator *oval_definition_model_get_definitions(struct oval_definition_model *model);
744 struct oval_test_iterator *oval_definition_model_get_tests(struct oval_definition_model *model);
751 struct oval_object_iterator *oval_definition_model_get_objects(struct oval_definition_model *model);
758 struct oval_state_iterator *oval_definition_model_get_states(struct oval_definition_model *model);
765 struct oval_variable_iterator *oval_definition_model_get_variables(struct oval_definition_model *model);
766
772 const char * oval_definition_model_supported(void);
778 struct oval_variable_model_iterator *oval_definition_model_get_variable_models(struct oval_definition_model *);
804 struct oval_definition *oval_definition_new(struct oval_definition_model *, const char *id);
805
811 struct oval_definition *oval_definition_clone(struct oval_definition_model *new_model, struct oval_definition *old_definition);
812
822 void oval_definition_free(struct oval_definition *);
823
835 void oval_definition_set_version(struct oval_definition *, int version);
843 void oval_definition_set_class(struct oval_definition *, oval_definition_class_t);
849 void oval_definition_set_deprecated(struct oval_definition *, bool deprecated);
857 void oval_definition_set_title(struct oval_definition *, char *title);
865 void oval_definition_set_description(struct oval_definition *, char *description);
876 void oval_definition_add_affected(struct oval_definition *, struct oval_affected *affected);
887 void oval_definition_add_reference(struct oval_definition *, struct oval_reference *reference);
893 void oval_definition_add_note(struct oval_definition *, char *note);
907 void oval_definition_set_criteria(struct oval_definition *, struct oval_criteria_node *criteria);
918 char *oval_definition_get_id(struct oval_definition *);
924 int oval_definition_get_version(struct oval_definition *);
929 oval_definition_class_t oval_definition_get_class(struct oval_definition *);
934 bool oval_definition_get_deprecated(struct oval_definition *);
940 char *oval_definition_get_title(struct oval_definition *);
946 char *oval_definition_get_description(struct oval_definition *);
953 struct oval_affected_iterator *oval_definition_get_affected(struct oval_definition *);
960 struct oval_reference_iterator *oval_definition_get_references(struct oval_definition *);
967 struct oval_string_iterator *oval_definition_get_notes(struct oval_definition *);
973 struct oval_criteria_node *oval_definition_get_criteria(struct oval_definition *);
990 bool oval_definition_iterator_has_more(struct oval_definition_iterator *);
996 struct oval_definition *oval_definition_iterator_next(struct oval_definition_iterator *);
1001 void oval_definition_iterator_free(struct oval_definition_iterator *);
1024 struct oval_test *oval_test_new(struct oval_definition_model *, const char *id);
1030 struct oval_test *oval_test_clone(struct oval_definition_model *new_model, struct oval_test *old_test);
1035 void oval_test_free(struct oval_test *);
1036
1050 void oval_test_set_subtype(struct oval_test *, oval_subtype_t subtype);
1056 void oval_test_add_note(struct oval_test *, char *note);
1062 void oval_test_set_comment(struct oval_test *, char *comment);
1067 void oval_test_set_deprecated(struct oval_test *, bool deprecated);
1076 void oval_test_set_version(struct oval_test *, int version);
1081 void oval_test_set_state_operator(struct oval_test *, oval_operator_t);
1090 void oval_test_set_existence(struct oval_test *, oval_existence_t);
1100 void oval_test_set_check(struct oval_test *, oval_check_t);
1109 void oval_test_set_object(struct oval_test *, struct oval_object *);
1115 void oval_test_add_state(struct oval_test *, struct oval_state *);
1126 oval_family_t oval_test_get_family(struct oval_test *);
1131 oval_subtype_t oval_test_get_subtype(struct oval_test *);
1138 struct oval_string_iterator *oval_test_get_notes(struct oval_test *);
1144 char *oval_test_get_comment(struct oval_test *);
1150 char *oval_test_get_id(struct oval_test *);
1155 bool oval_test_get_deprecated(struct oval_test *);
1160 int oval_test_get_version(struct oval_test *);
1165 oval_operator_t oval_test_get_state_operator(struct oval_test *);
1170 oval_existence_t oval_test_get_existence(struct oval_test *);
1175 oval_check_t oval_test_get_check(struct oval_test *);
1181 struct oval_object *oval_test_get_object(struct oval_test *);
1188 struct oval_state_iterator *oval_test_get_states(struct oval_test *);
1189
1206 bool oval_test_iterator_has_more(struct oval_test_iterator *);
1211 struct oval_test *oval_test_iterator_next(struct oval_test_iterator *);
1216 void oval_test_iterator_free(struct oval_test_iterator *);
1237 struct oval_object *oval_object_new(struct oval_definition_model *, const char *id);
1243 struct oval_object *oval_object_clone(struct oval_definition_model *new_model, struct oval_object *old_object);
1248 void oval_object_free(struct oval_object *);
1249
1263 void oval_object_set_subtype(struct oval_object *, oval_subtype_t subtype);
1269 void oval_object_add_note(struct oval_object *, char *note);
1270
1276 void oval_object_set_comment(struct oval_object *, char *comment);
1277
1282 void oval_object_set_deprecated(struct oval_object *, bool deprecated);
1291 void oval_object_set_version(struct oval_object *, int version);
1304 void oval_object_add_object_content(struct oval_object *, struct oval_object_content *content);
1317 void oval_object_add_behavior(struct oval_object *, struct oval_behavior *behavior);
1328 oval_family_t oval_object_get_family(struct oval_object *);
1334 const char *oval_object_get_name(struct oval_object *);
1339 oval_subtype_t oval_object_get_subtype(struct oval_object *);
1346 struct oval_string_iterator *oval_object_get_notes(struct oval_object *);
1352 char *oval_object_get_comment(struct oval_object *);
1358 char *oval_object_get_id(struct oval_object *);
1359
1364 bool oval_object_get_deprecated(struct oval_object *);
1369 int oval_object_get_version(struct oval_object *);
1370
1374 OSCAP_DEPRECATED(oval_version_t oval_object_get_schema_version(struct oval_object *object));
1375
1380 oval_schema_version_t oval_object_get_platform_schema_version(struct oval_object *object);
1381
1388 struct oval_object_content_iterator *oval_object_get_object_contents(struct oval_object *);
1395 struct oval_behavior_iterator *oval_object_get_behaviors(struct oval_object *);
1412 bool oval_object_iterator_has_more(struct oval_object_iterator *);
1417 struct oval_object *oval_object_iterator_next(struct oval_object_iterator *);
1422 void oval_object_iterator_free(struct oval_object_iterator *);
1443 struct oval_state *oval_state_new(struct oval_definition_model *, const char *id);
1449 struct oval_state *oval_state_clone(struct oval_definition_model *new_model, struct oval_state *old_state);
1454 void oval_state_free(struct oval_state *);
1455
1469 void oval_state_set_subtype(struct oval_state *, oval_subtype_t subtype);
1475 void oval_state_add_note(struct oval_state *, char *note);
1481 void oval_state_set_comment(struct oval_state *, char *comment);
1486 void oval_state_set_deprecated(struct oval_state *, bool deprecated);
1495 void oval_state_set_version(struct oval_state *, int version);
1500 void oval_state_set_operator(struct oval_state *, oval_operator_t);
1513 void oval_state_add_content(struct oval_state *, struct oval_state_content *content);
1524 oval_family_t oval_state_get_family(struct oval_state *);
1530 const char *oval_state_get_name(struct oval_state *);
1535 oval_subtype_t oval_state_get_subtype(struct oval_state *);
1542 struct oval_string_iterator *oval_state_get_notes(struct oval_state *);
1548 char *oval_state_get_comment(struct oval_state *);
1554 char *oval_state_get_id(struct oval_state *);
1559 bool oval_state_get_deprecated(struct oval_state *);
1564 int oval_state_get_version(struct oval_state *);
1569 int oval_state_get_operator(struct oval_state *);
1576 struct oval_state_content_iterator *oval_state_get_contents(struct oval_state *);
1587 bool oval_state_iterator_has_more(struct oval_state_iterator *);
1592 struct oval_state *oval_state_iterator_next(struct oval_state_iterator *);
1597 void oval_state_iterator_free(struct oval_state_iterator *);
1630 struct oval_variable *oval_variable_new(struct oval_definition_model *model, const char *id, oval_variable_type_t type);
1636 struct oval_variable *oval_variable_clone(struct oval_definition_model *new_model, struct oval_variable *old_variable);
1641 void oval_variable_free(struct oval_variable *);
1642
1649 struct oval_variable_possible_value *oval_variable_possible_value_new(const char *hint, const char *value);
1650
1655 void oval_variable_possible_value_free(struct oval_variable_possible_value *pv);
1656
1661 char* oval_variable_possible_value_get_hint(struct oval_variable_possible_value* pv);
1662
1667 char* oval_variable_possible_value_get_value(struct oval_variable_possible_value* pv);
1668
1676 bool oval_variable_possible_value_iterator_has_more(struct oval_variable_possible_value_iterator*);
1680 struct oval_variable_possible_value *oval_variable_possible_value_iterator_next(struct oval_variable_possible_value_iterator*);
1684 int oval_variable_possible_value_iterator_remaining(struct oval_variable_possible_value_iterator*);
1688 void oval_variable_possible_value_iterator_free(struct oval_variable_possible_value_iterator*);
1698 struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t operator, const char *hint);
1699
1700
1705 void oval_variable_possible_restriction_free(struct oval_variable_possible_restriction *pr);
1706
1707
1715 bool oval_variable_possible_restriction_iterator_has_more(struct oval_variable_possible_restriction_iterator* iter);
1719 struct oval_variable_possible_restriction *oval_variable_possible_restriction_iterator_next(struct oval_variable_possible_restriction_iterator* iter);
1723 int oval_variable_possible_restriction_iterator_remaining(struct oval_variable_possible_restriction_iterator* iter);
1727 void oval_variable_possible_restriction_iterator_free(struct oval_variable_possible_restriction_iterator* iter);
1737 struct oval_variable_restriction *oval_variable_restriction_new(oval_operation_t operation, const char *value);
1738
1743 void oval_variable_restriction_free(struct oval_variable_restriction *r);
1744
1749 oval_operation_t oval_variable_restriction_get_operation(struct oval_variable_restriction* restriction);
1750
1755 char* oval_variable_restriction_get_value(struct oval_variable_restriction* restriction);
1756
1764 bool oval_variable_restriction_iterator_has_more(struct oval_variable_restriction_iterator*);
1768 struct oval_variable_restriction *oval_variable_restriction_iterator_next(struct oval_variable_restriction_iterator*);
1772 int oval_variable_restriction_iterator_remaining(struct oval_variable_restriction_iterator*);
1776 void oval_variable_restriction_iterator_free(struct oval_variable_restriction_iterator*);
1791 void oval_variable_set_comment(struct oval_variable *, char *comment);
1799 void oval_variable_set_version(struct oval_variable *, int version);
1805 void oval_variable_set_deprecated(struct oval_variable *, bool deprecated);
1813 void oval_variable_set_datatype(struct oval_variable *, oval_datatype_t);
1827 void oval_variable_add_value(struct oval_variable *, struct oval_value *); //type==OVAL_VARIABLE_CONSTANT
1828
1829 void oval_variable_clear_values(struct oval_variable *);
1830
1837 void oval_variable_add_possible_value(struct oval_variable *variable, struct oval_variable_possible_value *pv);
1838
1845 void oval_variable_add_possible_restriction(struct oval_variable *variable, struct oval_variable_possible_restriction *pr);
1846
1853 void oval_variable_possible_restriction_add_restriction(struct oval_variable_possible_restriction *pr, struct oval_variable_restriction *r);
1854
1867 void oval_variable_set_component(struct oval_variable *, struct oval_component *component); //type==OVAL_VARIABLE_LOCAL
1879 char *oval_variable_get_id(struct oval_variable *);
1885 char *oval_variable_get_comment(struct oval_variable *);
1890 int oval_variable_get_version(struct oval_variable *);
1895 bool oval_variable_get_deprecated(struct oval_variable *);
1900 oval_variable_type_t oval_variable_get_type(struct oval_variable *);
1905 oval_datatype_t oval_variable_get_datatype(struct oval_variable *);
1913 struct oval_value_iterator *oval_variable_get_values(struct oval_variable *); //type==OVAL_VARIABLE_CONSTANT
1920 struct oval_component *oval_variable_get_component(struct oval_variable *); //type==OVAL_VARIABLE_LOCAL
1921
1928 OSCAP_DEPRECATED(struct oval_iterator *oval_variable_get_possible_values(struct oval_variable *variable));
1929 struct oval_variable_possible_value_iterator *oval_variable_get_possible_values2(struct oval_variable *variable);
1930
1937 OSCAP_DEPRECATED(struct oval_iterator *oval_variable_get_possible_restrictions(struct oval_variable *variable));
1938 struct oval_variable_possible_restriction_iterator *oval_variable_get_possible_restrictions2(struct oval_variable *variable);
1939
1940
1947 OSCAP_DEPRECATED(struct oval_iterator *oval_variable_possible_restriction_get_restrictions(struct oval_variable_possible_restriction *possible_restriction));
1948 struct oval_variable_restriction_iterator *oval_variable_possible_restriction_get_restrictions2(struct oval_variable_possible_restriction *possible_restriction);
1949
1955 oval_operator_t oval_variable_possible_restriction_get_operator(struct oval_variable_possible_restriction *possible_restriction);
1956
1962 char* oval_variable_possible_restriction_get_hint(struct oval_variable_possible_restriction* possible_restriction);
1963
1968 const char *oval_component_type_get_text(oval_component_type_t type);
1979 bool oval_variable_iterator_has_more(struct oval_variable_iterator *);
1984 struct oval_variable *oval_variable_iterator_next(struct oval_variable_iterator *);
1989 void oval_variable_iterator_free(struct oval_variable_iterator *);
2002 struct oval_affected *oval_affected_new(struct oval_definition_model *);
2008 struct oval_affected *oval_affected_clone(struct oval_definition_model *new_model, struct oval_affected *old_affected);
2013 void oval_affected_free(struct oval_affected *);
2014
2023 void oval_affected_set_family(struct oval_affected *, oval_affected_family_t family);
2028 void oval_affected_add_platform(struct oval_affected *, char *platform_name);
2033 void oval_affected_add_product(struct oval_affected *, char *product_name);
2046 oval_affected_family_t oval_affected_get_family(struct oval_affected *);
2054 struct oval_string_iterator *oval_affected_get_platforms(struct oval_affected *);
2062 struct oval_string_iterator *oval_affected_get_products(struct oval_affected *);
2079 bool oval_affected_iterator_has_more(struct oval_affected_iterator *);
2084 struct oval_affected *oval_affected_iterator_next(struct oval_affected_iterator *);
2089 void oval_affected_iterator_free(struct oval_affected_iterator *);
2095 struct oval_reference *oval_reference_new(struct oval_definition_model *);
2100 struct oval_reference *oval_reference_clone
2101 (struct oval_definition_model *new_model, struct oval_reference *old_reference);
2105 void oval_reference_free(struct oval_reference *);
2106
2116 void oval_reference_set_source(struct oval_reference *, char *);
2120 void oval_reference_set_id(struct oval_reference *, char *);
2124 void oval_reference_set_url(struct oval_reference *, char *);
2136 char *oval_reference_get_source(struct oval_reference *);
2142 char *oval_reference_get_id(struct oval_reference *);
2148 char *oval_reference_get_url(struct oval_reference *);
2158 bool oval_reference_iterator_has_more(struct oval_reference_iterator *);
2162 struct oval_reference *oval_reference_iterator_next(struct oval_reference_iterator *);
2166 void oval_reference_iterator_free(struct oval_reference_iterator *);
2195 struct oval_criteria_node *oval_criteria_node_new(struct oval_definition_model *, oval_criteria_node_type_t type);
2201 struct oval_criteria_node *oval_criteria_node_clone
2202 (struct oval_definition_model *new_model, struct oval_criteria_node *old_node);
2207 void oval_criteria_node_free(struct oval_criteria_node *);
2208
2218 void oval_criteria_node_set_negate(struct oval_criteria_node *, bool negate);
2224 void oval_criteria_node_set_applicability_check(struct oval_criteria_node *, bool applicability_check);
2230 void oval_criteria_set_node_type(struct oval_criteria_node *node, oval_criteria_node_type_t type);
2236 void oval_criteria_node_set_comment(struct oval_criteria_node *, char *comment);
2244 void oval_criteria_node_set_operator(struct oval_criteria_node *, oval_operator_t op);
2255 void oval_criteria_node_add_subnode(struct oval_criteria_node *, struct oval_criteria_node *node);
2263 void oval_criteria_node_set_test(struct oval_criteria_node *, struct oval_test *);
2271 void oval_criteria_node_set_definition(struct oval_criteria_node *, struct oval_definition *); //type==NODETYPE_EXTENDDEF
2282 oval_criteria_node_type_t oval_criteria_node_get_type(struct oval_criteria_node *);
2287 bool oval_criteria_node_get_negate(struct oval_criteria_node *);
2292 bool oval_criteria_node_get_applicability_check(struct oval_criteria_node *);
2293
2299 char *oval_criteria_node_get_comment(struct oval_criteria_node *);
2305 oval_operator_t oval_criteria_node_get_operator(struct oval_criteria_node *);
2313 struct oval_criteria_node_iterator *oval_criteria_node_get_subnodes(struct oval_criteria_node *);
2320 struct oval_test *oval_criteria_node_get_test(struct oval_criteria_node *);
2327 struct oval_definition *oval_criteria_node_get_definition(struct oval_criteria_node *);
2338 bool oval_criteria_node_iterator_has_more(struct oval_criteria_node_iterator *);
2344 struct oval_criteria_node *oval_criteria_node_iterator_next(struct oval_criteria_node_iterator *);
2349 void oval_criteria_node_iterator_free(struct oval_criteria_node_iterator *);
2361 struct oval_object_content *oval_object_content_new(struct oval_definition_model *model, oval_object_content_type_t type);
2362
2367 struct oval_object_content *oval_object_content_clone
2368 (struct oval_definition_model *new_model, struct oval_object_content *old_content);
2369
2373 void oval_object_content_free(struct oval_object_content *);
2374
2383 void oval_object_content_set_type(struct oval_object_content *, oval_object_content_type_t);
2387 void oval_object_content_set_field_name(struct oval_object_content *, char *);
2391 void oval_object_content_set_entity(struct oval_object_content *, struct oval_entity *); //type == OVAL_OBJECTCONTENT_ENTITY
2395 void oval_object_content_set_varCheck(struct oval_object_content *, oval_check_t); //type == OVAL_OBJECTCONTENT_ENTITY
2399 void oval_object_content_set_setobject(struct oval_object_content *, struct oval_setobject *); //type == OVAL_OBJECTCONTENT_SET
2403 void oval_object_content_set_filter(struct oval_object_content *, struct oval_filter *); //type == OVAL_OBJECTCONTENT_FILTER
2415 char *oval_object_content_get_field_name(struct oval_object_content *);
2420 oval_object_content_type_t oval_object_content_get_type(struct oval_object_content *);
2426 struct oval_entity *oval_object_content_get_entity(struct oval_object_content *); //type == OVAL_OBJECTCONTENT_ENTITY
2431 oval_check_t oval_object_content_get_varCheck(struct oval_object_content *); //type == OVAL_OBJECTCONTENT_ENTITY
2437 struct oval_setobject *oval_object_content_get_setobject(struct oval_object_content *); //type == OVAL_OBJECTCONTENT_SET
2443 struct oval_filter *oval_object_content_get_filter(struct oval_object_content *content); //type == OVAL_OBJECTCONTENT_FILTER
2453 bool oval_object_content_iterator_has_more(struct oval_object_content_iterator *);
2457 struct oval_object_content *oval_object_content_iterator_next(struct oval_object_content_iterator *);
2461 void oval_object_content_iterator_free(struct oval_object_content_iterator *);
2473 struct oval_behavior *oval_behavior_new(struct oval_definition_model *);
2474
2479 struct oval_behavior *oval_behavior_clone(struct oval_definition_model *new_model, struct oval_behavior *old_behavior);
2483 void oval_behavior_free(struct oval_behavior *);
2484
2492 void oval_behavior_set_keyval(struct oval_behavior *behavior, const char *key, const char *value);
2504 char *oval_behavior_get_key(struct oval_behavior *);
2510 char *oval_behavior_get_value(struct oval_behavior *);
2520 bool oval_behavior_iterator_has_more(struct oval_behavior_iterator *);
2524 struct oval_behavior *oval_behavior_iterator_next(struct oval_behavior_iterator *);
2528 void oval_behavior_iterator_free(struct oval_behavior_iterator *);
2540 struct oval_state_content *oval_state_content_new(struct oval_definition_model *);
2545 struct oval_state_content *oval_state_content_clone (struct oval_definition_model *new_model, struct oval_state_content *old_content);
2549 void oval_state_content_free(struct oval_state_content *);
2550
2558 void oval_state_content_set_entity(struct oval_state_content *, struct oval_entity *);
2562 void oval_state_content_add_record_field(struct oval_state_content *, struct oval_record_field *);
2566 void oval_state_content_set_varcheck(struct oval_state_content *, oval_check_t);
2570 void oval_state_content_set_entcheck(struct oval_state_content *, oval_check_t);
2577 void oval_state_content_set_check_existence(struct oval_state_content *content, oval_existence_t existence);
2589 struct oval_entity *oval_state_content_get_entity(struct oval_state_content *);
2593 struct oval_record_field_iterator *oval_state_content_get_record_fields(struct oval_state_content *);
2598 oval_check_t oval_state_content_get_var_check(struct oval_state_content *);
2603 oval_check_t oval_state_content_get_ent_check(struct oval_state_content *);
2610 oval_existence_t oval_state_content_get_check_existence(struct oval_state_content *content);
2621 bool oval_state_content_iterator_has_more(struct oval_state_content_iterator *);
2625 struct oval_state_content *oval_state_content_iterator_next(struct oval_state_content_iterator *);
2629 void oval_state_content_iterator_free(struct oval_state_content_iterator *);
2635 struct oval_value *oval_value_new(oval_datatype_t datatype, char *text_value);
2640 struct oval_value *oval_value_clone(struct oval_value *old_value);
2644 void oval_value_free(struct oval_value *);
2645
2653 void oval_value_set_datatype(struct oval_value *, oval_datatype_t);
2654
2663 oval_datatype_t oval_value_get_datatype(struct oval_value *);
2669 char *oval_value_get_text(struct oval_value *);
2674 unsigned char *oval_value_get_binary(struct oval_value *); //datatype==OVAL_DATATYPE_BINARY
2679 bool oval_value_get_boolean(struct oval_value *); //datatype==OVAL_DATATYPE_BOOLEAN
2684 float oval_value_get_float(struct oval_value *); //datatype==OVAL_DATATYPE_FLOAT
2689 long long oval_value_get_integer(struct oval_value *); //datatype==OVAL_DATATYPE_INTEGER
2699 bool oval_value_iterator_has_more(struct oval_value_iterator *);
2703 struct oval_value *oval_value_iterator_next(struct oval_value_iterator *);
2707 int oval_value_iterator_remaining(struct oval_value_iterator *iterator);
2711 void oval_value_iterator_free(struct oval_value_iterator *);
2723 struct oval_entity *oval_entity_new(struct oval_definition_model *);
2728 struct oval_entity *oval_entity_clone(struct oval_definition_model *model, struct oval_entity *old_entity);
2732 void oval_entity_free(struct oval_entity *);
2733
2741 void oval_entity_set_type(struct oval_entity *, oval_entity_type_t);
2745 void oval_entity_set_datatype(struct oval_entity *, oval_datatype_t);
2749 void oval_entity_set_mask(struct oval_entity *, int);
2753 void oval_entity_set_varref_type(struct oval_entity *, oval_entity_varref_type_t);
2757 void oval_entity_set_variable(struct oval_entity *, struct oval_variable *);
2761 void oval_entity_set_value(struct oval_entity *, struct oval_value *);
2765 void oval_entity_set_name(struct oval_entity *, char *);
2769 void oval_entity_set_operation(struct oval_entity *, oval_operation_t);
2781 char *oval_entity_get_name(struct oval_entity *);
2786 oval_entity_type_t oval_entity_get_type(struct oval_entity *);
2791 oval_datatype_t oval_entity_get_datatype(struct oval_entity *);
2796 oval_operation_t oval_entity_get_operation(struct oval_entity *);
2802 struct oval_variable *oval_entity_get_variable(struct oval_entity *);
2808 struct oval_value *oval_entity_get_value(struct oval_entity *);
2813 int oval_entity_get_mask(struct oval_entity *);
2818 oval_entity_varref_type_t oval_entity_get_varref_type(struct oval_entity *);
2828 bool oval_entity_iterator_has_more(struct oval_entity_iterator *);
2832 struct oval_entity *oval_entity_iterator_next(struct oval_entity_iterator *);
2836 void oval_entity_iterator_free(struct oval_entity_iterator *);
2848 struct oval_record_field *oval_record_field_new(oval_record_field_type_t);
2852 struct oval_record_field *oval_record_field_clone(struct oval_record_field *);
2856 void oval_record_field_free(struct oval_record_field *);
2857
2865 void oval_record_field_set_name(struct oval_record_field *, char *);
2869 void oval_record_field_set_value(struct oval_record_field *, char *);
2873 void oval_record_field_set_datatype(struct oval_record_field *, oval_datatype_t);
2877 void oval_record_field_set_mask(struct oval_record_field *, int);
2881 void oval_record_field_set_operation(struct oval_record_field *, oval_operation_t);
2885 void oval_record_field_set_variable(struct oval_record_field *, struct oval_variable *);
2889 void oval_record_field_set_var_check(struct oval_record_field *, oval_check_t);
2893 void oval_record_field_set_ent_check(struct oval_record_field *, oval_check_t);
2903 oval_record_field_type_t oval_record_field_get_type(struct oval_record_field *);
2907 char *oval_record_field_get_name(struct oval_record_field *);
2911 char *oval_record_field_get_value(struct oval_record_field *);
2915 oval_datatype_t oval_record_field_get_datatype(struct oval_record_field *);
2919 int oval_record_field_get_mask(struct oval_record_field *);
2923 oval_operation_t oval_record_field_get_operation(struct oval_record_field *);
2927 struct oval_variable *oval_record_field_get_variable(struct oval_record_field *);
2931 oval_check_t oval_record_field_get_var_check(struct oval_record_field *);
2935 oval_check_t oval_record_field_get_ent_check(struct oval_record_field *);
2945 bool oval_record_field_iterator_has_more(struct oval_record_field_iterator *);
2949 struct oval_record_field *oval_record_field_iterator_next(struct oval_record_field_iterator *);
2953 void oval_record_field_iterator_free(struct oval_record_field_iterator *);
2965 struct oval_filter *oval_filter_new(struct oval_definition_model *);
2969 void oval_filter_free(struct oval_filter *);
2973 struct oval_filter *oval_filter_clone(struct oval_definition_model *, struct oval_filter *);
2974
2982 void oval_filter_set_state(struct oval_filter *, struct oval_state *);
2986 void oval_filter_set_filter_action(struct oval_filter *, oval_filter_action_t );
2996 struct oval_state *oval_filter_get_state(struct oval_filter *);
3000 oval_filter_action_t oval_filter_get_filter_action(struct oval_filter *);
3010 bool oval_filter_iterator_has_more(struct oval_filter_iterator *);
3014 struct oval_filter *oval_filter_iterator_next(struct oval_filter_iterator *);
3018 void oval_filter_iterator_free(struct oval_filter_iterator *);
3030 struct oval_setobject *oval_setobject_new(struct oval_definition_model *);
3035 struct oval_setobject *oval_setobject_clone(struct oval_definition_model *new_model, struct oval_setobject *old_setobject);
3039 void oval_setobject_free(struct oval_setobject *);
3040
3047 void oval_setobject_set_type(struct oval_setobject *, oval_setobject_type_t);
3051 void oval_setobject_set_operation(struct oval_setobject *, oval_setobject_operation_t);
3055 void oval_setobject_add_subset(struct oval_setobject *, struct oval_setobject *); //type==OVAL_SET_AGGREGATE;
3059 void oval_setobject_add_object(struct oval_setobject *, struct oval_object *); //type==OVAL_SET_COLLECTIVE;
3063 void oval_setobject_add_filter(struct oval_setobject *, struct oval_filter *); //type==OVAL_SET_COLLECTIVE;
3074 oval_setobject_type_t oval_setobject_get_type(struct oval_setobject *);
3079 oval_setobject_operation_t oval_setobject_get_operation(struct oval_setobject *);
3087 struct oval_setobject_iterator *oval_setobject_get_subsets(struct oval_setobject *); //type==OVAL_SET_AGGREGATE;
3095 struct oval_object_iterator *oval_setobject_get_objects(struct oval_setobject *); //type==OVAL_SET_COLLECTIVE;
3103 struct oval_filter_iterator *oval_setobject_get_filters(struct oval_setobject *); //type==OVAL_SET_COLLECTIVE;
3113 bool oval_setobject_iterator_has_more(struct oval_setobject_iterator *);
3117 struct oval_setobject *oval_setobject_iterator_next(struct oval_setobject_iterator *);
3121 void oval_setobject_iterator_free(struct oval_setobject_iterator *);
3173 struct oval_component *oval_component_new(struct oval_definition_model *, oval_component_type_t type);
3179 struct oval_component *oval_component_clone(struct oval_definition_model *new_model,
3180 struct oval_component *old_component);
3185 void oval_component_free(struct oval_component *);
3186
3195 void oval_component_set_type(struct oval_component *component, oval_component_type_t type);
3201 void oval_component_set_object(struct oval_component *, struct oval_object *object);
3206 void oval_component_set_item_field(struct oval_component *, char *);
3211 void oval_component_set_record_field(struct oval_component *, char *);
3217 void oval_component_set_variable(struct oval_component *, struct oval_variable *variable);
3221 void oval_component_add_function_component(struct oval_component *, struct oval_component *); //type==OVAL_COMPONENT_FUNCTION
3225 void oval_component_set_arithmetic_operation(struct oval_component *, oval_arithmetic_operation_t); //type==OVAL_COMPONENT_ARITHMETIC
3229 void oval_component_set_prefix(struct oval_component *, char *); //type==OVAL_COMPONENT_BEGIN
3233 void oval_component_set_suffix(struct oval_component *, char *); //type==OVAL_COMPONENT_END
3237 void oval_component_set_split_delimiter(struct oval_component *, char *); //type==OVAL_COMPONENT_SPLIT
3241 void oval_component_set_glob_to_regex_glob_noescape(struct oval_component *, bool); //type==OVAL_COMPONENT_GLOB
3245 void oval_component_set_substring_start(struct oval_component *, int); //type==OVAL_COMPONENT_SUBSTRING
3249 void oval_component_set_substring_length(struct oval_component *, int); //type==OVAL_COMPONENT_SUBSTRING
3253 void oval_component_set_timedif_format_1(struct oval_component *, oval_datetime_format_t); //type==OVAL_COMPONENT_TIMEDIF
3257 void oval_component_set_timedif_format_2(struct oval_component *, oval_datetime_format_t); //type==OVAL_COMPONENT_TIMEDIF
3261 void oval_component_set_regex_pattern(struct oval_component *, char *); //type==OVAL_COMPONENT_REGEX_CAPTURE
3265 void oval_component_set_literal_value(struct oval_component *, struct oval_value *); //type==OVAL_COMPONENT_LITERAL
3276 oval_component_type_t oval_component_get_type(struct oval_component *);
3284 struct oval_object *oval_component_get_object(struct oval_component *); //type==OVAL_COMPONENT_OBJECTREF
3291 char *oval_component_get_item_field(struct oval_component *);
3298 char *oval_component_get_record_field(struct oval_component *);
3306 struct oval_variable *oval_component_get_variable(struct oval_component *);
3314 struct oval_component_iterator *oval_component_get_function_components(struct oval_component *); //type==OVAL_COMPONENT_FUNCTION
3320 oval_arithmetic_operation_t oval_component_get_arithmetic_operation(struct oval_component *); //type==OVAL_COMPONENT_ARITHMETIC
3328 char *oval_component_get_prefix(struct oval_component *); //type==OVAL_COMPONENT_BEGIN
3336 char *oval_component_get_suffix(struct oval_component *); //type==OVAL_COMPONENT_END
3344 char *oval_component_get_split_delimiter(struct oval_component *); //type==OVAL_COMPONENT_SPLIT
3351 bool oval_component_get_glob_to_regex_glob_noescape(struct oval_component *); //type==OVAL_COMPONENT_GLOB
3357 int oval_component_get_substring_start(struct oval_component *); //type==OVAL_COMPONENT_SUBSTRING
3363 int oval_component_get_substring_length(struct oval_component *); //type==OVAL_COMPONENT_SUBSTRING
3369 oval_datetime_format_t oval_component_get_timedif_format_1(struct oval_component *); //type==OVAL_COMPONENT_TIMEDIF
3375 oval_datetime_format_t oval_component_get_timedif_format_2(struct oval_component *); //type==OVAL_COMPONENT_TIMEDIF
3383 char *oval_component_get_regex_pattern(struct oval_component *); //type==OVAL_COMPONENT_REGEX_CAPTURE
3391 struct oval_value *oval_component_get_literal_value(struct oval_component *); //type==OVAL_COMPONENT_LITERAL
3402 bool oval_component_iterator_has_more(struct oval_component_iterator *);
3408 struct oval_component *oval_component_iterator_next(struct oval_component_iterator *);
3413 void oval_component_iterator_free(struct oval_component_iterator *);
3418 int oval_component_iterator_remaining(struct oval_component_iterator *);
3438 OSCAP_DEPRECATED(char *oval_determine_document_schema_version(const char *, oscap_document_type_t));
3439
3443 #endif
oval_operator_t
oval_operator_t
Boolean operators.
Definition: oval_definitions.h:75
oval_entity_varref_type_t
oval_entity_varref_type_t
Varref types.
Definition: oval_definitions.h:169
oval_component::oval_component_get_arithmetic_operation
oval_arithmetic_operation_t oval_component_get_arithmetic_operation(struct oval_component *)
Returns attribute Oval_function_ARITHMETIC->arithmetic_operation.
Definition: oval_component.c:370
oval_variable_possible_value::oval_variable_possible_value_get_value
char * oval_variable_possible_value_get_value(struct oval_variable_possible_value *pv)
Get the value of the possible value.
Definition: oval_variable.c:131
oval_definition::oval_definition_get_class
oval_definition_class_t oval_definition_get_class(struct oval_definition *)
Returns attribute oval_definition->class.
Definition: oval_definition.c:88
oval_affected::oval_affected_get_products
struct oval_string_iterator * oval_affected_get_products(struct oval_affected *)
Get member values oval_affected product_names.
Definition: oval_affected.c:110
oval_variable::oval_variable_get_deprecated
bool oval_variable_get_deprecated(struct oval_variable *)
Returns attribute oval_variable->deprecated.
Definition: oval_variable.c:325
oval_test::oval_test_get_object
struct oval_object * oval_test_get_object(struct oval_test *)
Returns attribute oval_test->object.
Definition: oval_test.c:150
oval_test::oval_test_set_state_operator
void oval_test_set_state_operator(struct oval_test *, oval_operator_t)
Sets attribute oval_test->state_operator.
Definition: oval_test.c:303
oval_object_iterator::oval_object_iterator_next
struct oval_object * oval_object_iterator_next(struct oval_object_iterator *)
Returns the next instance of oval_object.
Definition: oval_object.c:65
oval_test::oval_test_set_existence
void oval_test_set_existence(struct oval_test *, oval_existence_t)
Sets attribute oval_test->existence.
Definition: oval_test.c:297
oval_criteria_node::oval_criteria_node_set_operator
void oval_criteria_node_set_operator(struct oval_criteria_node *, oval_operator_t op)
Set attribute Oval_criteria->operator.
Definition: oval_criteriaNode.c:325
oval_entity::oval_entity_get_operation
oval_operation_t oval_entity_get_operation(struct oval_entity *)
Get OVAL entity operation type.
Definition: oval_entity.c:120
oval_criteria_node_iterator::oval_criteria_node_iterator_next
struct oval_criteria_node * oval_criteria_node_iterator_next(struct oval_criteria_node_iterator *)
Returns the next instance of Oval_criteria_node from the iterator.
Definition: oval_criteriaNode.c:97
oval_behavior::oval_behavior_clone
struct oval_behavior * oval_behavior_clone(struct oval_definition_model *new_model, struct oval_behavior *old_behavior)
Definition: oval_behavior.c:105
oval_determine_document_schema_version
char * oval_determine_document_schema_version(const char *, oscap_document_type_t)
END OVALDEF.
Definition: oval_parser.c:137
oval_test::oval_test_new
struct oval_test * oval_test_new(struct oval_definition_model *, const char *id)
Construct new instance of oval_test.
Definition: oval_test.c:191
oval_criteria_node::oval_criteria_node_get_subnodes
struct oval_criteria_node_iterator * oval_criteria_node_get_subnodes(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->subnodes.
Definition: oval_criteriaNode.c:151
oval_arithmetic_operation_t
oval_arithmetic_operation_t
Arithmetic format enumeration.
Definition: oval_definitions.h:223
oval_definition_model::oval_definition_model_get_objects
struct oval_object_iterator * oval_definition_model_get_objects(struct oval_definition_model *model)
Get OVAL objects.
Definition: oval_defModel.c:406
oval_component_type_t
oval_component_type_t
Component types.
Definition: oval_definitions.h:201
oval_criteria_node_iterator::oval_criteria_node_iterator_has_more
bool oval_criteria_node_iterator_has_more(struct oval_criteria_node_iterator *)
Returns true if the iterator is not exhausted.
Definition: oval_criteriaNode.c:90
oval_object::oval_object_get_notes
struct oval_string_iterator * oval_object_get_notes(struct oval_object *)
Returns attribute oval_object->notes.
Definition: oval_object.c:100
oval_variable_iterator::oval_variable_iterator_free
void oval_variable_iterator_free(struct oval_variable_iterator *)
Free iterator.
Definition: oval_variable.c:297
oval_object_iterator::oval_object_iterator_has_more
bool oval_object_iterator_has_more(struct oval_object_iterator *)
Returns true if the iterator is not exhausted.
Definition: oval_object.c:59
oval_test::oval_test_set_object
void oval_test_set_object(struct oval_test *, struct oval_object *)
Sets attribute oval_test->object.
Definition: oval_test.c:315
oval_test::oval_test_add_state
void oval_test_add_state(struct oval_test *, struct oval_state *)
Add the specified state to the state list of the specified test.
Definition: oval_test.c:321
oval_operation_t
oval_operation_t
Operations.
Definition: oval_definitions.h:84
oval_state::oval_state_add_content
void oval_state_add_content(struct oval_state *, struct oval_state_content *content)
Append instance of oval_state_content to attribute oval_state->state_contents.
Definition: oval_state.c:251
oval_definition_model::oval_definition_model_import_source
struct oval_definition_model * oval_definition_model_import_source(struct oscap_source *source)
Import the content of the oscap_source into the oval_definition_model.
Definition: oval_defModel.c:251
oval_component::oval_component_get_literal_value
struct oval_value * oval_component_get_literal_value(struct oval_component *)
Returns attribute Oval_literal->literal.
Definition: oval_component.c:272
oval_criteria_node::oval_criteria_node_get_definition
struct oval_definition * oval_criteria_node_get_definition(struct oval_criteria_node *)
Returns attribute Oval_extends->definition.
Definition: oval_criteriaNode.c:175
oval_definition::oval_definition_get_references
struct oval_reference_iterator * oval_definition_get_references(struct oval_definition *)
Returns attribute oval_definition->references.
Definition: oval_definition.c:125
oval_definition::oval_definition_set_class
void oval_definition_set_class(struct oval_definition *, oval_definition_class_t)
Set attribute oval_definition->class.
Definition: oval_definition.c:276
oval_definition_model::oval_definition_model_supported
const char * oval_definition_model_supported(void)
Get supported version of OVAL XML.
Definition: oval_definition.c:550
oval_affected::oval_affected_add_product
void oval_affected_add_product(struct oval_affected *, char *product_name)
Append name to oval_affected product names.
Definition: oval_affected.c:181
oval_subtype_t
oval_subtype_t
Unknown subtypes.
Definition: oval_types.h:120
oval_state::oval_state_get_operator
int oval_state_get_operator(struct oval_state *)
Returns attribute oval_state->operator.
Definition: oval_state.c:136
oval_variable_restriction::oval_variable_restriction_new
struct oval_variable_restriction * oval_variable_restriction_new(oval_operation_t operation, const char *value)
Construct new instance of restriction element.
Definition: oval_variable.c:230
oval_object::oval_object_add_object_content
void oval_object_add_object_content(struct oval_object *, struct oval_object_content *content)
Append instance of oval_object_content to attribute oval_object->object_contents. ...
Definition: oval_object.c:296
oval_definition_model::oval_definition_model_get_variable
struct oval_variable * oval_definition_model_get_variable(struct oval_definition_model *model, const char *id)
Get OVAL variable by ID.
Definition: oval_defModel.c:312
oval_criteria_node::oval_criteria_node_get_operator
oval_operator_t oval_criteria_node_get_operator(struct oval_criteria_node *)
Returns attribute Oval_criteria->operator HOWDI.
Definition: oval_criteriaNode.c:143
oval_definition
Oval definition specification.
Definition: oval_definition.c:54
oval_variable::oval_variable_get_comment
char * oval_variable_get_comment(struct oval_variable *)
Returns attribute oval_variable->comment.
Definition: oval_variable.c:311
oval_criteria_node_type_t
oval_criteria_node_type_t
Criteria node type.
Definition: oval_definitions.h:67
oval_setobject
OVAL set object.
Definition: oval_set.c:45
oscap.h
General OpenScap functions and types.
oval_variable_possible_value
Definition: oval_variable.c:90
oval_test::oval_test_get_notes
struct oval_string_iterator * oval_test_get_notes(struct oval_test *)
Returns attribute oval_test->notes.
Definition: oval_test.c:94
oval_test_iterator
Definition: oval_definitions.h:290
oval_object::oval_object_get_subtype
oval_subtype_t oval_object_get_subtype(struct oval_object *)
Returns attribute oval_object->subtype.
Definition: oval_object.c:85
oval_definition::oval_definition_set_description
void oval_definition_set_description(struct oval_definition *, char *description)
Set attribute oval_definition->description.
Definition: oval_definition.c:296
oval_state::oval_state_get_contents
struct oval_state_content_iterator * oval_state_get_contents(struct oval_state *)
Returns attribute oval_state->contents.
Definition: oval_state.c:100
oval_state::oval_state_get_deprecated
bool oval_state_get_deprecated(struct oval_state *)
Returns attribute oval_state->deprecated.
Definition: oval_state.c:122
oval_component::oval_component_get_function_components
struct oval_component_iterator * oval_component_get_function_components(struct oval_component *)
Returns attribute Oval_function->components.
Definition: oval_component.c:353
oval_component::oval_component_new
struct oval_component * oval_component_new(struct oval_definition_model *, oval_component_type_t type)
Construct new intance of Oval_component.
Definition: oval_component.c:615
oval_value::oval_value_get_integer
long long oval_value_get_integer(struct oval_value *)
Get OVAL value as an integer.
Definition: oval_value.c:111
oval_component::oval_component_get_glob_to_regex_glob_noescape
bool oval_component_get_glob_to_regex_glob_noescape(struct oval_component *)
Returns attribute Oval_function_GLOB_TO_REGEX->glob_noescape.
Definition: oval_component.c:468
oval_test::oval_test_get_comment
char * oval_test_get_comment(struct oval_test *)
Returns attribute Oval_test->comment.
Definition: oval_test.c:101
oval_criteria_node_iterator
Definition: oval_definitions.h:404
oval_state::oval_state_get_version
int oval_state_get_version(struct oval_state *)
Returns attribute oval_state->version.
Definition: oval_state.c:129
oval_state::oval_state_free
void oval_state_free(struct oval_state *)
Free instance of oval_state.
Definition: oval_state.c:195
oval_component::oval_component_get_prefix
char * oval_component_get_prefix(struct oval_component *)
Returns attribute Oval_function_BEGIN->prefix.
Definition: oval_component.c:395
oval_types.h
oval_variable::oval_variable_add_value
void oval_variable_add_value(struct oval_variable *, struct oval_value *)
Append an instance of Oval_value to the attribute Oval_constant->values.
Definition: oval_variable.c:862
oval_object::oval_object_set_deprecated
void oval_object_set_deprecated(struct oval_object *, bool deprecated)
Sets attribute oval_object->deprecated.
Definition: oval_object.c:284
oval_affected_iterator::oval_affected_iterator_next
struct oval_affected * oval_affected_iterator_next(struct oval_affected_iterator *)
Return next instance of oval_affected from iterator.
Definition: oval_affected.c:82
oval_component::oval_component_get_substring_length
int oval_component_get_substring_length(struct oval_component *)
Returns attribute Oval_function_SUBSTRING->length.
Definition: oval_component.c:517
oval_criteria_node::oval_criteria_node_get_comment
char * oval_criteria_node_get_comment(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->comment.
Definition: oval_criteriaNode.c:136
oval_component::oval_component_get_object
struct oval_object * oval_component_get_object(struct oval_component *)
Returns attribute Oval_component_object->object.
Definition: oval_component.c:295
oval_definition_iterator::oval_definition_iterator_free
void oval_definition_iterator_free(struct oval_definition_iterator *)
Free the iterator.
Definition: oval_definition.c:262
oval_criteria_node::oval_criteria_node_get_type
oval_criteria_node_type_t oval_criteria_node_get_type(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->type.
Definition: oval_criteriaNode.c:114
oval_variable::oval_variable_get_id
char * oval_variable_get_id(struct oval_variable *)
Returns attribute oval_variable->id.
Definition: oval_variable.c:304
oval_reference_iterator
Definition: oval_definitions.h:390
oval_variable::oval_variable_free
void oval_variable_free(struct oval_variable *)
Free instance of oval_variable.
Definition: oval_variable.c:740
oval_variable::oval_variable_get_type
oval_variable_type_t oval_variable_get_type(struct oval_variable *)
Returns attribute oval_variable->type.
Definition: oval_variable.c:332
oval_definition::oval_definition_get_criteria
struct oval_criteria_node * oval_definition_get_criteria(struct oval_definition *)
Returns attribute oval_definition->criteria.
Definition: oval_definition.c:141
oval_value_iterator
Definition: oval_definitions.h:444
oval_state_content::oval_state_content_get_entity
struct oval_entity * oval_state_content_get_entity(struct oval_state_content *)
Get entity of a state content.
Definition: oval_stateContent.c:78
oval_setobject::oval_setobject_get_objects
struct oval_object_iterator * oval_setobject_get_objects(struct oval_setobject *)
Get OVAL set object referenced objects.
Definition: oval_set.c:105
oval_test::oval_test_set_subtype
void oval_test_set_subtype(struct oval_test *, oval_subtype_t subtype)
Sets attributes oval_test->subtype and Oval_test->family.
Definition: oval_test.c:283
oval_criteria_node
Specify oval_definition dependencies.
Definition: oval_criteriaNode.c:50
OSCAP_DEPRECATED
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50
oval_component::oval_component_get_substring_start
int oval_component_get_substring_start(struct oval_component *)
Returns attribute Oval_function_SUBSTRING->start.
Definition: oval_component.c:492
oval_object::oval_object_new
struct oval_object * oval_object_new(struct oval_definition_model *, const char *id)
Construct new intance of oval_object.
Definition: oval_object.c:173
oval_affected
Each OVAL Definition specifies certain type of affected system(s).
Definition: oval_affected.c:52
oval_test_iterator::oval_test_iterator_has_more
bool oval_test_iterator_has_more(struct oval_test_iterator *)
Returns true if the iterator is not exhausted.
Definition: oval_test.c:63
oval_object::oval_object_get_family
oval_family_t oval_object_get_family(struct oval_object *)
Returns attribute oval_object->family.
Definition: oval_object.c:78
oval_component_iterator
Definition: oval_definitions.h:586
oval_state::oval_state_get_family
oval_family_t oval_state_get_family(struct oval_state *)
Returns attribute oval_state->family.
Definition: oval_state.c:76
oval_object_content_type_t
oval_object_content_type_t
Type of object content.
Definition: oval_definitions.h:123
oval_setobject::oval_setobject_clone
struct oval_setobject * oval_setobject_clone(struct oval_definition_model *new_model, struct oval_setobject *old_setobject)
Definition: oval_set.c:147
oval_test::oval_test_get_subtype
oval_subtype_t oval_test_get_subtype(struct oval_test *)
Returns attribute Oval_test->subtype.
Definition: oval_test.c:87
oval_variable_model_iterator
oval_variable::oval_variable_new
struct oval_variable * oval_variable_new(struct oval_definition_model *model, const char *id, oval_variable_type_t type)
Construct new instance of oval_variable.
Definition: oval_variable.c:571
oval_component::oval_component_get_timedif_format_1
oval_datetime_format_t oval_component_get_timedif_format_1(struct oval_component *)
Returns attribute Oval_function_TIMEDIF->timedif_format_1.
Definition: oval_component.c:542
oval_object::oval_object_get_platform_schema_version
oval_schema_version_t oval_object_get_platform_schema_version(struct oval_object *object)
Returns schema version of the associated platform extension definition model.
Definition: oval_object.c:144
oval_setobject::oval_setobject_get_operation
oval_setobject_operation_t oval_setobject_get_operation(struct oval_setobject *)
Get OVAL set object operation type.
Definition: oval_set.c:85
oval_filter
OVAL filter.
Definition: oval_filter.c:43
oval_value::oval_value_get_binary
unsigned char * oval_value_get_binary(struct oval_value *)
Get OVAL value as a piece of raw binary data.
Definition: oval_value.c:88
oval_test::oval_test_get_id
char * oval_test_get_id(struct oval_test *)
Returns attribute oval_test->id.
Definition: oval_test.c:108
oval_affected_iterator::oval_affected_iterator_free
void oval_affected_iterator_free(struct oval_affected_iterator *)
Release instance of oval_affected_ iterator.
Definition: oval_affected.c:89
oval_state::oval_state_set_comment
void oval_state_set_comment(struct oval_state *, char *comment)
Sets a copy of the comment parameter to attribute oval_state->comment.
Definition: oval_state.c:225
oval_variable_possible_restriction::oval_variable_possible_restriction_add_restriction
void oval_variable_possible_restriction_add_restriction(struct oval_variable_possible_restriction *pr, struct oval_variable_restriction *r)
Add a restriction to the list of possible restrictions.
Definition: oval_variable.c:177
oval_entity::oval_entity_get_datatype
oval_datatype_t oval_entity_get_datatype(struct oval_entity *)
Get OVAL entity datatype.
Definition: oval_entity.c:113
oval_value::oval_value_get_boolean
bool oval_value_get_boolean(struct oval_value *)
Get OVAL value as a boolean.
Definition: oval_value.c:93
oval_variable::oval_component_type_get_text
const char * oval_component_type_get_text(oval_component_type_t type)
Returns attribute Oval_component_type->text.
Definition: oval_enumerations.c:361
oval_entity::oval_entity_get_name
char * oval_entity_get_name(struct oval_entity *)
Get OVAL entity name.
Definition: oval_entity.c:99
oval_object::oval_object_get_deprecated
bool oval_object_get_deprecated(struct oval_object *)
Returns attribute oval_object->deprecated.
Definition: oval_object.c:121
oval_component::oval_component_free
void oval_component_free(struct oval_component *)
Free instance of Oval_component.
Definition: oval_component.c:856
oval_definition_model::oval_definition_model_merge
int oval_definition_model_merge(struct oval_definition_model *model, const char *file)
Merge the content from the file with specified oval_definition_model.
Definition: oval_defModel.c:270
oval_subtype_get_family
oval_family_t oval_subtype_get_family(oval_subtype_t)
Get the family associated with a given subtype.
Definition: oval_enumerations.c:680
oval_variable_possible_value::oval_variable_possible_value_free
void oval_variable_possible_value_free(struct oval_variable_possible_value *pv)
Free instance of possible_value.
Definition: oval_variable.c:115
oval_variable_possible_restriction::oval_variable_possible_restriction_get_operator
oval_operator_t oval_variable_possible_restriction_get_operator(struct oval_variable_possible_restriction *possible_restriction)
Get operator of possible_restriction element.
Definition: oval_variable.c:194
oval_component::oval_component_set_object
void oval_component_set_object(struct oval_component *, struct oval_object *object)
set attribute Oval_component_object->object.
Definition: oval_component.c:304
oval_component::oval_component_get_record_field
char * oval_component_get_record_field(struct oval_component *)
Returns attribute Oval_component_object->record_field.
Definition: oval_component.c:326
oval_adt.h
oval_definition_model::oval_definition_model_get_object
struct oval_object * oval_definition_model_get_object(struct oval_definition_model *model, const char *id)
Get OVAL object by ID.
Definition: oval_defModel.c:298
oval_state
An Oval_state instance is a collection of one or more characteristics pertaining to a specific object...
Definition: oval_state.c:45
oval_variable::oval_variable_add_possible_value
void oval_variable_add_possible_value(struct oval_variable *variable, struct oval_variable_possible_value *pv)
Add a new possible value to an external variable.
Definition: oval_variable.c:877
oval_object_iterator::oval_object_iterator_free
void oval_object_iterator_free(struct oval_object_iterator *)
Frees the iterator.
Definition: oval_object.c:72
oval_object_iterator
Definition: oval_definitions.h:304
oval_affected::oval_affected_set_family
void oval_affected_set_family(struct oval_affected *, oval_affected_family_t family)
Set oval_affected family.
Definition: oval_affected.c:167
oval_entity::oval_entity_get_variable
struct oval_variable * oval_entity_get_variable(struct oval_entity *)
Get OVAL entity varref variable.
Definition: oval_entity.c:147
oval_variable_restriction
Definition: oval_variable.c:101
oval_criteria_node::oval_criteria_node_set_comment
void oval_criteria_node_set_comment(struct oval_criteria_node *, char *comment)
set attribute Oval_criteria_node->comment.
Definition: oval_criteriaNode.c:317
oval_test::oval_test_get_deprecated
bool oval_test_get_deprecated(struct oval_test *)
Returns attribute oval_test->deprecated.
Definition: oval_test.c:115
oval_state::oval_state_get_subtype
oval_subtype_t oval_state_get_subtype(struct oval_state *)
Returns attribute oval_state->subtype.
Definition: oval_state.c:81
oval_entity::oval_entity_get_type
oval_entity_type_t oval_entity_get_type(struct oval_entity *)
Get OVAL entity type.
Definition: oval_entity.c:106
oval_criteria_node::oval_criteria_node_add_subnode
void oval_criteria_node_add_subnode(struct oval_criteria_node *, struct oval_criteria_node *node)
Append instance of Oval_criteria_node to attribute Oval_criteria->subnodes.
Definition: oval_criteriaNode.c:334
oval_variable_possible_value::oval_variable_possible_value_get_hint
char * oval_variable_possible_value_get_hint(struct oval_variable_possible_value *pv)
Get the hint of the possible_value.
Definition: oval_variable.c:124
oval_value
OVAL object or item entity value.
Definition: oval_value.c:45
oval_test::oval_test_set_check
void oval_test_set_check(struct oval_test *, oval_check_t)
Sets attribute oval_test->check.
Definition: oval_test.c:309
oval_definition_iterator
Definition: oval_definitions.h:279
oval_definition_model::oval_definition_model_get_test
struct oval_test * oval_definition_model_get_test(struct oval_definition_model *model, const char *id)
Get oval test by ID.
Definition: oval_defModel.c:291
oval_object::oval_object_set_comment
void oval_object_set_comment(struct oval_object *, char *comment)
Sets a copy of the comment parameter to attribute oval_object->comment.
Definition: oval_object.c:276
oval_component::oval_component_set_item_field
void oval_component_set_item_field(struct oval_component *, char *)
set attribute Oval_component_object->item_field.
Definition: oval_component.c:319
oval_value::oval_value_get_text
char * oval_value_get_text(struct oval_value *)
Get OVAL value as a text.
Definition: oval_value.c:81
oval_datatype_t
oval_datatype_t
Datatypes.
Definition: oval_definitions.h:149
oval_reference
An Oval_reference links an Oval_definition to a definitive external reference.
Definition: oval_reference.c:43
oval_test_iterator::oval_test_iterator_next
struct oval_test * oval_test_iterator_next(struct oval_test_iterator *)
Returns the next instance of oval_test.
Definition: oval_test.c:69
oval_object::oval_object_free
void oval_object_free(struct oval_object *)
Free instance of oval_object.
Definition: oval_object.c:243
oval_object_content::oval_object_content_get_varCheck
oval_check_t oval_object_content_get_varCheck(struct oval_object_content *)
Get varCheck of a simple object content.
Definition: oval_objectContent.c:123
oval_variable::oval_variable_set_component
void oval_variable_set_component(struct oval_variable *, struct oval_component *component)
Bind an instance of Oval_component to the attribute Oval_local->component.
Definition: oval_variable.c:1007
oval_variable_possible_restriction
Definition: oval_variable.c:95
oval_variable_possible_restriction::oval_variable_possible_restriction_get_restrictions
struct oval_iterator * oval_variable_possible_restriction_get_restrictions(struct oval_variable_possible_restriction *possible_restriction)
Get restrictions from one possible_restriction element.
Definition: oval_variable.c:184
oval_definition::oval_definition_add_note
void oval_definition_add_note(struct oval_definition *, char *note)
Append a copy of the note parameter to attribute Oval_definition->notes.
Definition: oval_definition.c:322
oval_object::oval_object_clone
struct oval_object * oval_object_clone(struct oval_definition_model *new_model, struct oval_object *old_object)
Clone instance of oval_object and add it to the specified oval_definition_model.
Definition: oval_object.c:238
oval_entity::oval_entity_get_varref_type
oval_entity_varref_type_t oval_entity_get_varref_type(struct oval_entity *)
Get OVAL entity varref type.
Definition: oval_entity.c:140
oval_test::oval_test_get_family
oval_family_t oval_test_get_family(struct oval_test *)
Returns attribute Oval_test->family.
Definition: oval_test.c:80
oval_variable::oval_variable_add_possible_restriction
void oval_variable_add_possible_restriction(struct oval_variable *variable, struct oval_variable_possible_restriction *pr)
Add a new possible restriction to an external variable.
Definition: oval_variable.c:885
oval_value::oval_value_clone
struct oval_value * oval_value_clone(struct oval_value *old_value)
Definition: oval_value.c:131
oval_check_t
oval_check_t
Check enumeration.
Definition: oval_definitions.h:113
oval_setobject::oval_setobject_get_subsets
struct oval_setobject_iterator * oval_setobject_get_subsets(struct oval_setobject *)
Get OVAL set object subsets.
Definition: oval_set.c:92
oval_affected::oval_affected_get_platforms
struct oval_string_iterator * oval_affected_get_platforms(struct oval_affected *)
Get member values oval_affected platform_names.
Definition: oval_affected.c:102
oval_reference::oval_reference_set_source
void oval_reference_set_source(struct oval_reference *, char *)
Set OVAL reference source.
Definition: oval_reference.c:134
oval_object::oval_object_add_behavior
void oval_object_add_behavior(struct oval_object *, struct oval_behavior *behavior)
Append instance of oval_behavior to attribute oval_object->behaviors.
Definition: oval_object.c:302
oval_definition::oval_definition_set_version
void oval_definition_set_version(struct oval_definition *, int version)
Set attribute oval_definition->version.
Definition: oval_definition.c:270
oval_criteria_node::oval_criteria_node_get_applicability_check
bool oval_criteria_node_get_applicability_check(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->applicability_check.
Definition: oval_criteriaNode.c:129
oval_variable::oval_variable_get_possible_values
struct oval_iterator * oval_variable_get_possible_values(struct oval_variable *variable)
Get list of allowed values for an external variable.
Definition: oval_variable.c:380
oval_state_iterator::oval_state_iterator_free
void oval_state_iterator_free(struct oval_state_iterator *)
Frees the iterator.
Definition: oval_state.c:70
oval_entity_type_t
oval_entity_type_t
Type of OVAL entity.
Definition: oval_definitions.h:131
oval_test::oval_test_set_comment
void oval_test_set_comment(struct oval_test *, char *comment)
Sets a copy of the comment parameter to attribute oval_test->comment.
Definition: oval_test.c:289
oval_object::oval_object_get_object_contents
struct oval_object_content_iterator * oval_object_get_object_contents(struct oval_object *)
Returns attribute oval_object->contents.
Definition: oval_object.c:155
oval_reference::oval_reference_get_source
char * oval_reference_get_source(struct oval_reference *)
Get OVAL reference source.
Definition: oval_reference.c:72
oval_test::oval_test_set_version
void oval_test_set_version(struct oval_test *, int version)
Sets attribute oval_test->version.
Definition: oval_test.c:277
oval_object_content::oval_object_content_get_entity
struct oval_entity * oval_object_content_get_entity(struct oval_object_content *)
Get entity of a simple object content.
Definition: oval_objectContent.c:110
oval_entity_iterator
Definition: oval_definitions.h:454
oval_object::oval_object_set_subtype
void oval_object_set_subtype(struct oval_object *, oval_subtype_t subtype)
Sets attributes oval_object->subtype and oval_object->family.
Definition: oval_object.c:264
oval_variable_iterator::oval_variable_iterator_has_more
bool oval_variable_iterator_has_more(struct oval_variable_iterator *)
Returns true if iterator not exhausted.
Definition: oval_variable.c:282
oval_definition::oval_definition_set_title
void oval_definition_set_title(struct oval_definition *, char *title)
Set attribute oval_definition->title.
Definition: oval_definition.c:288
oval_state_content::oval_state_content_get_ent_check
oval_check_t oval_state_content_get_ent_check(struct oval_state_content *)
Get multipe entities processing of a state content.
Definition: oval_stateContent.c:102
oval_component::oval_component_get_type
oval_component_type_t oval_component_get_type(struct oval_component *)
Returns attribute Oval_component->type.
Definition: oval_component.c:265
oval_state_content
An Oval_state_content instance specifies an oval_state field.
Definition: oval_stateContent.c:45
oval_component::oval_component_get_regex_pattern
char * oval_component_get_regex_pattern(struct oval_component *)
Returns attribute Oval_function_REGEX_CAPTURE->pattern.
Definition: oval_component.c:592
oval_state::oval_state_set_deprecated
void oval_state_set_deprecated(struct oval_state *, bool deprecated)
Sets attribute oval_state->deprecated.
Definition: oval_state.c:233
oval_criteria_node::oval_criteria_node_new
struct oval_criteria_node * oval_criteria_node_new(struct oval_definition_model *, oval_criteria_node_type_t type)
Construct an instance of oval_criteria_node.
Definition: oval_criteriaNode.c:182
oval_filter_iterator
Definition: oval_definitions.h:481
oval_component::oval_component_get_suffix
char * oval_component_get_suffix(struct oval_component *)
Returns attribute Oval_function_END->suffix.
Definition: oval_component.c:420
oval_variable
An oval variable resolves an oval_value stream which specifies constraints for oval_objects and oval_...
Definition: oval_variable.c:49
oval_object::oval_object_get_name
const char * oval_object_get_name(struct oval_object *)
Returns the name of an oval_object.
Definition: oval_object.c:92
oval_reference::oval_reference_clone
struct oval_reference * oval_reference_clone(struct oval_definition_model *new_model, struct oval_reference *old_reference)
Definition: oval_reference.c:107
oval_affected::oval_affected_clone
struct oval_affected * oval_affected_clone(struct oval_definition_model *new_model, struct oval_affected *old_affected)
Clone instance of oval_affected.
Definition: oval_affected.c:131
oval_behavior_iterator
Definition: oval_definitions.h:424
oval_component
OVAL variable component Oval_component instances specify evaluation constraints on local variables (s...
Definition: oval_component.c:117
oval_variable_possible_value::oval_variable_possible_value_new
struct oval_variable_possible_value * oval_variable_possible_value_new(const char *hint, const char *value)
Construct new instance of possible_value element.
Definition: oval_variable.c:106
oval_component::oval_component_clone
struct oval_component * oval_component_clone(struct oval_definition_model *new_model, struct oval_component *old_component)
Clone instance of Oval_component.
Definition: oval_component.c:758
oval_state_content::oval_state_content_get_var_check
oval_check_t oval_state_content_get_var_check(struct oval_state_content *)
Get multipe variable values processing of a state content.
Definition: oval_stateContent.c:95
oval_object::oval_object_get_version
int oval_object_get_version(struct oval_object *)
Returns attribute oval_object->version.
Definition: oval_object.c:128
oval_variable_iterator
Definition: oval_definitions.h:351
oscap_document_type_t
enum oscap_document_type oscap_document_type_t
SCAP document type identifiers.
oval_object::oval_object_get_id
char * oval_object_get_id(struct oval_object *)
Returns attribute oval_object->id.
Definition: oval_object.c:114
oval_family_t
oval_family_t
OVAL family.
Definition: oval_types.h:41
oval_state::oval_state_get_comment
char * oval_state_get_comment(struct oval_state *)
Returns attribute oval_state->comment.
Definition: oval_state.c:108
oval_definition_model::oval_definition_model_new
struct oval_definition_model * oval_definition_model_new(void)
Create an empty oval_definition_model.
Definition: oval_defModel.c:66
oval_component::oval_component_get_variable
struct oval_variable * oval_component_get_variable(struct oval_component *)
Returns attribute Oval_component_variable->variable.
Definition: oval_component.c:344
oval_criteria_node::oval_criteria_node_free
void oval_criteria_node_free(struct oval_criteria_node *)
Free an instance of oval_criteria_node.
Definition: oval_criteriaNode.c:269
oval_component::oval_component_get_timedif_format_2
oval_datetime_format_t oval_component_get_timedif_format_2(struct oval_component *)
Returns attribute Oval_function_TIMEDIF->timedif_format_2.
Definition: oval_component.c:567
oval_record_field
Definition: oval_recordField.c:39
oval_definition::oval_definition_get_id
char * oval_definition_get_id(struct oval_definition *)
Returns attribute oval_definition->id (identifier).
Definition: oval_definition.c:74
oval_definition::oval_definition_get_description
char * oval_definition_get_description(struct oval_definition *)
Returns attribute oval_definition->description.
Definition: oval_definition.c:109
oval_variable_possible_restriction::oval_variable_possible_restriction_get_hint
char * oval_variable_possible_restriction_get_hint(struct oval_variable_possible_restriction *possible_restriction)
Get hint of possible_restriction element.
Definition: oval_variable.c:201
oval_definition::oval_definition_get_title
char * oval_definition_get_title(struct oval_definition *)
Returns attribute oval_definition->title.
Definition: oval_definition.c:102
oval_variable_iterator::oval_variable_iterator_next
struct oval_variable * oval_variable_iterator_next(struct oval_variable_iterator *)
Returns next instance of oval_variable.
Definition: oval_variable.c:289
oval_variable_restriction::oval_variable_restriction_get_value
char * oval_variable_restriction_get_value(struct oval_variable_restriction *restriction)
Get the value of a restriction element.
Definition: oval_variable.c:254
oval_component::oval_component_get_item_field
char * oval_component_get_item_field(struct oval_component *)
Returns attribute Oval_component_object->item_field.
Definition: oval_component.c:311
oval_variable::oval_variable_set_datatype
void oval_variable_set_datatype(struct oval_variable *, oval_datatype_t)
set attribute oval_variable->datatype.
Definition: oval_variable.c:789
oval_state_content::oval_state_content_set_check_existence
void oval_state_content_set_check_existence(struct oval_state_content *content, oval_existence_t existence)
Sets the "check_existence" attribute of an OVAL state entity.
Definition: oval_stateContent.c:182
oval_state::oval_state_set_version
void oval_state_set_version(struct oval_state *, int version)
Sets attribute oval_state->version.
Definition: oval_state.c:239
oval_reference::oval_reference_get_id
char * oval_reference_get_id(struct oval_reference *)
Get OVAL reference ID.
Definition: oval_reference.c:79
oval_test::oval_test_add_note
void oval_test_add_note(struct oval_test *, char *note)
Appends a copy of the note parameter to attribute oval_test->notes.
Definition: oval_test.c:327
oval_string_iterator
oval_definition::oval_definition_new
struct oval_definition * oval_definition_new(struct oval_definition_model *, const char *id)
Construct an instance of oval_definition.
Definition: oval_definition.c:149
oval_criteria_node::oval_criteria_node_set_negate
void oval_criteria_node_set_negate(struct oval_criteria_node *, bool negate)
Set attribute Oval_criteria_node->negate.
Definition: oval_criteriaNode.c:305
oval_state_content::oval_state_content_get_check_existence
oval_existence_t oval_state_content_get_check_existence(struct oval_state_content *content)
Get "check_existence" attribute of an OVAL state entity.
Definition: oval_stateContent.c:109
oval_definition_model::oval_definition_model_import
struct oval_definition_model * oval_definition_model_import(const char *file)
Import the content from the file into an oval_definition_model.
Definition: oval_defModel.c:262
oval_component_iterator::oval_component_iterator_next
struct oval_component * oval_component_iterator_next(struct oval_component_iterator *)
return the next instance of Oval_component.
Definition: oval_component.c:254
oscap_source
Definition: oscap_source.c:62
oval_existence_t
oval_existence_t
Existence check enumeration.
Definition: oval_definitions.h:103
oval_definition_model::oval_definition_model_get_tests
struct oval_test_iterator * oval_definition_model_get_tests(struct oval_definition_model *model)
Get OVAL tests.
Definition: oval_defModel.c:397
oval_definition_iterator::oval_definition_iterator_next
struct oval_definition * oval_definition_iterator_next(struct oval_definition_iterator *)
Returns the next iterated instance of oval_definition.
Definition: oval_definition.c:253
oval_behavior::oval_behavior_get_key
char * oval_behavior_get_key(struct oval_behavior *)
Get OVAL behavior name.
Definition: oval_behavior.c:86
oval_test::oval_test_free
void oval_test_free(struct oval_test *)
Destruct instance of oval_test.
Definition: oval_test.c:258
oval_value::oval_value_get_datatype
oval_datatype_t oval_value_get_datatype(struct oval_value *)
Get OVAL value datatype.
Definition: oval_value.c:74
oval_state::oval_state_new
struct oval_state * oval_state_new(struct oval_definition_model *, const char *id)
Construct new intance of oval_state.
Definition: oval_state.c:143
oval_variable_restriction::oval_variable_restriction_free
void oval_variable_restriction_free(struct oval_variable_restriction *r)
Free instance of restriction element.
Definition: oval_variable.c:239
oval_definition_model::oval_definition_model_get_variables
struct oval_variable_iterator * oval_definition_model_get_variables(struct oval_definition_model *model)
Get OVAL variables.
Definition: oval_defModel.c:425
oval_setobject_operation_t
oval_setobject_operation_t
Set operations.
Definition: oval_definitions.h:184
oval_definition::oval_definition_get_version
int oval_definition_get_version(struct oval_definition *)
Returns attribute oval_definition->version.
Definition: oval_definition.c:81
oval_object_content::oval_object_content_clone
struct oval_object_content * oval_object_content_clone(struct oval_definition_model *new_model, struct oval_object_content *old_content)
Definition: oval_objectContent.c:206
oval_criteria_node::oval_criteria_node_clone
struct oval_criteria_node * oval_criteria_node_clone(struct oval_definition_model *new_model, struct oval_criteria_node *old_node)
Clone an instance of oval_criteria_node.
Definition: oval_criteriaNode.c:224
oval_criteria_node::oval_criteria_node_get_negate
bool oval_criteria_node_get_negate(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->negate.
Definition: oval_criteriaNode.c:122
oval_affected::oval_affected_new
struct oval_affected * oval_affected_new(struct oval_definition_model *)
Construct instance of oval_affected.
Definition: oval_affected.c:118
oval_affected::oval_affected_add_platform
void oval_affected_add_platform(struct oval_affected *, char *platform_name)
Append name to oval_affected platform names.
Definition: oval_affected.c:174
oval_state_iterator::oval_state_iterator_has_more
bool oval_state_iterator_has_more(struct oval_state_iterator *)
Returns true if the iterator is not exhausted.
Definition: oval_state.c:57
oval_iterator
Definition: oval_collection.c:54
oval_object_content::oval_object_content_get_type
oval_object_content_type_t oval_object_content_get_type(struct oval_object_content *)
Get type of a object content (entity or set).
Definition: oval_objectContent.c:101
oval_definition::oval_definition_add_affected
void oval_definition_add_affected(struct oval_definition *, struct oval_affected *affected)
Append instance of oval_affected to attribute oval_definition->affected.
Definition: oval_definition.c:310
oval_variable::oval_variable_set_comment
void oval_variable_set_comment(struct oval_variable *, char *comment)
set attribute oval_variable->comment.
Definition: oval_variable.c:840
oval_entity
OVAL entity.
Definition: oval_entity.c:54
oval_variable_type_t
oval_variable_type_t
OVAL variable types.
Definition: oval_definitions.h:192
oval_entity::oval_entity_get_mask
int oval_entity_get_mask(struct oval_entity *)
Get OVAL entity mask.
Definition: oval_entity.c:127
oval_affected_iterator
Definition: oval_definitions.h:377
oval_affected::oval_affected_get_family
oval_affected_family_t oval_affected_get_family(struct oval_affected *)
Get member value oval_affected family.
Definition: oval_affected.c:95
oval_state::oval_state_clone
struct oval_state * oval_state_clone(struct oval_definition_model *new_model, struct oval_state *old_state)
Clone instance of oval_state and add it to the specified oval_definition_model.
Definition: oval_state.c:167
oval_entity::oval_entity_get_value
struct oval_value * oval_entity_get_value(struct oval_entity *)
Get OVAL entity value.
Definition: oval_entity.c:154
oval_definition_model::oval_definition_model_bind_variable_model
int oval_definition_model_bind_variable_model(struct oval_definition_model *, struct oval_variable_model *)
Bind an oval_variable_model to the specified oval_definition_model.
Definition: oval_defModel.c:319
oval_state_content_iterator
Definition: oval_definitions.h:434
oval_variable_possible_restriction::oval_variable_possible_restriction_new
struct oval_variable_possible_restriction * oval_variable_possible_restriction_new(oval_operator_t operator, const char *hint)
Construct new instance of possible_restriction element.
Definition: oval_variable.c:158
oval_definition::oval_definition_clone
struct oval_definition * oval_definition_clone(struct oval_definition_model *new_model, struct oval_definition *old_definition)
Clone instance of oval_definition and add it to the specified oval_definition_model.
Definition: oval_definition.c:178
oval_datetime_format_t
oval_datetime_format_t
Datetime format enumeration.
Definition: oval_definitions.h:232
oval_object_content
An Oval_object_content instance specifies an oval_object field.
Definition: oval_objectContent.c:44
oval_definition_model::oval_definition_model_clone
struct oval_definition_model * oval_definition_model_clone(struct oval_definition_model *)
Copy an oval_definition_model.
Definition: oval_defModel.c:103
oval_test::oval_test_get_check
oval_check_t oval_test_get_check(struct oval_test *)
Returns attribute oval_test->check.
Definition: oval_test.c:136
oval_definition_class_t
oval_definition_class_t
Definition: oval_types.h:353
oval_definition::oval_definition_add_reference
void oval_definition_add_reference(struct oval_definition *, struct oval_reference *reference)
Append instance of oval_reference to attribute oval_definition->references.
Definition: oval_definition.c:316
oval_definition_model
Oval definition model.
Definition: oval_defModel.c:51
oval_setobject_type_t
oval_setobject_type_t
OVAL set object types.
Definition: oval_definitions.h:177
oval_variable::oval_variable_get_possible_restrictions
struct oval_iterator * oval_variable_get_possible_restrictions(struct oval_variable *variable)
Get list of constraints for an external variable.
Definition: oval_variable.c:400
oval_object::oval_object_get_comment
char * oval_object_get_comment(struct oval_object *)
Returns attribute oval_object->comment.
Definition: oval_object.c:107
oval_object::oval_object_set_version
void oval_object_set_version(struct oval_object *, int version)
Sets attribute oval_object->version.
Definition: oval_object.c:290
oval_definition_model::oval_definition_model_get_state
struct oval_state * oval_definition_model_get_state(struct oval_definition_model *model, const char *id)
Get OVAL state by ID.
Definition: oval_defModel.c:305
oval_definition_iterator::oval_definition_iterator_has_more
bool oval_definition_iterator_has_more(struct oval_definition_iterator *)
Returns true if the iterator contains more instances of oval_definition.
Definition: oval_definition.c:246
oval_variable::oval_variable_get_component
struct oval_component * oval_variable_get_component(struct oval_variable *)
Returns attribute Oval_local->component.
Definition: oval_variable.c:555
oval_component_iterator::oval_component_iterator_free
void oval_component_iterator_free(struct oval_component_iterator *)
Free the iterator.
Definition: oval_component.c:260
oval_state_content::oval_state_content_clone
struct oval_state_content * oval_state_content_clone(struct oval_definition_model *new_model, struct oval_state_content *old_content)
Definition: oval_stateContent.c:133
oval_affected::oval_affected_free
void oval_affected_free(struct oval_affected *)
Release instance of oval_affected.
Definition: oval_affected.c:156
oval_test::oval_test_get_version
int oval_test_get_version(struct oval_test *)
Returns attribute oval_test->version.
Definition: oval_test.c:122
oval_definition_model::oval_definition_model_get_definitions
struct oval_definition_iterator * oval_definition_model_get_definitions(struct oval_definition_model *model)
Returns all appended oval_definition instances.
Definition: oval_defModel.c:373
oval_component::oval_component_get_split_delimiter
char * oval_component_get_split_delimiter(struct oval_component *)
Returns attribute Oval_function_SPLIT->delimiter.
Definition: oval_component.c:444
oval_test
An Oval_test specifies a technical control by identifying an oval_object that is evaluated on an inst...
Definition: oval_test.c:48
oval_object::oval_object_add_note
void oval_object_add_note(struct oval_object *, char *note)
Appends a copy of the note parameter to attribute oval_object->notes.
Definition: oval_object.c:270
oval_definition::oval_definition_set_deprecated
void oval_definition_set_deprecated(struct oval_definition *, bool deprecated)
Set attribute oval_definition->deprecated.
Definition: oval_definition.c:282
oval_state::oval_state_get_notes
struct oval_string_iterator * oval_state_get_notes(struct oval_state *)
Returns attribute oval_state->notes.
Definition: oval_state.c:93
oval_state::oval_state_add_note
void oval_state_add_note(struct oval_state *, char *note)
Appends a copy of the note parameter to attribute oval_state->notes.
Definition: oval_state.c:219
oval_definition::oval_definition_set_criteria
void oval_definition_set_criteria(struct oval_definition *, struct oval_criteria_node *criteria)
Set attribute oval_definition->criteria.
Definition: oval_definition.c:304
oval_test::oval_test_clone
struct oval_test * oval_test_clone(struct oval_definition_model *new_model, struct oval_test *old_test)
Clone instance of oval_test and add it to the specified oval_definition_model.
Definition: oval_test.c:218
oval_schema_version_t
Definition: oval_schema_version.h:39
oval_test::oval_test_get_existence
oval_existence_t oval_test_get_existence(struct oval_test *)
Returns attribute oval_test->existence.
Definition: oval_test.c:129
oval_object::oval_object_get_behaviors
struct oval_behavior_iterator * oval_object_get_behaviors(struct oval_object *)
Returns attribute oval_object->behaviors.
Definition: oval_object.c:165
oval_variable::oval_variable_get_values
struct oval_value_iterator * oval_variable_get_values(struct oval_variable *)
Returns attribute Oval_external/Oval_constant->values.
Definition: oval_variable.c:346
oval_variable_possible_restriction::oval_variable_possible_restriction_free
void oval_variable_possible_restriction_free(struct oval_variable_possible_restriction *pr)
Free instance of possible_restriction.
Definition: oval_variable.c:168
oval_variable::oval_variable_set_version
void oval_variable_set_version(struct oval_variable *, int version)
set attribute oval_variable->version.
Definition: oval_variable.c:856
oval_test_iterator::oval_test_iterator_free
void oval_test_iterator_free(struct oval_test_iterator *)
Frees the iterator.
Definition: oval_test.c:75
oval_criteria_node_iterator::oval_criteria_node_iterator_free
void oval_criteria_node_iterator_free(struct oval_criteria_node_iterator *)
Free the iterator.
Definition: oval_criteriaNode.c:106
oval_object_content::oval_object_content_get_filter
struct oval_filter * oval_object_content_get_filter(struct oval_object_content *content)
Get filter of a set object content.
Definition: oval_objectContent.c:147
oval_value::oval_value_get_float
float oval_value_get_float(struct oval_value *)
Get OVAL value as a floating point number.
Definition: oval_value.c:103
oval_state::oval_state_get_id
char * oval_state_get_id(struct oval_state *)
Returns attribute oval_state->id.
Definition: oval_state.c:115
oval_filter_action_t
oval_filter_action_t
Type of filter action.
Definition: oval_definitions.h:142
oval_object_content_iterator
Definition: oval_definitions.h:414
oval_definition::oval_definition_get_deprecated
bool oval_definition_get_deprecated(struct oval_definition *)
Returns attribute oval_definition->deprecated.
Definition: oval_definition.c:95
oval_state::oval_state_set_operator
void oval_state_set_operator(struct oval_state *, oval_operator_t)
Sets attribute oval_state->operator.
Definition: oval_state.c:245
oval_object_content::oval_object_content_get_field_name
char * oval_object_content_get_field_name(struct oval_object_content *)
Get field name of a object content.
Definition: oval_objectContent.c:96
oval_definition_model::oval_definition_model_get_variable_models
struct oval_variable_model_iterator * oval_definition_model_get_variable_models(struct oval_definition_model *)
Return the list of variable models bound to the specified oval_definition_model.
Definition: oval_defModel.c:348
oval_variable_model
The OVAL variable model facilitates access to external variable value bindings used to to constrain t...
Definition: oval_varModel.c:56
oval_state::oval_state_set_subtype
void oval_state_set_subtype(struct oval_state *, oval_subtype_t subtype)
Sets attributes oval_state->subtype and oval_state->family.
Definition: oval_state.c:213
oval_component_iterator::oval_component_iterator_remaining
int oval_component_iterator_remaining(struct oval_component_iterator *)
How many remains.
Definition: oval_component.c:249
oval_setobject::oval_setobject_get_type
oval_setobject_type_t oval_setobject_get_type(struct oval_setobject *)
Get OVAL set object type.
Definition: oval_set.c:78
oval_criteria_node::oval_criteria_node_set_definition
void oval_criteria_node_set_definition(struct oval_criteria_node *, struct oval_definition *)
Sets attribute Oval_extends->definition.
Definition: oval_criteriaNode.c:352
oval_variable::oval_variable_set_deprecated
void oval_variable_set_deprecated(struct oval_variable *, bool deprecated)
set attribute oval_variable->deprecated.
Definition: oval_variable.c:850
oval_state::oval_state_get_name
const char * oval_state_get_name(struct oval_state *)
Returns the name of an oval_state.
Definition: oval_state.c:88
oval_variable::oval_variable_get_version
int oval_variable_get_version(struct oval_variable *)
Returns attribute oval_variable->version.
Definition: oval_variable.c:318
oval_definition::oval_definition_get_affected
struct oval_affected_iterator * oval_definition_get_affected(struct oval_definition *)
Returns attribute oval_definition->affected.
Definition: oval_definition.c:116
oval_generator
Definition: oval_generator.c:44
oval_state_iterator::oval_state_iterator_next
struct oval_state * oval_state_iterator_next(struct oval_state_iterator *)
Returns the next instance of oval_state.
Definition: oval_state.c:63
oval_behavior
OVAL behavior.
Definition: oval_behavior.c:50
oval_affected_family_t
oval_affected_family_t
Affected family enumeration.
Definition: oval_definitions.h:55
oval_state_iterator
Definition: oval_definitions.h:316
oval_criteria_node::oval_criteria_node_get_test
struct oval_test * oval_criteria_node_get_test(struct oval_criteria_node *)
Returns attribute Oval_criterion->test.
Definition: oval_criteriaNode.c:166
oval_component::oval_component_set_type
void oval_component_set_type(struct oval_component *component, oval_component_type_t type)
Set type of component Oval_component->type.
Definition: oval_component.c:289
oval_variable_restriction::oval_variable_restriction_get_operation
oval_operation_t oval_variable_restriction_get_operation(struct oval_variable_restriction *restriction)
Get the operation of a restriction element.
Definition: oval_variable.c:247
oval_definition_model::oval_definition_model_free
void oval_definition_model_free(struct oval_definition_model *model)
Free OVAL object model and all binded variable models.
Definition: oval_defModel.c:124
oval_definition::oval_definition_get_notes
struct oval_string_iterator * oval_definition_get_notes(struct oval_definition *)
Returns attribute oval_definition->notes.
Definition: oval_definition.c:134
oval_test::oval_test_get_states
struct oval_state_iterator * oval_test_get_states(struct oval_test *)
Returns attribute oval_test->states.
Definition: oval_test.c:157
oval_setobject::oval_setobject_get_filters
struct oval_filter_iterator * oval_setobject_get_filters(struct oval_setobject *)
Get OVAL set object filters.
Definition: oval_set.c:119
oval_criteria_node::oval_criteria_set_node_type
void oval_criteria_set_node_type(struct oval_criteria_node *node, oval_criteria_node_type_t type)
Set attribute Oval_criteria_node->type.
Definition: oval_criteriaNode.c:298
oval_component_iterator::oval_component_iterator_has_more
bool oval_component_iterator_has_more(struct oval_component_iterator *)
Return true if the iterator is not exhausted.
Definition: oval_component.c:244
oval_reference::oval_reference_get_url
char * oval_reference_get_url(struct oval_reference *)
Get OVAL reference URL.
Definition: oval_reference.c:86
oval_entity::oval_entity_clone
struct oval_entity * oval_entity_clone(struct oval_definition_model *model, struct oval_entity *old_entity)
Definition: oval_entity.c:179
oval_affected_iterator::oval_affected_iterator_has_more
bool oval_affected_iterator_has_more(struct oval_affected_iterator *)
Return true if iterator has more oval_affected.
Definition: oval_affected.c:76
oval_definition_model::oval_definition_model_get_definition
struct oval_definition * oval_definition_model_get_definition(struct oval_definition_model *, const char *id)
Returns the appended oval_definition having the specified id.
Definition: oval_defModel.c:284
oval_criteria_node::oval_criteria_node_set_test
void oval_criteria_node_set_test(struct oval_criteria_node *, struct oval_test *)
Sets attribute Oval_criterion->test.
Definition: oval_criteriaNode.c:343
oval_object_content::oval_object_content_get_setobject
struct oval_setobject * oval_object_content_get_setobject(struct oval_object_content *)
Get setobject of a set object content.
Definition: oval_objectContent.c:135
oval_component::oval_component_set_variable
void oval_component_set_variable(struct oval_component *, struct oval_variable *variable)
set attribute Oval_component_object->variable.
Definition: oval_component.c:928
oval_test::oval_test_set_deprecated
void oval_test_set_deprecated(struct oval_test *, bool deprecated)
Sets attribute oval_test->deprecated.
Definition: oval_test.c:271
oval_object
An Oval_object instance describes a set of items to look for on an instrumented host platform...
Definition: oval_object.c:46
oval_behavior::oval_behavior_get_value
char * oval_behavior_get_value(struct oval_behavior *)
Get OVAL behavior value.
Definition: oval_behavior.c:79
oval_definition_model::oval_definition_model_export
int oval_definition_model_export(struct oval_definition_model *, const char *file)
Export an oval_definition_model into file.
Definition: oval_defModel.c:577
oval_test::oval_test_get_state_operator
oval_operator_t oval_test_get_state_operator(struct oval_test *)
Returns attribute oval_test->state_operator.
Definition: oval_test.c:143
oval_definition_model::oval_definition_model_get_states
struct oval_state_iterator * oval_definition_model_get_states(struct oval_definition_model *model)
Get OVAL states.
Definition: oval_defModel.c:416
oval_variable::oval_variable_get_datatype
oval_datatype_t oval_variable_get_datatype(struct oval_variable *)
Returns attribute oval_variable->datatype.
Definition: oval_variable.c:339
oval_record_field_iterator
Definition: oval_definitions.h:462
oval_object_get_schema_version
oval_version_t oval_object_get_schema_version(struct oval_object *object)
Returns schema version of the associated definition model.
Definition: oval_object.c:135
oval_component::oval_component_set_record_field
void oval_component_set_record_field(struct oval_component *, char *)
set attribute Oval_component_object->record_field.
Definition: oval_component.c:333
oval_definition::oval_definition_free
void oval_definition_free(struct oval_definition *)
Release an instance of oval_definition.
Definition: oval_definition.c:217
oval_variable::oval_variable_clone
struct oval_variable * oval_variable_clone(struct oval_definition_model *new_model, struct oval_variable *old_variable)
Clone instance of oval_variable and add it to the specified oval_definition_model.
Definition: oval_variable.c:639
oval_criteria_node::oval_criteria_node_set_applicability_check
void oval_criteria_node_set_applicability_check(struct oval_criteria_node *, bool applicability_check)
Set attribute Oval_criteria_node->applicability_check.
Definition: oval_criteriaNode.c:311