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

Open Vulnerability and Assessment Language. More...

#include <string.h>
#include <time.h>
#include "config.h"
#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_probe_impl.h"
#include "oval_results_impl.h"
#include "common/util.h"
#include "common/debug_priv.h"
#include "common/_error.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 holds OVAL results structure instances. More...
struct  oval_agent_session
struct  oval_result_to_xccdf_spec
 Specification of structure for transformation of OVAL Result type to XCCDF result type. More...

Typedefs

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

Functions

struct oval_definition_modeloval_definition_model_new ()
void oval_definition_model_lock (struct oval_definition_model *definition_model)
bool oval_definition_model_is_locked (struct oval_definition_model *definition_model)
bool oval_definition_model_is_valid (struct oval_definition_model *definition_model)
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *oldmodel)
void oval_definition_model_free (struct oval_definition_model *model)
struct oval_syschar_modeloval_syschar_model_new (struct oval_definition_model *definition_model)
void oval_syschar_model_lock (struct oval_syschar_model *syschar_model)
bool oval_syschar_model_is_locked (struct oval_syschar_model *syschar_model)
bool oval_syschar_model_is_valid (struct oval_syschar_model *syschar_model)
struct oval_syschar_modeloval_syschar_model_clone (struct oval_syschar_model *old_model)
void oval_syschar_model_free (struct oval_syschar_model *model)
struct oval_definition_modeloval_syschar_model_get_definition_model (struct oval_syschar_model *model)
const char * oval_definition_model_get_schema (struct oval_definition_model *model)
struct oval_syschar_iteratoroval_syschar_model_get_syschars (struct oval_syschar_model *model)
struct oval_sysinfooval_syschar_model_get_sysinfo (struct oval_syschar_model *model)
const char * oval_syschar_model_get_schema (struct oval_syschar_model *model)
void oval_syschar_model_set_sysinfo (struct oval_syschar_model *model, struct oval_sysinfo *sysinfo)
void oval_syschar_model_set_schema (struct oval_syschar_model *model, const char *schema)
void oval_definition_model_add_definition (struct oval_definition_model *model, struct oval_definition *definition)
void oval_definition_model_set_schema (struct oval_definition_model *model, const char *version)
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_add_sysdata (struct oval_syschar_model *model, struct oval_sysdata *sysdata)
struct oval_definition_modeloval_definition_model_import (const char *file)
int oval_definition_model_merge (struct oval_definition_model *model, const char *file)
int oval_syschar_model_import (struct oval_syschar_model *model, const char *file)
struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *model, const char *key)
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, const char *key)
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, const char *key)
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, const char *key)
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, const char *key)
void oval_definition_model_bind_variable_model (struct oval_definition_model *defmodel, struct oval_variable_model *varmodel)
void oval_definition_model_clear_external_variables (struct oval_definition_model *model)
void oval_syschar_model_bind_variable_model (struct oval_syschar_model *sysmodel, struct oval_variable_model *varmodel)
struct oval_syscharoval_syschar_model_get_syschar (struct oval_syschar_model *model, const char *object_id)
struct oval_sysdataoval_syschar_model_get_sysdata (struct oval_syschar_model *model, const char *id)
struct oval_definition_iteratoroval_definition_model_get_definitions (struct oval_definition_model *model)
struct oval_test_iteratoroval_definition_model_get_tests (struct oval_definition_model *model)
struct oval_object_iteratoroval_definition_model_get_objects (struct oval_definition_model *model)
struct oval_state_iteratoroval_definition_model_get_states (struct oval_definition_model *model)
struct oval_variable_iteratoroval_definition_model_get_variables (struct oval_definition_model *model)
struct oval_syscharoval_syschar_get_new (struct oval_syschar_model *model, struct oval_object *object)
struct oval_sysdataoval_sysdata_get_new (struct oval_syschar_model *model, const char *id)
struct oval_definitionoval_definition_get_new (struct oval_definition_model *model, const char *id)
struct oval_variableoval_variable_get_new (struct oval_definition_model *model, const char *id, oval_variable_type_t type)
struct oval_stateoval_state_get_new (struct oval_definition_model *model, const char *id)
struct oval_objectoval_object_get_new (struct oval_definition_model *model, const char *id)
struct oval_testoval_test_get_new (struct oval_definition_model *model, const char *id)
struct oval_results_modeloval_results_model_new (struct oval_definition_model *definition_model, struct oval_syschar_model **syschar_models)
void oval_results_model_lock (struct oval_results_model *results_model)
bool oval_results_model_is_locked (struct oval_results_model *results_model)
bool oval_results_model_is_valid (struct oval_results_model *results_model)
struct oval_results_modeloval_results_model_clone (struct oval_results_model *old_resmodel)
void oval_results_model_free (struct oval_results_model *model)
struct oval_definition_modeloval_results_model_get_definition_model (struct oval_results_model *model)
struct
oval_result_system_iterator
oval_results_model_get_systems (struct oval_results_model *model)
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, const char *file)
xmlNode * oval_definitions_to_dom (struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode *parent)
int oval_definition_model_export (struct oval_definition_model *model, const char *file)
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, const char *file)
int oval_results_model_eval (struct oval_results_model *res_model)
 Evaluate all result_systems.
int oval_results_model_export (struct oval_results_model *results_model, struct oval_result_directives *directives, const char *file)
oval_agent_session_toval_agent_new_session (struct oval_definition_model *model)
 Create new session for OVAL agent from OVAL definition model.
oval_result_t oval_agent_eval_definition (oval_agent_session_t *ag_sess, const char *id)
 Probe the system and evaluate specified definition.
int oval_agent_reset_session (oval_agent_session_t *ag_sess)
 Clean resuls that were generated in this agent session.
int oval_agent_eval_system (oval_agent_session_t *ag_sess, oval_agent_result_cb_t *cb, void *arg)
 Probe and evaluate all definitions from the content, call the callback functions upon single evaluation.
struct oval_results_modeloval_agent_get_results_model (oval_agent_session_t *ag_sess)
 Get a result model from agent session.
void oval_agent_destroy_session (oval_agent_session_t *ag_sess)
 Finish OVAL agent session.
void oval_agent_resolve_variables (struct oval_agent_session *session, struct xccdf_value_binding_iterator *it)
 Resolve variables from XCCDF Value Bindings and set their values to OVAL Variables.
xccdf_test_result_type_t oval_agent_eval_rule (struct xccdf_policy *policy, const char *rule_id, const char *id, struct xccdf_value_binding_iterator *it, void *usr)
 Internal OVAL Agent Callback that can be used to evaluate XCCDF content.
bool xccdf_policy_model_register_engine_oval (struct xccdf_policy_model *model, struct oval_agent_session *usr)
void oval_agent_export_sysinfo_to_xccdf_result (struct oval_agent_session *sess, struct xccdf_result *ritem)
 Transform OVAL Sysinfo into XCCDF Test Result.

Detailed Description

Open Vulnerability and Assessment Language.

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


Generated on 14 Jul 2010 for Open SCAP Library by  doxygen 1.6.1