Loading...
Searching...
No Matches
xccdf_session.h
Go to the documentation of this file.
/*
* Copyright 2013 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 XCCDF_SESSION_H_
#define XCCDF_SESSION_H_
#include "xccdf_policy.h"
#include "oscap_download_cb.h"
#include "oscap_export.h"
struct xccdf_session;
typedef enum {
XCCDF_SESSION_LOAD_NONE = 0,
XCCDF_SESSION_LOAD_XCCDF = 1 << 0,
XCCDF_SESSION_LOAD_CPE = 1 << 1,
XCCDF_SESSION_LOAD_OVAL = 1 << 2,
XCCDF_SESSION_LOAD_CHECK_ENGINE_PLUGINS = 1 << 3,
XCCDF_SESSION_LOAD_ALL = XCCDF_SESSION_LOAD_XCCDF | XCCDF_SESSION_LOAD_CPE | XCCDF_SESSION_LOAD_OVAL | XCCDF_SESSION_LOAD_CHECK_ENGINE_PLUGINS
} xccdf_session_loading_flags_t;
OSCAP_API struct xccdf_session *xccdf_session_new(const char *filename);
OSCAP_API struct xccdf_session *xccdf_session_new_from_source(struct oscap_source *source);
OSCAP_API void xccdf_session_free(struct xccdf_session *session);
OSCAP_API void xccdf_session_result_reset(struct xccdf_session *session);
OSCAP_API const char *xccdf_session_get_filename(const struct xccdf_session *session);
OSCAP_API bool xccdf_session_is_sds(const struct xccdf_session *session);
OSCAP_DEPRECATED(OSCAP_API void xccdf_session_set_rule(struct xccdf_session *session, const char *rule));
OSCAP_API void xccdf_session_add_rule(struct xccdf_session *session, const char *rule);
OSCAP_API void xccdf_session_skip_rule(struct xccdf_session *session, const char *rule);
OSCAP_API void xccdf_session_set_validation(struct xccdf_session *session, bool validate, bool full_validation);
OSCAP_API void xccdf_session_set_signature_validation(struct xccdf_session *session, bool validate);
OSCAP_API void xccdf_session_set_signature_enforcement(struct xccdf_session *session, bool enforce);
OSCAP_API void xccdf_session_set_thin_results(struct xccdf_session *session, bool thin_result);
OSCAP_API void xccdf_session_set_datastream_id(struct xccdf_session *session, const char *datastream_id);
OSCAP_API const char *xccdf_session_get_datastream_id(struct xccdf_session *session);
OSCAP_API void xccdf_session_set_component_id(struct xccdf_session *session, const char *component_id);
OSCAP_API const char *xccdf_session_get_component_id(struct xccdf_session *session);
OSCAP_API void xccdf_session_set_benchmark_id(struct xccdf_session *session, const char *benchmark_id);
OSCAP_API const char *xccdf_session_get_benchmark_id(struct xccdf_session *session);
OSCAP_API const char *xccdf_session_get_result_id(struct xccdf_session *session);
OSCAP_API void xccdf_session_set_user_cpe(struct xccdf_session *session, const char *user_cpe);
OSCAP_API void xccdf_session_set_user_tailoring_file(struct xccdf_session *session, const char *user_tailoring_file);
OSCAP_API struct oscap_source *xccdf_session_get_user_tailoring_file(struct xccdf_session *session);
OSCAP_API void xccdf_session_set_user_tailoring_cid(struct xccdf_session *session, const char *user_tailoring_cid);
OSCAP_API OSCAP_DEPRECATED(void xccdf_session_set_remote_resources(struct xccdf_session *session, bool allowed, download_progress_calllback_t callback));
OSCAP_API void xccdf_session_configure_remote_resources(struct xccdf_session *session, bool allowed, const char *local_files, download_progress_calllback_t callback);
OSCAP_API void xccdf_session_set_loading_flags(struct xccdf_session *session, xccdf_session_loading_flags_t flags);
OSCAP_API void xccdf_session_set_custom_oval_files(struct xccdf_session *session, char **oval_filenames);
OSCAP_API void xccdf_session_set_custom_oval_eval_fn(struct xccdf_session *session, xccdf_policy_engine_eval_fn eval_fn);
OSCAP_API bool xccdf_session_set_product_cpe(struct xccdf_session *session, const char *product_cpe);
OSCAP_API void xccdf_session_set_without_sys_chars_export(struct xccdf_session *session, bool without_sys_chars);
OSCAP_API void xccdf_session_set_oval_results_export(struct xccdf_session *session, bool to_export_oval_results);
OSCAP_API void xccdf_session_set_check_engine_plugins_results_export(struct xccdf_session *session, bool to_export_results);
OSCAP_API void xccdf_session_set_oval_variables_export(struct xccdf_session *session, bool to_export_oval_variables);
OSCAP_API bool xccdf_session_set_xccdf_export(struct xccdf_session *session, const char *xccdf_file);
OSCAP_API bool xccdf_session_set_xccdf_stig_viewer_export(struct xccdf_session *session, const char *xccdf_stig_viewer_file);
OSCAP_API bool xccdf_session_set_arf_export(struct xccdf_session *session, const char *arf_file);
OSCAP_API bool xccdf_session_set_report_export(struct xccdf_session *session, const char *report_file);
OSCAP_API bool xccdf_session_set_profile_id(struct xccdf_session *session, const char *profile_id);
OSCAP_API int xccdf_session_set_profile_id_by_suffix(struct xccdf_session *session, const char *profile_suffix);
OSCAP_API const char *xccdf_session_get_profile_id(struct xccdf_session *session);
OSCAP_API struct ds_sds_index *xccdf_session_get_sds_idx(struct xccdf_session *session);
OSCAP_API int xccdf_session_load(struct xccdf_session *session);
OSCAP_API int xccdf_session_load_xccdf(struct xccdf_session *session);
OSCAP_API int xccdf_session_load_cpe(struct xccdf_session *session);
OSCAP_API int xccdf_session_load_oval(struct xccdf_session *session);
OSCAP_API int xccdf_session_load_check_engine_plugin2(struct xccdf_session *session, const char* plugin_name, bool quiet);
OSCAP_API int xccdf_session_load_check_engine_plugin(struct xccdf_session *session, const char* plugin_name);
OSCAP_API int xccdf_session_load_check_engine_plugins(struct xccdf_session *session);
OSCAP_API int xccdf_session_load_tailoring(struct xccdf_session *session);
OSCAP_API int xccdf_session_evaluate(struct xccdf_session *session);
OSCAP_API int xccdf_session_export_xccdf(struct xccdf_session *session);
OSCAP_API int xccdf_session_export_oval(struct xccdf_session *session);
OSCAP_API int xccdf_session_export_check_engine_plugins(struct xccdf_session *session);
OSCAP_API int xccdf_session_export_arf(struct xccdf_session *session);
OSCAP_API struct xccdf_policy_model *xccdf_session_get_policy_model(const struct xccdf_session *session);
OSCAP_API struct xccdf_policy *xccdf_session_get_xccdf_policy(const struct xccdf_session *session);
OSCAP_API float xccdf_session_get_base_score(const struct xccdf_session *session);
OSCAP_API unsigned int xccdf_session_get_oval_agents_count(const struct xccdf_session *session);
OSCAP_API unsigned int xccdf_session_get_cpe_oval_agents_count(const struct xccdf_session *session);
OSCAP_API bool xccdf_session_contains_fail_result(const struct xccdf_session *session);
struct xccdf_rule_result_iterator;
OSCAP_API struct xccdf_rule_result_iterator *xccdf_session_get_rule_results(const struct xccdf_session *session);
OSCAP_API int xccdf_session_remediate(struct xccdf_session *session);
OSCAP_API int xccdf_session_build_policy_from_testresult(struct xccdf_session *session, const char *testresult_id);
OSCAP_API int xccdf_session_add_report_from_source(struct xccdf_session *session, struct oscap_source *report_source);
OSCAP_API int xccdf_session_generate_guide(struct xccdf_session *session, const char *outfile);
OSCAP_API int xccdf_session_export_all(struct xccdf_session *session);
OSCAP_API void xccdf_session_set_reference_filter(struct xccdf_session *session, const char *reference_filter);
OSCAP_API void xccdf_session_set_show_rule_details(struct xccdf_session *session, bool show_rule_details);
#endif
OSCAP_DEPRECATED
#define OSCAP_DEPRECATED(func)
This macro will warn, when a deprecated function is used.
Definition oscap.h:50
xccdf_session::xccdf_session_evaluate
OSCAP_API int xccdf_session_evaluate(struct xccdf_session *session)
Evaluate XCCDF Policy.
Definition xccdf_session.c:1376
xccdf_session::xccdf_session_set_user_tailoring_file
OSCAP_API void xccdf_session_set_user_tailoring_file(struct xccdf_session *session, const char *user_tailoring_file)
Set path to custom Tailoring file for the session.
Definition xccdf_session.c:500
xccdf_session::xccdf_session_is_sds
OSCAP_API bool xccdf_session_is_sds(const struct xccdf_session *session)
Query if the session is based on Source DataStream.
Definition xccdf_session.c:407
xccdf_session::xccdf_session_loading_flags_t
xccdf_session_loading_flags_t
Loading flags for XCCDF sessionThe flags set which components will be loaded in XCCDF session.
Definition xccdf_session.h:50
xccdf_session::xccdf_session_get_oval_agents_count
OSCAP_API unsigned int xccdf_session_get_oval_agents_count(const struct xccdf_session *session)
Get count of OVAL agent sessions not used for CPE in the xccdf_session.
Definition xccdf_session.c:1868
xccdf_session::xccdf_session_set_custom_oval_eval_fn
OSCAP_API void xccdf_session_set_custom_oval_eval_fn(struct xccdf_session *session, xccdf_policy_engine_eval_fn eval_fn)
Set custom OVAL eval function to register with each OVAL session.
Definition xccdf_session.c:518
xccdf_session::xccdf_session_new
OSCAP_API struct xccdf_session * xccdf_session_new(const char *filename)
Costructor of xccdf_session.
Definition xccdf_session.c:187
xccdf_session::xccdf_session_load_xccdf
OSCAP_API int xccdf_session_load_xccdf(struct xccdf_session *session)
Load and parse XCCDF file.
Definition xccdf_session.c:875
xccdf_session::xccdf_session_get_filename
OSCAP_API const char * xccdf_session_get_filename(const struct xccdf_session *session)
Retrieves the filename the session was created with.
Definition xccdf_session.c:402
xccdf_session::xccdf_session_set_datastream_id
OSCAP_API void xccdf_session_set_datastream_id(struct xccdf_session *session, const char *datastream_id)
Set requested datastream_id for this session.
Definition xccdf_session.c:450
xccdf_session::xccdf_session_set_profile_id
OSCAP_API bool xccdf_session_set_profile_id(struct xccdf_session *session, const char *profile_id)
Select XCCDF Profile for evaluation.
Definition xccdf_session.c:578
xccdf_session::xccdf_session_set_benchmark_id
OSCAP_API void xccdf_session_set_benchmark_id(struct xccdf_session *session, const char *benchmark_id)
Sets requested benchmark_id for this session.
Definition xccdf_session.c:478
xccdf_session::xccdf_session_set_oval_variables_export
OSCAP_API void xccdf_session_set_oval_variables_export(struct xccdf_session *session, bool to_export_oval_variables)
Set whether the OVAL variables files shall be exported.
Definition xccdf_session.c:540
xccdf_session_export_all
OSCAP_API int xccdf_session_export_all(struct xccdf_session *session)
Export XCCDF results, ARF results and HTML report from the given XCCDF session based on values set in...
Definition xccdf_session.c:2026
xccdf_session::xccdf_session_contains_fail_result
OSCAP_API bool xccdf_session_contains_fail_result(const struct xccdf_session *session)
Query if the result of evaluation contains FAIL, ERROR, or UNKNOWN rule-result elements.
Definition xccdf_session.c:1895
xccdf_session::xccdf_session_export_xccdf
OSCAP_API int xccdf_session_export_xccdf(struct xccdf_session *session)
Export XCCDF file.
Definition xccdf_session.c:1545
xccdf_session::xccdf_session_set_xccdf_export
OSCAP_API bool xccdf_session_set_xccdf_export(struct xccdf_session *session, const char *xccdf_file)
Set where to export XCCDF file.
Definition xccdf_session.c:557
xccdf_session::xccdf_session_new_from_source
OSCAP_API struct xccdf_session * xccdf_session_new_from_source(struct oscap_source *source)
Costructor of xccdf_session.
Definition xccdf_session.c:139
xccdf_session::xccdf_session_get_profile_id
OSCAP_API const char * xccdf_session_get_profile_id(struct xccdf_session *session)
Retrieves ID of the profile that we will evaluate with, or NULL.
Definition xccdf_session.c:674
xccdf_session::xccdf_session_free
OSCAP_API void xccdf_session_free(struct xccdf_session *session)
Destructor of xccdf_session.
Definition xccdf_session.c:330
xccdf_session::xccdf_session_set_validation
OSCAP_API void xccdf_session_set_validation(struct xccdf_session *session, bool validate, bool full_validation)
Set XSD validation level to one of three possibilities:
Definition xccdf_session.c:429
xccdf_session::xccdf_session_set_signature_validation
OSCAP_API void xccdf_session_set_signature_validation(struct xccdf_session *session, bool validate)
Set XML signature validation.
Definition xccdf_session.c:435
xccdf_session::xccdf_session_set_loading_flags
OSCAP_API void xccdf_session_set_loading_flags(struct xccdf_session *session, xccdf_session_loading_flags_t flags)
Disable or allow loading of depending content (OVAL, SCE, CPE).
xccdf_session::xccdf_session_get_result_id
OSCAP_API const char * xccdf_session_get_result_id(struct xccdf_session *session)
Retrieves the result id.
Definition xccdf_session.c:489
xccdf_session::xccdf_session_set_custom_oval_files
OSCAP_API void xccdf_session_set_custom_oval_files(struct xccdf_session *session, char **oval_filenames)
Set custom oval files for this session.
Definition xccdf_session.c:1015
xccdf_session::xccdf_session_set_without_sys_chars_export
OSCAP_API void xccdf_session_set_without_sys_chars_export(struct xccdf_session *session, bool without_sys_chars)
Set whether the System Characteristics shall be exported in result files.
Definition xccdf_session.c:530
xccdf_session::xccdf_session_set_rule
OSCAP_API void xccdf_session_set_rule(struct xccdf_session *session, const char *rule)
Set rule for session - if rule is not NULL, session will use only this one rule.
Definition xccdf_session.c:412
xccdf_session::xccdf_session_set_check_engine_plugins_results_export
OSCAP_API void xccdf_session_set_check_engine_plugins_results_export(struct xccdf_session *session, bool to_export_results)
Set that check engine plugin's result files shall be exported.
Definition xccdf_session.c:545
xccdf_session::xccdf_session_get_datastream_id
OSCAP_API const char * xccdf_session_get_datastream_id(struct xccdf_session *session)
Retrieves the datastream id.
Definition xccdf_session.c:456
xccdf_session::xccdf_session_export_check_engine_plugins
OSCAP_API int xccdf_session_export_check_engine_plugins(struct xccdf_session *session)
Export results (if any) from any check engine plugins that are loaded.
Definition xccdf_session.c:1809
xccdf_session::xccdf_session_load_check_engine_plugin2
OSCAP_API int xccdf_session_load_check_engine_plugin2(struct xccdf_session *session, const char *plugin_name, bool quiet)
Load extra check engine from a plugin of given name to the XCCDF session.
Definition xccdf_session.c:1266
xccdf_session::xccdf_session_get_component_id
OSCAP_API const char * xccdf_session_get_component_id(struct xccdf_session *session)
Retrieves the component id.
Definition xccdf_session.c:470
xccdf_session_set_reference_filter
OSCAP_API void xccdf_session_set_reference_filter(struct xccdf_session *session, const char *reference_filter)
Set reference filter to the XCCDF session.
Definition xccdf_session.c:2075
xccdf_session::xccdf_session_set_thin_results
OSCAP_API void xccdf_session_set_thin_results(struct xccdf_session *session, bool thin_result)
Set whether the thin results override is enabled.
Definition xccdf_session.c:445
xccdf_session::xccdf_session_get_benchmark_id
OSCAP_API const char * xccdf_session_get_benchmark_id(struct xccdf_session *session)
Retrieves the benchmark_id.
Definition xccdf_session.c:484
xccdf_session::xccdf_session_set_arf_export
OSCAP_API bool xccdf_session_set_arf_export(struct xccdf_session *session, const char *arf_file)
Set where to export ARF file.
Definition xccdf_session.c:550
xccdf_session::xccdf_session_export_oval
OSCAP_API int xccdf_session_export_oval(struct xccdf_session *session)
Export OVAL (result and variables) files.
Definition xccdf_session.c:1756
xccdf_session::xccdf_session_set_xccdf_stig_viewer_export
OSCAP_API bool xccdf_session_set_xccdf_stig_viewer_export(struct xccdf_session *session, const char *xccdf_stig_viewer_file)
Set where to export STIG Viewer XCCDF file.
Definition xccdf_session.c:564
xccdf_session::xccdf_session_load
OSCAP_API int xccdf_session_load(struct xccdf_session *session)
Load and parse all XCCDF structures needed to evaluate this session.
Definition xccdf_session.c:733
xccdf_session::xccdf_session_remediate
OSCAP_API int xccdf_session_remediate(struct xccdf_session *session)
Run XCCDF Remediation.
Definition xccdf_session.c:1917
xccdf_session::xccdf_session_result_reset
OSCAP_API void xccdf_session_result_reset(struct xccdf_session *session)
Reset xccdf_session results.
Definition xccdf_session.c:386
xccdf_session::xccdf_session_get_sds_idx
OSCAP_API struct ds_sds_index * xccdf_session_get_sds_idx(struct xccdf_session *session)
Get Source DataStream index of the session.
Definition xccdf_session.c:725
xccdf_session::xccdf_session_get_base_score
OSCAP_API float xccdf_session_get_base_score(const struct xccdf_session *session)
Get the base score of the latest XCCDF evaluation in the session.
xccdf_session::xccdf_session_load_check_engine_plugins
OSCAP_API int xccdf_session_load_check_engine_plugins(struct xccdf_session *session)
Load extra check engines (if any are available) to the XCCDF session.
Definition xccdf_session.c:1292
xccdf_session::xccdf_session_get_cpe_oval_agents_count
OSCAP_API unsigned int xccdf_session_get_cpe_oval_agents_count(const struct xccdf_session *session)
Get count of OVAL agent sessions for CPE in the xccdf_session.
Definition xccdf_session.c:1877
xccdf_session::xccdf_session_export_arf
OSCAP_API int xccdf_session_export_arf(struct xccdf_session *session)
Export ARF (if enabled by xccdf_session_set_arf_export).
Definition xccdf_session.c:1833
xccdf_session_generate_guide
OSCAP_API int xccdf_session_generate_guide(struct xccdf_session *session, const char *outfile)
Generate HTML guide form a loaded XCCDF session.
Definition xccdf_session.c:1985
xccdf_session::xccdf_session_set_signature_enforcement
OSCAP_API void xccdf_session_set_signature_enforcement(struct xccdf_session *session, bool enforce)
Set XML signature enforcement.
Definition xccdf_session.c:440
xccdf_session::xccdf_session_set_profile_id_by_suffix
OSCAP_API int xccdf_session_set_profile_id_by_suffix(struct xccdf_session *session, const char *profile_suffix)
Select XCCDF Profile for evaluation with only profile suffix as input.
Definition xccdf_session.c:632
xccdf_session::xccdf_session_get_xccdf_policy
OSCAP_API struct xccdf_policy * xccdf_session_get_xccdf_policy(const struct xccdf_session *session)
Get xccdf_policy of the session.
Definition xccdf_session.c:1859
xccdf_session::xccdf_session_get_rule_results
OSCAP_API struct xccdf_rule_result_iterator * xccdf_session_get_rule_results(const struct xccdf_session *session)
Get rule results.
Definition xccdf_session.c:1912
xccdf_session::xccdf_session_set_component_id
OSCAP_API void xccdf_session_set_component_id(struct xccdf_session *session, const char *component_id)
Set requested component_id for this session.
Definition xccdf_session.c:464
xccdf_session::xccdf_session_set_user_cpe
OSCAP_API void xccdf_session_set_user_cpe(struct xccdf_session *session, const char *user_cpe)
Set path to custom CPE dictionary for the session.
Definition xccdf_session.c:494
xccdf_session::xccdf_session_load_cpe
OSCAP_API int xccdf_session_load_cpe(struct xccdf_session *session)
Load and parse CPE dictionaries.
Definition xccdf_session.c:930
xccdf_session_set_show_rule_details
OSCAP_API void xccdf_session_set_show_rule_details(struct xccdf_session *session, bool show_rule_details)
Enable or disable showing rule details such as description or rationale in command line output.
Definition xccdf_session.c:2080
xccdf_session::xccdf_session_load_oval
OSCAP_API int xccdf_session_load_oval(struct xccdf_session *session)
Load and parse OVAL definitions files for the XCCDF session.
Definition xccdf_session.c:1181
xccdf_session::xccdf_session_build_policy_from_testresult
OSCAP_API int xccdf_session_build_policy_from_testresult(struct xccdf_session *session, const char *testresult_id)
Load xccdf:TestResult to the session from file and prepare session for remediation.
Definition xccdf_session.c:1943
xccdf_session::xccdf_session_set_report_export
OSCAP_API bool xccdf_session_set_report_export(struct xccdf_session *session, const char *report_file)
Set where to export HTML Report file.
Definition xccdf_session.c:571
xccdf_session::xccdf_session_add_rule
OSCAP_API void xccdf_session_add_rule(struct xccdf_session *session, const char *rule)
Add specific rule for session - if at least one rule is added to the session, only the added rules wi...
Definition xccdf_session.c:419
xccdf_session::xccdf_session_set_oval_results_export
OSCAP_API void xccdf_session_set_oval_results_export(struct xccdf_session *session, bool to_export_oval_results)
Set whether the OVAL result files shall be exported.
Definition xccdf_session.c:535
xccdf_session::xccdf_session_add_report_from_source
OSCAP_API int xccdf_session_add_report_from_source(struct xccdf_session *session, struct oscap_source *report_source)
Load xccdf:TestResult to the session from oscap_source.
Definition xccdf_session.c:1973
xccdf_session::xccdf_session_load_tailoring
OSCAP_API int xccdf_session_load_tailoring(struct xccdf_session *session)
Load Tailoring file (if applicable) to the XCCDF session.
Definition xccdf_session.c:1327
xccdf_session::xccdf_session_set_product_cpe
OSCAP_API bool xccdf_session_set_product_cpe(struct xccdf_session *session, const char *product_cpe)
Set custom product CPE name.
Definition xccdf_session.c:523
xccdf_session::xccdf_session_skip_rule
OSCAP_API void xccdf_session_skip_rule(struct xccdf_session *session, const char *rule)
Skip rule during evaluation of the session.
Definition xccdf_session.c:424
xccdf_session::xccdf_session_get_policy_model
OSCAP_API struct xccdf_policy_model * xccdf_session_get_policy_model(const struct xccdf_session *session)
Get policy_model of the session.
xccdf_policy_engine_eval_fn
xccdf_test_result_type_t(* xccdf_policy_engine_eval_fn)(struct xccdf_policy *policy, const char *rule_id, const char *definition_id, const char *href_if, struct xccdf_value_binding_iterator *value_binding_it, struct xccdf_check_import_iterator *check_imports_it, void *user_data)
Type of function which implements OpenSCAP checking engine.
Definition xccdf_policy.h:103
ds_sds_index
Retrieves iterator over all components inside the <extended-components> element.
Definition sds_index.c:209
oscap_source
Definition oscap_source.c:66
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_rule_result_iterator
Override iterator.
xccdf_session
A structure encapsulating the context of XCCDF operations.
Definition xccdf_session.c:69
xccdf_session::without_sys_chars
bool without_sys_chars
Shall system characteristics be exported?
Definition xccdf_session.c:112
xccdf_session::arf_file
char * arf_file
Path to ARF file to export.
Definition xccdf_session.c:105
xccdf_session::user_cpe
char * user_cpe
Path to CPE dictionary required by user.
Definition xccdf_session.c:115
xccdf_session::full_validation
bool full_validation
True value indicates that every possible step will be validated by XSD.
Definition xccdf_session.c:121
xccdf_session::validate
bool validate
False value indicates to skip any XSD validation.
Definition xccdf_session.c:120
xccdf_session::product_cpe
char * product_cpe
CPE of scanner product.
Definition xccdf_session.c:98
xccdf_session::filename
const char * filename
File name of SCAP (SDS or XCCDF) file for this session.
Definition xccdf_session.c:70
xccdf_session::xccdf_stig_viewer_file
char * xccdf_stig_viewer_file
Path to STIG Viewer XCCDF file to export.
Definition xccdf_session.c:107
xccdf_session::profile_id
char * profile_id
Last selected profile.
Definition xccdf_session.c:79
xccdf_session::xccdf_file
char * xccdf_file
Path to XCCDF file to export.
Definition xccdf_session.c:106
xccdf_session::report_file
char * report_file
Path to HTML file to export.
Definition xccdf_session.c:108
xccdf_session::source
struct oscap_source * source
Main source assigned with the main file (SDS or XCCDF).
Definition xccdf_session.c:74
xccdf_session::session
struct ds_sds_session * session
SDS Registry abstract structure.
Definition xccdf_session.c:85
xccdf_session::show_rule_details
bool show_rule_details
True value indicates that rule details will be shown.
Definition xccdf_session.c:124
xccdf_policy.h
Open-scap XCCDF Policy library interface.