Open SCAP Library
Loading...
Searching...
No Matches
Macros | Enumerations | Functions
oval_definitions.h File Reference
#include "oscap.h"
#include "oscap_source.h"
#include "oval_adt.h"
#include "oval_types.h"
#include "oval_schema_version.h"
#include <stdbool.h>
#include "oscap_export.h"
Include dependency graph for oval_definitions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OVAL_FUNCTION   4
 

Enumerations

enum  oval_affected_family_t {
  OVAL_AFCFML_UNKNOWN = 0 , OVAL_AFCFML_CATOS = 1 , OVAL_AFCFML_IOS = 2 , OVAL_AFCFML_MACOS = 3 ,
  OVAL_AFCFML_PIXOS = 4 , OVAL_AFCFML_UNDEFINED = 5 , OVAL_AFCFML_UNIX = 6 , OVAL_AFCFML_WINDOWS = 7
}
 Affected family enumeration. More...
 
enum  oval_criteria_node_type_t { OVAL_NODETYPE_UNKNOWN = 0 , OVAL_NODETYPE_CRITERIA = 1 , OVAL_NODETYPE_CRITERION = 2 , OVAL_NODETYPE_EXTENDDEF = 3 }
 Criteria node type.
 
enum  oval_operator_t {
  OVAL_OPERATOR_UNKNOWN = 0 , OVAL_OPERATOR_AND = 1 , OVAL_OPERATOR_ONE = 2 , OVAL_OPERATOR_OR = 3 ,
  OVAL_OPERATOR_XOR = 4
}
 Boolean operators.
 
enum  oval_operation_t {
  OVAL_OPERATION_UNKNOWN = 0 , OVAL_OPERATION_BITWISE_AND , OVAL_OPERATION_BITWISE_OR , OVAL_OPERATION_CASE_INSENSITIVE_EQUALS ,
  OVAL_OPERATION_CASE_INSENSITIVE_NOT_EQUAL , OVAL_OPERATION_EQUALS , OVAL_OPERATION_GREATER_THAN , OVAL_OPERATION_GREATER_THAN_OR_EQUAL ,
  OVAL_OPERATION_LESS_THAN , OVAL_OPERATION_LESS_THAN_OR_EQUAL , OVAL_OPERATION_NOT_EQUAL , OVAL_OPERATION_PATTERN_MATCH ,
  OVAL_OPERATION_SUBSET_OF , OVAL_OPERATION_SUPERSET_OF
}
 Operations.
 
enum  oval_existence_t {
  OVAL_EXISTENCE_UNKNOWN = 0 , OVAL_ALL_EXIST = 1 , OVAL_ANY_EXIST = 2 , OVAL_AT_LEAST_ONE_EXISTS = 3 ,
  OVAL_ONLY_ONE_EXISTS = 4 , OVAL_NONE_EXIST = 5
}
 Existence check enumeration.
 
enum  oval_check_t {
  OVAL_CHECK_UNKNOWN = 0 , OVAL_CHECK_ALL = 1 , OVAL_CHECK_AT_LEAST_ONE = 2 , OVAL_CHECK_NONE_EXIST = 3 ,
  OVAL_CHECK_NONE_SATISFY = 4 , OVAL_CHECK_ONLY_ONE = 5
}
 Check enumeration.
 
enum  oval_object_content_type_t { OVAL_OBJECTCONTENT_UNKNOWN = 0 , OVAL_OBJECTCONTENT_ENTITY = 1 , OVAL_OBJECTCONTENT_SET = 2 , OVAL_OBJECTCONTENT_FILTER = 3 }
 Type of object content.
 
enum  oval_entity_type_t {
  OVAL_ENTITY_TYPE_UNKNOWN , OVAL_ENTITY_TYPE_ANY , OVAL_ENTITY_TYPE_BINARY , OVAL_ENTITY_TYPE_BOOLEAN ,
  OVAL_ENTITY_TYPE_FLOAT , OVAL_ENTITY_TYPE_INTEGER , OVAL_ENTITY_TYPE_STRING
}
 Type of OVAL entity.
 
enum  oval_filter_action_t { OVAL_FILTER_ACTION_UNKNOWN = 0 , OVAL_FILTER_ACTION_EXCLUDE , OVAL_FILTER_ACTION_INCLUDE }
 Type of filter action.
 
enum  oval_datatype_t {
  OVAL_DATATYPE_UNKNOWN = 0 , OVAL_DATATYPE_BINARY , OVAL_DATATYPE_BOOLEAN , OVAL_DATATYPE_EVR_STRING ,
  OVAL_DATATYPE_FILESET_REVISION , OVAL_DATATYPE_FLOAT , OVAL_DATATYPE_INTEGER , OVAL_DATATYPE_IOS_VERSION ,
  OVAL_DATATYPE_IPV4ADDR , OVAL_DATATYPE_IPV6ADDR , OVAL_DATATYPE_RECORD , OVAL_DATATYPE_SEXP ,
  OVAL_DATATYPE_STRING , OVAL_DATATYPE_STRING_M , OVAL_DATATYPE_VERSION , OVAL_DATATYPE_DEBIAN_EVR_STRING
}
 Datatypes.
 
enum  oval_entity_varref_type_t { OVAL_ENTITY_VARREF_UNKNOWN , OVAL_ENTITY_VARREF_NONE , OVAL_ENTITY_VARREF_ATTRIBUTE , OVAL_ENTITY_VARREF_ELEMENT }
 Varref types.
 
enum  oval_setobject_type_t { OVAL_SET_UNKNOWN , OVAL_SET_AGGREGATE , OVAL_SET_COLLECTIVE }
 OVAL set object types.
 
enum  oval_setobject_operation_t { OVAL_SET_OPERATION_UNKNOWN , OVAL_SET_OPERATION_COMPLEMENT = 1 , OVAL_SET_OPERATION_INTERSECTION = 2 , OVAL_SET_OPERATION_UNION = 3 }
 Set operations.
 
enum  oval_variable_type_t { OVAL_VARIABLE_UNKNOWN , OVAL_VARIABLE_EXTERNAL , OVAL_VARIABLE_CONSTANT , OVAL_VARIABLE_LOCAL }
 OVAL variable types.
 
enum  oval_component_type_t {
  OVAL_COMPONENT_UNKNOWN = 0 , OVAL_COMPONENT_LITERAL = 1 , OVAL_COMPONENT_OBJECTREF = 2 , OVAL_COMPONENT_VARREF = 3 ,
  OVAL_COMPONENT_FUNCTION = 4 , OVAL_FUNCTION_BEGIN = OVAL_FUNCTION + 1 , OVAL_FUNCTION_CONCAT = OVAL_FUNCTION + 2 , OVAL_FUNCTION_END = OVAL_FUNCTION + 3 ,
  OVAL_FUNCTION_SPLIT = OVAL_FUNCTION + 4 , OVAL_FUNCTION_SUBSTRING = OVAL_FUNCTION + 5 , OVAL_FUNCTION_TIMEDIF = OVAL_FUNCTION + 6 , OVAL_FUNCTION_ESCAPE_REGEX = OVAL_FUNCTION + 7 ,
  OVAL_FUNCTION_REGEX_CAPTURE = OVAL_FUNCTION + 8 , OVAL_FUNCTION_ARITHMETIC = OVAL_FUNCTION + 9 , OVAL_FUNCTION_COUNT = OVAL_FUNCTION + 10 , OVAL_FUNCTION_UNIQUE = OVAL_FUNCTION + 11 ,
  OVAL_FUNCTION_GLOB_TO_REGEX = OVAL_FUNCTION + 12 , OVAL_FUNCTION_LAST = OVAL_FUNCTION + 13
}
 Component types.
 
enum  oval_arithmetic_operation_t {
  OVAL_ARITHMETIC_UNKNOWN = 0 , OVAL_ARITHMETIC_ADD = 1 , OVAL_ARITHMETIC_MULTIPLY = 2 , OVAL_ARITHMETIC_SUBTRACT = 3 ,
  OVAL_ARITHMETIC_DIVIDE = 4
}
 Arithmetic format enumeration.
 
enum  oval_datetime_format_t {
  OVAL_DATETIME_UNKNOWN = 0 , OVAL_DATETIME_YEAR_MONTH_DAY = 1 , OVAL_DATETIME_MONTH_DAY_YEAR = 2 , OVAL_DATETIME_DAY_MONTH_YEAR = 3 ,
  OVAL_DATETIME_WIN_FILETIME = 4 , OVAL_DATETIME_SECONDS_SINCE_EPOCH = 5 , OVAL_DATETIME_CIM_DATETIME = 6
}
 Datetime format enumeration.
 
enum  oval_record_field_type_t { OVAL_RECORD_FIELD_UNKNOWN = 0 , OVAL_RECORD_FIELD_STATE = 1 , OVAL_RECORD_FIELD_ITEM = 2 }
 

Functions

OSCAP_API oval_family_t oval_subtype_get_family (oval_subtype_t)
 Get the family associated with a given subtype.
 
OSCAP_API const char * oval_operator_get_text (oval_operator_t)
 
OSCAP_API const char * oval_subtype_get_text (oval_subtype_t)
 
OSCAP_API const char * oval_subtype_to_str (oval_subtype_t)
 
OSCAP_API oval_subtype_t oval_subtype_from_str (const char *family_str, const char *subtype_str)
 
OSCAP_API const char * oval_family_get_text (oval_family_t)
 
OSCAP_API const char * oval_check_get_text (oval_check_t)
 
OSCAP_API const char * oval_existence_get_text (oval_existence_t)
 
OSCAP_API const char * oval_affected_family_get_text (oval_affected_family_t)
 
OSCAP_API const char * oval_datatype_get_text (oval_datatype_t)
 
OSCAP_API oval_datatype_t oval_datatype_from_text (const char *)
 
OSCAP_API const char * oval_operation_get_text (oval_operation_t)
 
OSCAP_API oval_operation_t oval_operation_from_text (const char *)
 
OSCAP_API const char * oval_set_operation_get_text (oval_setobject_operation_t)
 
OSCAP_API const char * oval_datetime_format_get_text (oval_datetime_format_t)
 
OSCAP_API const char * oval_arithmetic_operation_get_text (oval_arithmetic_operation_t)
 
OSCAP_API const char * oval_filter_action_get_text (oval_filter_action_t)
 
OSCAP_API struct oval_generatoroval_generator_new (void)
 
OSCAP_API void oval_generator_free (struct oval_generator *generator)
 
OSCAP_API struct oval_generatoroval_generator_clone (struct oval_generator *old_generator)
 
OSCAP_API char * oval_generator_get_product_name (struct oval_generator *generator)
 
OSCAP_API char * oval_generator_get_product_version (struct oval_generator *generator)
 
OSCAP_API const char * oval_generator_get_core_schema_version (struct oval_generator *generator)
 
OSCAP_API char * oval_generator_get_timestamp (struct oval_generator *generator)
 
OSCAP_API const char * oval_generator_get_platform_schema_version (struct oval_generator *generator, const char *platform)
 
OSCAP_API void oval_generator_set_product_name (struct oval_generator *generator, const char *product_name)
 
OSCAP_API void oval_generator_set_product_version (struct oval_generator *generator, const char *product_version)
 
OSCAP_API void oval_generator_set_core_schema_version (struct oval_generator *generator, const char *schema_version)
 
OSCAP_API void oval_generator_add_platform_schema_version (struct oval_generator *generator, const char *platform, const char *schema_version)
 
OSCAP_API void oval_generator_set_timestamp (struct oval_generator *generator, const char *timestamp)
 
OSCAP_API void oval_generator_update_timestamp (struct oval_generator *generator)
 
Setters
OSCAP_API void oval_definition_model_set_generator (struct oval_definition_model *model, struct oval_generator *generator)
 
OSCAP_API void oval_definition_model_clear_external_variables (struct oval_definition_model *)
 
OSCAP_API void oval_variable_clear_values (struct oval_variable *)
 
OSCAP_API void oval_setobject_set_type (struct oval_setobject *, oval_setobject_type_t)
 
Getters
OSCAP_API struct oval_generatoroval_definition_model_get_generator (struct oval_definition_model *model)
 

Detailed Description

Author
"David Niemoller" David.nosp@m..Nie.nosp@m.molle.nosp@m.r@g2.nosp@m.-inc..nosp@m.com