/home/pvrabec/project/openscap/openscap-0.6.0/src/OVAL/public/oval_agent_api.h File Reference

#include "oval_definitions.h"
#include "oval_system_characteristics.h"
#include "oval_results.h"
#include "oval_variables.h"
#include "oval_probe.h"
#include "xccdf_policy.h"

Go to the source code of this file.

Typedefs

typedef struct oval_agent_session oval_agent_session_t
 Agent session consists of connection to system checking engine, definition model, system characteristics model and results model.
typedef int( oval_agent_result_cb_t )(const char *id, int result, void *arg)
 This callback is called after evaluation of each definition.

Functions

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.

Evaluators



typedef xccdf_test_result_type_txccdf_policy_eval_rule_cb_t )(struct xccdf_policy *policy, const char *rule_id, const char *id, struct xccdf_value_binding_iterator *it, void *usr)
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.
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.
void oval_agent_export_sysinfo_to_xccdf_result (struct oval_agent_session *session, struct xccdf_result *ritem)
 Transform OVAL Sysinfo into XCCDF Test Result.

Detailed Description

Author:
"David Niemoller" <David.Niemoller@g2-inc.com>
"Peter Vrabec" <pvrabec@gmail.com>

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