Open SCAP Library
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
oval_variable.c File Reference

Open Vulnerability and Assessment Language. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "oval_definitions_impl.h"
#include "adt/oval_collection_impl.h"
#include "adt/oval_string_map_impl.h"
#include "oval_agent_api_impl.h"
#include "common/util.h"
#include "common/debug_priv.h"
#include "common/_error.h"
#include "common/oscap_string.h"
#include "results/oval_cmp_impl.h"
#include "results/oval_results_impl.h"
#include "public/oval_probe.h"
Include dependency graph for oval_variable.c:

Data Structures

struct  oval_variable
 An oval variable resolves an oval_value stream which specifies constraints for oval_object s and oval_state s. More...
 
struct  oval_variable_CONSTANT_t
 
struct  oval_variable_EXTERNAL_t
 
struct  oval_variable_LOCAL_t
 
struct  oval_variable_UNKNOWN_t
 
struct  oval_variable_possible_value
 
struct  oval_variable_possible_restriction
 
struct  oval_variable_restriction
 

Macros

#define VAR_BASE
 
#define DEFINITION_NAMESPACE   "http://oval.mitre.org/XMLSchema/oval-definitions-5"
 

Typedefs

typedef struct oval_variable oval_variable_t
 
typedef struct oval_variable_possible_value oval_variable_possible_value_t
 
typedef struct oval_variable_possible_restriction oval_variable_possible_restriction_t
 
typedef struct oval_variable_restriction oval_variable_restriction_t
 

Functions

struct oval_variable_possible_valueoval_variable_possible_value_new (const char *hint, const char *value)
 
void oval_variable_possible_value_free (struct oval_variable_possible_value *pv)
 
char * oval_variable_possible_value_get_hint (struct oval_variable_possible_value *pv)
 
char * oval_variable_possible_value_get_value (struct oval_variable_possible_value *pv)
 
bool oval_variable_possible_value_iterator_has_more (struct oval_variable_possible_value_iterator *iter)
 
struct oval_variable_possible_valueoval_variable_possible_value_iterator_next (struct oval_variable_possible_value_iterator *iter)
 
void oval_variable_possible_value_iterator_free (struct oval_variable_possible_value_iterator *iter)
 
int oval_variable_possible_value_iterator_remaining (struct oval_variable_possible_value_iterator *iter)
 
struct oval_variable_possible_restrictionoval_variable_possible_restriction_new (oval_operator_t operator, const char *hint)
 
void oval_variable_possible_restriction_free (struct oval_variable_possible_restriction *pr)
 
void oval_variable_possible_restriction_add_restriction (struct oval_variable_possible_restriction *pr, struct oval_variable_restriction *r)
 
struct oval_variable_restriction_iterator * oval_variable_possible_restriction_get_restrictions2 (struct oval_variable_possible_restriction *possible_restriction)
 
oval_operator_t oval_variable_possible_restriction_get_operator (struct oval_variable_possible_restriction *possible_restriction)
 
char * oval_variable_possible_restriction_get_hint (struct oval_variable_possible_restriction *possible_restriction)
 
bool oval_variable_possible_restriction_iterator_has_more (struct oval_variable_possible_restriction_iterator *iter)
 
struct oval_variable_possible_restrictionoval_variable_possible_restriction_iterator_next (struct oval_variable_possible_restriction_iterator *iter)
 
void oval_variable_possible_restriction_iterator_free (struct oval_variable_possible_restriction_iterator *iter)
 
int oval_variable_possible_restriction_iterator_remaining (struct oval_variable_possible_restriction_iterator *iter)
 
struct oval_variable_restrictionoval_variable_restriction_new (oval_operation_t operation, const char *value)
 
void oval_variable_restriction_free (struct oval_variable_restriction *r)
 
oval_operation_t oval_variable_restriction_get_operation (struct oval_variable_restriction *restriction)
 
char * oval_variable_restriction_get_value (struct oval_variable_restriction *restriction)
 
bool oval_variable_restriction_iterator_has_more (struct oval_variable_restriction_iterator *iter)
 
struct oval_variable_restrictionoval_variable_restriction_iterator_next (struct oval_variable_restriction_iterator *iter)
 
void oval_variable_restriction_iterator_free (struct oval_variable_restriction_iterator *iter)
 
int oval_variable_restriction_iterator_remaining (struct oval_variable_restriction_iterator *iter)
 
bool oval_variable_iterator_has_more (struct oval_variable_iterator *oc_variable)
 
struct oval_variableoval_variable_iterator_next (struct oval_variable_iterator *oc_variable)
 
void oval_variable_iterator_free (struct oval_variable_iterator *oc_variable)
 
char * oval_variable_get_id (struct oval_variable *variable)
 
char * oval_variable_get_comment (struct oval_variable *variable)
 
int oval_variable_get_version (struct oval_variable *variable)
 
bool oval_variable_get_deprecated (struct oval_variable *variable)
 
oval_variable_type_t oval_variable_get_type (struct oval_variable *variable)
 
oval_datatype_t oval_variable_get_datatype (struct oval_variable *variable)
 
struct oval_value_iteratoroval_variable_get_values (struct oval_variable *variable)
 
struct oval_variable_possible_value_iterator * oval_variable_get_possible_values2 (struct oval_variable *variable)
 
struct oval_variable_possible_restriction_iterator * oval_variable_get_possible_restrictions2 (struct oval_variable *variable)
 
bool oval_variable_contains_value (struct oval_variable *variable, const char *o_value_text)
 
oval_syschar_collection_flag_t oval_variable_get_collection_flag (struct oval_variable *variable)
 
int oval_syschar_model_compute_variable (struct oval_syschar_model *sysmod, struct oval_variable *variable)
 
struct oval_componentoval_variable_get_component (struct oval_variable *variable)
 
struct oval_variableoval_variable_new (struct oval_definition_model *model, const char *id, oval_variable_type_t type)
 
struct oval_variableoval_variable_clone (struct oval_definition_model *new_model, struct oval_variable *old_variable)
 
void oval_variable_free (struct oval_variable *variable)
 
void oval_variable_set_datatype (struct oval_variable *variable, oval_datatype_t datatype)
 
void oval_variable_set_type (struct oval_variable *variable, oval_variable_type_t new_type)
 
void oval_variable_set_comment (struct oval_variable *variable, char *comm)
 
void oval_variable_set_deprecated (struct oval_variable *variable, bool deprecated)
 
void oval_variable_set_version (struct oval_variable *variable, int version)
 
void oval_variable_add_value (struct oval_variable *variable, struct oval_value *value)
 
void oval_variable_add_possible_value (struct oval_variable *variable, struct oval_variable_possible_value *pv)
 
void oval_variable_add_possible_restriction (struct oval_variable *variable, struct oval_variable_possible_restriction *pr)
 
void oval_variable_clear_values (struct oval_variable *variable)
 
int oval_variable_bind_ext_var (struct oval_variable *var, struct oval_variable_model *varmod, char *extvar_id)
 
void oval_variable_set_component (struct oval_variable *variable, struct oval_component *component)
 
int oval_variable_parse_tag (xmlTextReaderPtr reader, struct oval_parser_context *context, void *usr)
 
xmlNode * oval_variable_to_dom (struct oval_variable *variable, xmlDoc *doc, xmlNode *parent)
 

Detailed Description

Open Vulnerability and Assessment Language.

See more details at http://oval.mitre.org/

Macro Definition Documentation

◆ VAR_BASE

#define VAR_BASE
Value:
struct oval_definition_model *model; \
char *id; \
int version; \
oval_datatype_t datatype; \
char *comment; \
int deprecated
oval_variable_type_t
OVAL variable types.
Definition oval_definitions.h:192
oval_datatype_t
Datatypes.
Definition oval_definitions.h:149
oval_syschar_collection_flag_t
System characteristics result flag.
Definition oval_system_characteristics.h:50
Oval definition model.
Definition oval_defModel.c:53