Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
oval_agent.c File Reference

Detailed Description

Open Vulnerability and Assessment Language.

See more details at

#include <string.h>
#include <time.h>
#include <assume.h>
#include "oval_agent_api.h"
#include "oval_definitions_impl.h"
#include "oval_agent_api_impl.h"
#include "oval_parser_impl.h"
#include "adt/oval_string_map_impl.h"
#include "oval_system_characteristics_impl.h"
#include "oval_probe_impl.h"
#include "results/oval_results_impl.h"
#include "common/list.h"
#include "common/util.h"
#include "common/debug_priv.h"
#include "common/_error.h"
#include "oval_agent_xccdf_api.h"

Data Structures

struct  oval_agent_session
struct  oval_result_to_xccdf_spec
 Specification of structure for transformation of OVAL Result type to XCCDF result type. More...


oval_agent_session_toval_agent_new_session (struct oval_definition_model *model, const char *name)
 Create new session for OVAL agent from OVAL definition model. More...
struct oval_definition_modeloval_agent_get_definition_model (oval_agent_session_t *ag_sess)
 Retrieves OVAL definition model associated with given session.
void oval_agent_set_product_name (oval_agent_session_t *ag_sess, char *product_name)
 Set a product name for the provided agent session. More...
int oval_agent_eval_definition (oval_agent_session_t *ag_sess, const char *id)
 Probe the system and evaluate specified definition. More...
int oval_agent_get_definition_result (oval_agent_session_t *ag_sess, const char *id, oval_result_t *result)
 Get the OVAL result of a definition from an agent session. More...
struct oval_result_definitionoval_agent_get_result_definition (oval_agent_session_t *ag_sess, const char *id)
 Get the OVAL result definition from an agent session. More...
int oval_agent_reset_session (oval_agent_session_t *ag_sess)
 Clean resuls that were generated in this agent session.
int oval_agent_abort_session (oval_agent_session_t *ag_sess)
 Abort a running probe session.
int oval_agent_eval_system (oval_agent_session_t *ag_sess, agent_reporter cb, void *arg)
 Probe and evaluate all definitions from the content, call the callback functions upon single evaluation. More...
struct oval_results_modeloval_agent_get_results_model (oval_agent_session_t *ag_sess)
 Get a result model from agent session.
const char * oval_agent_get_filename (oval_agent_session_t *ag_sess)
 Get a filename under which was created.
void oval_agent_destroy_session (oval_agent_session_t *ag_sess)
 Finish OVAL agent session.
int 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. More...
xccdf_test_result_type_t oval_agent_eval_rule (struct xccdf_policy *policy, const char *rule_id, const char *id, const char *href, struct xccdf_value_binding_iterator *it, struct xccdf_check_import_iterator *check_import_it, void *usr)
 Internal OVAL Agent Callback that can be used to evaluate XCCDF content. More...
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)