Loading...
Searching...
No Matches
oval_agent.c File Reference

Open Vulnerability and Assessment Language. More...

`#include <string.h>`
`#include <time.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 "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"`
Include dependency graph for oval_agent.c:

## 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...

## Functions

oval_agent_session_t * | oval_agent_new_session (struct oval_definition_model *model, const char *name)
| Create new session for OVAL agent from OVAL definition model.
struct oval_definition_model * | oval_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.
int | oval_agent_eval_definition (oval_agent_session_t *ag_sess, const char *id)
| Probe the system and evaluate specified definition.
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.
struct oval_result_definition * | oval_agent_get_result_definition (oval_agent_session_t *ag_sess, const char *id)
| Get the OVAL result definition from an agent session.
int | oval_agent_reset_session (oval_agent_session_t *ag_sess)
| Clean resuls that were generated in this agent session.
void | oval_agent_reset_syschar (oval_agent_session_t *ag_sess)
| Clean system characteristics that were generated in this agent session.
void | oval_agent_reset_results (oval_agent_session_t *ag_sess)
| Clean results 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.
struct oval_results_model * | oval_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.
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.
bool | xccdf_policy_model_register_engine_oval (struct xccdf_policy_model *model, struct oval_agent_session *usr)

## Detailed Description

Open Vulnerability and Assessment Language.

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