Open SCAP Library
Loading...
Searching...
No Matches
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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#include "oscap_export.h"
43
53typedef xccdf_test_result_type_t (xccdf_policy_eval_rule_cb_t) (struct xccdf_policy * policy, const char * rule_id,
54 const char * id, struct xccdf_value_binding_iterator * it, void * usr);
55
78OSCAP_API xccdf_test_result_type_t oval_agent_eval_rule(struct xccdf_policy *policy, const char *rule_id, const char *id, const char *href,
79 struct xccdf_value_binding_iterator * it,
80 struct xccdf_check_import_iterator * check_import_it,
81 void * usr);
82
91OSCAP_API int oval_agent_resolve_variables(struct oval_agent_session * session, struct xccdf_value_binding_iterator *it);
92
93
101OSCAP_API bool xccdf_policy_model_register_engine_oval(struct xccdf_policy_model * model, struct oval_agent_session * sess);
102
107#endif
OSCAP_API 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:614
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:53
OSCAP_API 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:529
xccdf_test_result_type_t
Test result.
Definition xccdf_benchmark.h:170
General OpenScap functions and types.
Definition oval_agent.c:54
Check import iterator.
XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file a...
Definition xccdf_policy_priv.h:38
XCCDF policy structure is abstract (class) structure of Profile element from benchmark.
Definition xccdf_policy_priv.h:57
Open-scap XCCDF Policy library interface.