Loading...
Searching...
No Matches
oval_agent_xccdf_api.h
Go to the documentation of this file.
/*
* Copyright 2010,2011 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef OVAL_AGENT_XCCDF_API_H_
#define OVAL_AGENT_XCCDF_API_H_
#include <oscap.h>
#include "oval_agent_api.h"
#include "xccdf_policy.h"
#include "oscap_export.h"
typedef 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);
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);
OSCAP_API int oval_agent_resolve_variables(struct oval_agent_session * session, struct xccdf_value_binding_iterator *it);
OSCAP_API bool xccdf_policy_model_register_engine_oval(struct xccdf_policy_model * model, struct oval_agent_session * sess);
#endif
oval_agent_eval_rule
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_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:53
oval_agent_resolve_variables
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
xccdf_test_result_type_t
Test result.
Definition xccdf_benchmark.h:170
oscap.h
General OpenScap functions and types.
oval_agent_api.h
oval_agent_session
Definition oval_agent.c:54
xccdf_check_import_iterator
Check import iterator.
xccdf_policy_model
XCCDF policy model structure contains xccdf_benchmark as reference to Benchmark element in XML file a...
Definition xccdf_policy_priv.h:38
xccdf_policy
XCCDF policy structure is abstract (class) structure of Profile element from benchmark.
Definition xccdf_policy_priv.h:58
xccdf_policy.h
Open-scap XCCDF Policy library interface.