Open SCAP Library: oval_agent_xccdf_api.h Source File

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

oval_agent_xccdf_api.h
Go to the documentation of this file.
1
15 /*
16 * Copyright 2010,2011 Red Hat Inc., Durham, North Carolina.
17 * All Rights Reserved.
18 *
19 * This library is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU Lesser General Public
21 * License as published by the Free Software Foundation; either
22 * version 2.1 of the License, or (at your option) any later version.
23 *
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
28 *
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 *
33 */
34
35
36 #ifndef OVAL_AGENT_XCCDF_API_H_
37 #define OVAL_AGENT_XCCDF_API_H_
38
39 #include <oscap.h>
40 #include "oval_agent_api.h"
41 #include "xccdf_policy.h"
42
52 typedef xccdf_test_result_type_t (xccdf_policy_eval_rule_cb_t) (struct xccdf_policy * policy, const char * rule_id,
53 const char * id, struct xccdf_value_binding_iterator * it, void * usr);
54
76 xccdf_test_result_type_t oval_agent_eval_rule(struct xccdf_policy * policy, const char * rule_id, const char * id, const char * href,
77 struct xccdf_value_binding_iterator * it,
78 struct xccdf_check_import_iterator * check_import_it,
79 void * usr);
80
89 int oval_agent_resolve_variables(struct oval_agent_session * session, struct xccdf_value_binding_iterator *it);
90
91
99 bool xccdf_policy_model_register_engine_oval(struct xccdf_policy_model * model, struct oval_agent_session * sess);
100
109 OSCAP_DEPRECATED(void oval_agent_export_sysinfo_to_xccdf_result(struct oval_agent_session * session, struct xccdf_result * ritem));
110
115 #endif
xccdf_policy_eval_rule_cb_t
xccdf_test_result_type_t( xccdf_policy_eval_rule_cb_t)(struct xccdf_policy *policy, const char *rule_id, const char *id, struct xccdf_value_binding_iterator *it, void *usr)
Definition: oval_agent_xccdf_api.h:52
oval_agent_session
Definition: oval_agent.c:53
oscap.h
General OpenScap functions and types.
xccdf_policy.h
Open-scap XCCDF Policy library interface.
OSCAP_DEPRECATED
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50
oval_agent_export_sysinfo_to_xccdf_result
void oval_agent_export_sysinfo_to_xccdf_result(struct oval_agent_session *session, struct xccdf_result *ritem)
Definition: oval_agent.c:626
xccdf_check_import_iterator
Check import iterator.
Definition: xccdf_benchmark.h:530
oval_agent_eval_rule
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.
Definition: oval_agent.c:568
xccdf_policy_model
XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file a...
Definition: xccdf_policy_priv.h:39
xccdf_result
Actual results of running a XCCDF test or profile.
Definition: xccdf_benchmark.h:223
xccdf_test_result_type_t
xccdf_test_result_type_t
Test result.
Definition: xccdf_benchmark.h:168
oval_agent_api.h
oval_agent_resolve_variables
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.
Definition: oval_agent.c:487
xccdf_policy
XCCDF policy structure is abstract (class) structure of Profile element from benchmark.
Definition: xccdf_policy_priv.h:58
xccdf_policy_model::xccdf_policy_model_register_engine_oval
bool xccdf_policy_model_register_engine_oval(struct xccdf_policy_model *model, struct oval_agent_session *sess)
Function to register predefined oval callback for XCCDF evaluation proccess.
Definition: oval_agent.c:619