Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
100 
110 
115 #endif
Definition: oval_agent.c:53
General OpenScap functions and types.
Open-scap XCCDF Policy library interface.
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition: oscap.h:50
void oval_agent_export_sysinfo_to_xccdf_result(struct oval_agent_session *sess, struct xccdf_result *ritem)
Definition: oval_agent.c:618
Check import iterator.
Definition: xccdf_benchmark.h:539
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:560
XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file a...
Definition: xccdf_policy_priv.h:39
Actual results of running a XCCDF test or profile.
Definition: xccdf_benchmark.h:232
xccdf_test_result_type_t
Test result.
Definition: xccdf_benchmark.h:168
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:479
XCCDF policy structure is abstract (class) structure of Profile element from benchmark.
Definition: xccdf_policy_priv.h:58
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
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:611