30 #ifndef OVAL_DEFINITIONS_IMPL 31 #define OVAL_DEFINITIONS_IMPL 33 #include <libxml/xmlreader.h> 36 #if defined(OVAL_PROBES_ENABLED) 42 #include "../common/util.h" 46 xmlNs *oval_family_to_namespace(
oval_family_t family,
const char *schema_ns, xmlDoc *doc, xmlNode *parent);
73 typedef void (*oval_affected_consumer) (
struct oval_affected *,
void *);
74 int oval_affected_parse_tag(xmlTextReaderPtr reader,
struct oval_parser_context *context, oval_affected_consumer,
void *);
76 char *oval_test_get_state_names(
struct oval_test *test);
77 int oval_test_parse_tag(xmlTextReaderPtr reader,
struct oval_parser_context *context,
void *);
78 xmlNode *oval_test_to_dom(
struct oval_test *, xmlDoc *, xmlNode *);
82 int oval_criteria_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_criteria_consumer,
void *);
84 typedef void (*oval_reference_consumer) (
struct oval_reference *,
void *);
85 int oval_reference_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_reference_consumer,
void *);
87 int oval_definition_parse_tag(xmlTextReaderPtr reader,
struct oval_parser_context *context,
void *);
88 xmlNode *oval_definition_to_dom(
struct oval_definition *, xmlDoc *, xmlNode *);
90 int oval_object_parse_tag(xmlTextReaderPtr reader,
struct oval_parser_context *context,
void *);
91 xmlNode *oval_object_to_dom(
struct oval_object *, xmlDoc *, xmlNode *);
97 int oval_state_parse_tag(xmlTextReaderPtr reader,
struct oval_parser_context *context,
void *);
98 xmlNode *oval_state_to_dom(
struct oval_state *, xmlDoc *, xmlNode *);
100 int oval_variable_parse_tag(xmlTextReaderPtr reader,
struct oval_parser_context *context,
void *);
101 xmlNode *oval_variable_to_dom(
struct oval_variable *, xmlDoc *, xmlNode *);
105 int oval_variable_binding_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_variable_binding_consumer,
void *);
109 typedef void (*oval_filter_consumer) (
struct oval_filter *,
void *);
110 int oval_filter_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_filter_consumer,
void *);
111 xmlNode *oval_filter_to_dom(
struct oval_filter *, xmlDoc *, xmlNode *);
115 int oval_object_content_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_object_content_consumer,
void *);
117 int oval_state_content_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oscap_consumer_func,
void *);
120 typedef void (*oval_behavior_consumer) (
struct oval_behavior *,
void *);
124 int oval_entity_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oscap_consumer_func,
void *);
125 xmlNode *oval_entity_to_dom(
struct oval_entity *, xmlDoc *, xmlNode *);
128 oscap_consumer_func,
void *, oval_record_field_type_t);
129 xmlNode *oval_record_field_to_dom(
struct oval_record_field *,
bool, xmlDoc *, xmlNode *, xmlNs *);
131 typedef void (*oval_set_consumer) (
struct oval_setobject *,
void *);
132 int oval_set_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_set_consumer,
void *);
133 xmlNode *oval_set_to_dom(
struct oval_setobject *, xmlDoc *, xmlNode *);
136 typedef void (*oval_value_consumer) (
struct oval_value *,
void *);
137 int oval_value_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_value_consumer,
void *);
138 xmlNode *oval_value_to_dom(
struct oval_value *, xmlDoc *, xmlNode *);
143 #if defined(OVAL_PROBES_ENABLED) 150 typedef void (*oval_component_consumer) (
struct oval_component *,
void *);
151 int oval_component_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oval_component_consumer,
void *);
152 xmlNode *oval_component_to_dom(
struct oval_component *, xmlDoc *, xmlNode *);
155 typedef void (*oval_message_consumer) (
struct oval_message *,
void *);
156 int oval_message_parse_tag(xmlTextReaderPtr,
struct oval_parser_context *, oscap_consumer_func,
void *);
157 void oval_message_to_dom(
struct oval_message *, xmlDoc *, xmlNode *);
161 xmlNode *oval_generator_to_dom(
struct oval_generator *, xmlDocPtr, xmlNode *);
164 xmlNode *oval_definition_model_to_dom(
struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode * parent);
183 struct oval_string_map *oval_definition_model_build_vardef_mapping(
struct oval_definition_model *model);
189 bool oval_variable_contains_value(
struct oval_variable *variable,
const char* o_value_text);
oval_operator_t
Boolean operators.
Definition: oval_definitions.h:75
OVAL System Characteristics model.
Definition: oval_sysModel.c:56
oval_entity_varref_type_t
Varref types.
Definition: oval_definitions.h:169
oval_arithmetic_operation_t
Arithmetic format enumeration.
Definition: oval_definitions.h:223
oval_component_type_t
Component types.
Definition: oval_definitions.h:201
oval_operation_t
Operations.
Definition: oval_definitions.h:84
oval_subtype_t
Unknown subtypes.
Definition: oval_types.h:127
Oval definition specification.
Definition: oval_definition.c:53
OVAL set object.
Definition: oval_set.c:45
Open Vulnerability and Assessment Language.
OVAL probe session API private header.
Specify oval_definition dependencies.
Definition: oval_criteriaNode.c:50
Each OVAL Definition specifies certain type of affected system(s).
Definition: oval_affected.c:52
OVAL filter.
Definition: oval_filter.c:43
OVAL message.
Definition: oval_message.c:45
An Oval_state instance is a collection of one or more characteristics pertaining to a specific object...
Definition: oval_state.c:45
Binding of an value to an OVAL variable.
Definition: oval_variableBinding.c:45
OVAL object or item entity value.
Definition: oval_value.c:45
oval_datatype_t
Datatypes.
Definition: oval_definitions.h:149
An Oval_reference links an Oval_definition to a definitive external reference.
Definition: oval_reference.c:43
oval_check_t
Check enumeration.
Definition: oval_definitions.h:113
oval_entity_type_t
Type of OVAL entity.
Definition: oval_definitions.h:131
An Oval_state_content instance specifies an oval_state field.
Definition: oval_stateContent.c:45
An oval variable resolves an oval_value stream which specifies constraints for oval_objects and oval_...
Definition: oval_variable.c:50
OVAL variable component Oval_component instances specify evaluation constraints on local variables (s...
Definition: oval_component.c:123
oval_family_t
OVAL family.
Definition: oval_types.h:41
Definition: oval_recordField.c:35
oval_existence_t
Existence check enumeration.
Definition: oval_definitions.h:103
oval_setobject_operation_t
Set operations.
Definition: oval_definitions.h:184
Definition: oval_collection.c:50
OVAL entity.
Definition: oval_entity.c:54
oval_variable_type_t
OVAL variable types.
Definition: oval_definitions.h:192
oval_datetime_format_t
Datetime format enumeration.
Definition: oval_definitions.h:232
An Oval_object_content instance specifies an oval_object field.
Definition: oval_objectContent.c:44
oval_definition_class_t
Definition: oval_types.h:470
Oval definition model.
Definition: oval_defModel.c:53
oval_setobject_type_t
OVAL set object types.
Definition: oval_definitions.h:177
An Oval_test specifies a technical control by identifying an oval_object that is evaluated on an inst...
Definition: oval_test.c:48
oval_syschar_collection_flag_t
System characteristics result flag.
Definition: oval_system_characteristics.h:50
Open Vulnerability and Assessment Language.
Definition: oval_schema_version.h:41
oval_filter_action_t
Type of filter action.
Definition: oval_definitions.h:142
oval_message_level_t
Message level.
Definition: oval_system_characteristics.h:70
The OVAL variable model facilitates access to external variable value bindings used to to constrain t...
Definition: oval_varModel.c:56
Definition: oval_generator.c:47
OVAL behavior.
Definition: oval_behavior.c:50
oval_affected_family_t
Affected family enumeration.
Definition: oval_definitions.h:55
OVAL probe session structure.
Definition: _oval_probe_session.h:42
Definition: oval_parser_impl.h:44
An Oval_object instance describes a set of items to look for on an instrumented host platform...
Definition: oval_object.c:45