Open Vulnerability and Assessment Language. More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "oval_definitions_impl.h"
#include "oval_collection_impl.h"
#include "oval_string_map_impl.h"
#include "oval_agent_api_impl.h"
#include "oval_parser_impl.h"
#include "../common/util.h"
#include "../common/public/debug.h"
#include "../common/_error.h"
Data Structures | |
struct | oval_component |
OVAL variable component. More... | |
struct | oval_component_LITERAL |
struct | oval_component_OBJECTREF |
struct | oval_component_VARREF |
struct | oval_component_FUNCTION |
struct | oval_component_ARITHMETIC |
struct | oval_component_BEGEND |
struct | oval_component_SPLIT |
struct | oval_component_SUBSTRING |
struct | oval_component_TIMEDIF |
struct | oval_component_REGEX_CAPTURE |
Defines | |
#define | _AGG_FLAG(f1, f2) _flag_agg_map[f2][f1] |
#define | _COMP_TYPE(comp) oval_component_type_get_text(oval_component_get_type(comp)) |
#define | _FLAG_TYPE(flag) oval_syschar_collection_flag_get_text(flag) |
#define | _HAS_VALUES(flag) (flag==SYSCHAR_FLAG_COMPLETE || flag==SYSCHAR_FLAG_INCOMPLETE) |
Typedefs | |
typedef struct oval_component | oval_component_t |
typedef struct oval_component_LITERAL | oval_component_LITERAL_t |
typedef struct oval_component_OBJECTREF | oval_component_OBJECTREF_t |
typedef struct oval_component_VARREF | oval_component_VARREF_t |
typedef struct oval_component_FUNCTION | oval_component_FUNCTION_t |
typedef struct oval_component_ARITHMETIC | oval_component_ARITHMETIC_t |
typedef struct oval_component_BEGEND | oval_component_BEGEND_t |
typedef struct oval_component_SPLIT | oval_component_SPLIT_t |
typedef struct oval_component_SUBSTRING | oval_component_SUBSTRING_t |
typedef struct oval_component_TIMEDIF | oval_component_TIMEDIF_t |
typedef struct oval_component_REGEX_CAPTURE | oval_component_REGEX_CAPTURE_t |
typedef oval_syschar_collection_flag_t( | _oval_component_evaluator )(struct oval_syschar_model *, struct oval_component *, struct oval_collection *) |
Functions | |
void | oval_component_to_print (struct oval_component *component, char *indent, int index) |
bool | oval_component_iterator_has_more (struct oval_component_iterator *oc_component) |
Return true if the iterator is not exhausted. | |
int | oval_component_iterator_remaining (struct oval_component_iterator *oc_component) |
How many remains. | |
struct oval_component * | oval_component_iterator_next (struct oval_component_iterator *oc_component) |
return the next instance of Oval_component. | |
void | oval_component_iterator_free (struct oval_component_iterator *oc_component) |
Free the iterator. | |
oval_component_type_t | oval_component_get_type (struct oval_component *component) |
Returns attribute Oval_component->type. | |
struct oval_value * | oval_component_get_literal_value (struct oval_component *component) |
Returns attribute Oval_literal->literal. | |
void | oval_component_set_literal_value (struct oval_component *component, struct oval_value *value) |
void | oval_component_set_type (struct oval_component *component, oval_component_type_t type) |
Set type of component Oval_component->type. | |
struct oval_object * | oval_component_get_object (struct oval_component *component) |
Returns attribute Oval_component_object->object. | |
void | oval_component_set_object (struct oval_component *component, struct oval_object *object) |
set attribute Oval_component_object->object. | |
char * | oval_component_get_object_field (struct oval_component *component) |
Returns attribute Oval_component_object->object_field. | |
void | oval_component_set_object_field (struct oval_component *component, char *field) |
set attribute Oval_component_object->object_field. | |
struct oval_variable * | oval_component_get_variable (struct oval_component *component) |
Returns attribute Oval_component_variable->variable. | |
struct oval_component_iterator * | oval_component_get_function_components (struct oval_component *component) |
Returns attribute Oval_function->components. | |
oval_arithmetic_operation_t | oval_component_get_arithmetic_operation (struct oval_component *component) |
Returns attribute Oval_function_ARITHMETIC->arithmetic_operation. | |
void | oval_component_set_arithmetic_operation (struct oval_component *component, oval_arithmetic_operation_t operation) |
char * | oval_component_get_prefix (struct oval_component *component) |
Returns attribute Oval_function_BEGIN->prefix. | |
void | oval_component_set_prefix (struct oval_component *component, char *character) |
char * | oval_component_get_suffix (struct oval_component *component) |
Returns attribute Oval_function_END->suffix. | |
void | oval_component_set_suffix (struct oval_component *component, char *character) |
char * | oval_component_get_split_delimiter (struct oval_component *component) |
Returns attribute Oval_function_SPLIT->delimiter. | |
void | oval_component_set_split_delimiter (struct oval_component *component, char *delimeter) |
int | oval_component_get_substring_start (struct oval_component *component) |
Returns attribute Oval_function_SUBSTRING->start. | |
void | oval_component_set_substring_start (struct oval_component *component, int start) |
int | oval_component_get_substring_length (struct oval_component *component) |
Returns attribute Oval_function_SUBSTRING->length. | |
void | oval_component_set_substring_length (struct oval_component *component, int length) |
oval_datetime_format_t | oval_component_get_timedif_format_1 (struct oval_component *component) |
Returns attribute Oval_function_TIMEDIF->timedif_format_1. | |
void | oval_component_set_timedif_format_1 (struct oval_component *component, oval_datetime_format_t format) |
oval_datetime_format_t | oval_component_get_timedif_format_2 (struct oval_component *component) |
Returns attribute Oval_function_TIMEDIF->timedif_format_2. | |
void | oval_component_set_timedif_format_2 (struct oval_component *component, oval_datetime_format_t format) |
char * | oval_component_get_regex_pattern (struct oval_component *component) |
Returns attribute Oval_function_REGEX_CAPTURE->pattern. | |
void | oval_component_set_regex_pattern (struct oval_component *component, char *pattern) |
struct oval_component * | oval_component_new (struct oval_definition_model *model, oval_component_type_t type) |
Construct new intance of Oval_component. | |
bool | oval_component_is_valid (struct oval_component *component) |
Returns true if the Oval_component is valid. | |
bool | oval_component_is_locked (struct oval_component *component) |
return true if the component instance is locked. | |
struct oval_component * | oval_component_clone (struct oval_definition_model *new_model, struct oval_component *old_component) |
Clone instance of Oval_component. | |
void | oval_component_free (struct oval_component *component) |
Free instance of Oval_component. | |
void | oval_component_add_function_component (struct oval_component *component, struct oval_component *func_component) |
set attribute Oval_component_object->object_field. | |
void | oval_component_set_variable (struct oval_component *component, struct oval_variable *variable) |
set attribute Oval_component_object->variable. | |
int | oval_component_parse_tag (xmlTextReaderPtr reader, struct oval_parser_context *context, oval_component_consumer consumer, void *user) |
xmlNode * | oval_component_to_dom (struct oval_component *component, xmlDoc *doc, xmlNode *parent) |
oval_syschar_collection_flag_t | oval_component_evaluate (struct oval_syschar_model *sysmod, struct oval_component *component, struct oval_collection *value_collection) |
Open Vulnerability and Assessment Language.
See more details at http://oval.mitre.org/