/home/pvrabec/openscap/openscap-0.5.5/src/OVAL/oval_agent.c File Reference

Open Vulnerability and Assessment Language. More...

#include "oval_definitions_impl.h"
#include "oval_agent_api_impl.h"
#include "oval_parser_impl.h"
#include "oval_string_map_impl.h"
#include "oval_system_characteristics_impl.h"
#include "oval_results_impl.h"
#include <string.h>
#include <time.h>

Data Structures

struct  oval_definition_model
 OVAL definition model. More...
struct  oval_syschar_model
 OVAL System Characteristics model. More...
struct  oval_results_model
 OVAL Results Model. More...

Typedefs

typedef struct
oval_definition_model 
oval_definition_model_t
typedef void(* _oval_result_system_clone_func )(void *, struct oval_definition_model *)
typedef struct oval_syschar_model oval_syschar_model_t
typedef void(* _oval_syschar_model_clone_func )(void *, struct oval_syschar_model *)
typedef struct oval_results_model oval_results_model_t

Functions

struct oval_export_targetoval_export_target_new_file (char *filename, char *encoding)
 create export_target object.
void oval_export_target_free (struct oval_export_target *target)
 free an export_target object.
struct oval_import_sourceoval_import_source_new_file (char *filename)
 Create an import source from filename.
void oval_import_source_free (struct oval_import_source *source)
 free a specified import_source.
struct oval_definition_modeloval_definition_model_new ()
 Create an empty oval_definition_model.
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *oldmodel)
 Copy an oval_definition_model.
void oval_definition_model_free (struct oval_definition_model *model)
struct oval_syschar_modeloval_syschar_model_new (struct oval_definition_model *definition_model)
 Create new oval_syschar_model.
struct oval_syschar_modeloval_syschar_model_clone (struct oval_syschar_model *old_model)
 Copy an oval_syschar_model.
void oval_syschar_model_free (struct oval_syschar_model *model)
 free memory allocated to a specified syschar model.
struct oval_definition_modeloval_syschar_model_get_definition_model (struct oval_syschar_model *model)
 Return related oval_definition_model from an oval_syschar_model.
struct oval_syschar_iterator * oval_syschar_model_get_syschars (struct oval_syschar_model *model)
 Return an iterator over the oval_sychar objects persisted by this model.
struct oval_sysinfooval_syschar_model_get_sysinfo (struct oval_syschar_model *model)
 Return default sysinfo bound to syschar model.
void oval_syschar_model_set_sysinfo (struct oval_syschar_model *model, struct oval_sysinfo *sysinfo)
void oval_definition_model_add_definition (struct oval_definition_model *model, struct oval_definition *definition)
void oval_definition_model_add_test (struct oval_definition_model *model, struct oval_test *test)
void oval_definition_model_add_object (struct oval_definition_model *model, struct oval_object *object)
void oval_definition_model_add_state (struct oval_definition_model *model, struct oval_state *state)
void oval_definition_model_add_variable (struct oval_definition_model *model, struct oval_variable *variable)
void oval_syschar_model_add_syschar (struct oval_syschar_model *model, struct oval_syschar *syschar)
void oval_syschar_model_add_variable_binding (struct oval_syschar_model *model, struct oval_variable_binding *binding)
void oval_syschar_model_probe_objects (struct oval_syschar_model *syschar_model)
 Probe oval_objects bound to oval_syschar_model.
void oval_syschar_model_add_sysdata (struct oval_syschar_model *model, struct oval_sysdata *sysdata)
int oval_definition_model_import (struct oval_definition_model *model, struct oval_import_source *source, oval_xml_error_handler eh, void *user_arg)
 Load OVAL definitions from a XML stream.
void oval_syschar_model_import (struct oval_syschar_model *model, struct oval_import_source *source, oval_xml_error_handler eh, void *user_arg)
 Load OVAL system characteristics from a file.
struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *model, char *key)
 Get OVAL definition by ID.
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, char *key)
 Get oval test by ID.
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, char *key)
 Get OVAL object by ID.
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, char *key)
 Get OVAL state by ID.
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, char *key)
 Get OVAL variable by ID.
void oval_definition_model_bind_variable_model (struct oval_definition_model *sysmodel, struct oval_variable_model *varmodel)
 Bind an oval_variable_model to the specified oval_definition_model.
void oval_syschar_model_bind_variable_model (struct oval_syschar_model *sysmodel, struct oval_variable_model *varmodel)
 Bind a variable model to the definitions bound to the syschar model.
struct oval_syscharoval_syschar_model_get_syschar (struct oval_syschar_model *model, char *object_id)
 Return the oval_syschar bound to a specified object_id.
struct oval_sysdataoval_syschar_model_get_sysdata (struct oval_syschar_model *model, char *id)
struct oval_definition_iterator * oval_definition_model_get_definitions (struct oval_definition_model *model)
 Get OVAL definitions.
struct oval_test_iterator * oval_definition_model_get_tests (struct oval_definition_model *model)
 Get OVAL tests.
struct oval_object_iterator * oval_definition_model_get_objects (struct oval_definition_model *model)
 Get OVAL objects.
struct oval_state_iterator * oval_definition_model_get_states (struct oval_definition_model *model)
 Get OVAL states.
struct oval_variable_iterator * oval_definition_model_get_variables (struct oval_definition_model *model)
 Get OVAL variables.
struct oval_syscharget_oval_syschar_new (struct oval_syschar_model *model, struct oval_object *object)
struct oval_sysdataget_oval_sysdata_new (struct oval_syschar_model *model, char *id)
struct oval_definitionget_oval_definition_new (struct oval_definition_model *model, char *id)
struct oval_variableget_oval_variable_new (struct oval_definition_model *model, char *id, oval_variable_type_t type)
struct oval_stateget_oval_state_new (struct oval_definition_model *model, char *id)
struct oval_objectget_oval_object_new (struct oval_definition_model *model, char *id)
struct oval_testget_oval_test_new (struct oval_definition_model *model, char *id)
struct oval_results_modeloval_results_model_new (struct oval_definition_model *definition_model, struct oval_syschar_model **syschar_models)
 Create new oval_results_model.
struct oval_results_modeloval_results_model_clone (struct oval_results_model *old_resmodel)
 Copy an oval_results_model.
void oval_results_model_free (struct oval_results_model *model)
 free memory allocated to a specified oval results model.
struct oval_definition_modeloval_results_model_get_definition_model (struct oval_results_model *model)
 oval_results_model_definition_model Return bound object model from an oval_results_model.
struct
oval_result_system_iterator * 
oval_results_model_get_systems (struct oval_results_model *model)
 Return iterator over reporting systems.
void oval_results_model_add_system (struct oval_results_model *model, struct oval_result_system *sys)
struct oval_result_directivesoval_results_model_import (struct oval_results_model *model, struct oval_import_source *source, oval_xml_error_handler handler, void *client_data)
 load oval results from XML file.
xmlNode * oval_definitions_to_dom (struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode *parent, oval_definitions_resolver resolver, void *user_arg)
int oval_definition_model_export (struct oval_definition_model *model, struct oval_export_target *target)
xmlNode * oval_syschar_model_to_dom (struct oval_syschar_model *syschar_model, xmlDocPtr doc, xmlNode *parent, oval_syschar_resolver resolver, void *user_arg)
int oval_syschar_model_export (struct oval_syschar_model *model, struct oval_export_target *target)
 Export system characteristics as a XML file.
int oval_results_model_export (struct oval_results_model *results_model, struct oval_result_directives *directives, struct oval_export_target *target)
 export oval results to XML file.

Variables

int oval_errno

Detailed Description

Open Vulnerability and Assessment Language.

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


Function Documentation

void oval_export_target_free ( struct oval_export_target target  ) 

free an export_target object.

Parameters:
target the target to be freed.
struct oval_export_target* oval_export_target_new_file ( char *  filename,
char *  encoding 
) [read]

create export_target object.

Return the created export_target object.

Parameters:
filename the name of the target output file
encoding the target XML encoding.
void oval_import_source_free ( struct oval_import_source source  ) 

free a specified import_source.

Parameters:
source the specified import_source
struct oval_import_source* oval_import_source_new_file ( char *  filename  )  [read]

Create an import source from filename.

Return an import_source that streams from a designated file.

Parameters:
filename the name of the designated file

Generated on 12 Nov 2009 for Open SCAP Library by  doxygen 1.6.1