31#include "common/reference_priv.h"
32#include "common/list.h"
33#include "common/util.h"
34#include "common/text_priv.h"
42 bool prohibit_changes:1;
52 bool prohibit_changes:1;
124 bool value_given : 1;
125 bool defval_given : 1;
126 bool must_match_given : 1;
179 char *benchmark_ref_version;
185 char *version_update;
294 bool def_multicheck:1;
363 bool authenticated : 1;
406 char *parent_context;
430extern const size_t XCCDF_NUMERIC_SIZE;
431extern const char *XCCDF_NUMERIC_FORMAT;
434void xccdf_item_release(
struct xccdf_item *item);
435void xccdf_item_print(
struct xccdf_item *item,
int depth);
436void xccdf_item_dump(
struct xccdf_item *item,
int depth);
438bool xccdf_benchmark_parse(
struct xccdf_item *benchmark, xmlTextReaderPtr reader);
440int xccdf_benchmark_include_tailored_profiles(
struct xccdf_benchmark *benchmark);
443bool xccdf_benchmark_unregister_item(
struct xccdf_item *item);
444bool xccdf_benchmark_rename_item(
struct xccdf_item *item,
const char *newid);
455void xccdf_profile_dump(
struct xccdf_item *prof,
int depth);
457bool xccdf_item_process_attributes(
struct xccdf_item *item, xmlTextReaderPtr reader);
458bool xccdf_item_process_element(
struct xccdf_item *item, xmlTextReaderPtr reader);
460bool xccdf_content_parse(xmlTextReaderPtr reader,
struct xccdf_item *parent);
463void xccdf_group_dump(
struct xccdf_item *group,
int depth);
467void xccdf_rule_dump(
struct xccdf_item *rule,
int depth);
473void xccdf_value_dump(
struct xccdf_item *value,
int depth);
475struct xccdf_notice *xccdf_notice_new_parse(xmlTextReaderPtr reader);
476void xccdf_notice_dump(
struct xccdf_notice *notice,
int depth);
478void xccdf_status_dump(
struct xccdf_status *status,
int depth);
480struct xccdf_model *xccdf_model_new_xml(xmlTextReaderPtr reader);
482void xccdf_cstring_dump(
const char *data,
int depth);
483void xccdf_result_dump(
struct xccdf_result *res,
int depth);
484struct xccdf_result *xccdf_result_new_parse(xmlTextReaderPtr reader);
486int xccdf_result_set_start_time_current(
struct xccdf_result *item);
487int xccdf_result_set_end_time_current(
struct xccdf_result *item);
492struct xccdf_check *xccdf_check_parse(xmlTextReaderPtr reader);
493void xccdf_check_dump(
struct xccdf_check *check,
int depth);
496struct xccdf_ident *xccdf_ident_parse(xmlTextReaderPtr reader);
497void xccdf_ident_dump(
struct xccdf_ident *ident,
int depth);
498struct xccdf_fix *xccdf_fix_parse(xmlTextReaderPtr reader);
499struct xccdf_fixtext *xccdf_fixtext_parse(xmlTextReaderPtr reader);
501struct xccdf_setvalue *xccdf_setvalue_new_parse(xmlTextReaderPtr reader);
504struct xccdf_warning *xccdf_warning_new_parse(xmlTextReaderPtr reader);
522void xccdf_texts_to_dom(
struct oscap_text_iterator *texts, xmlNode *parent,
const char *elname);
524void xccdf_item_add_applicable_platform(
struct xccdf_item *item, xmlTextReaderPtr reader);
xccdf_interface_hint_t
Interface hint.
Definition: xccdf_benchmark.h:74
xccdf_message_severity_t
Severity of an xccdf_message.
Definition: xccdf_benchmark.h:128
xccdf_type_t
Type of an XCCDF object.
Definition: xccdf_benchmark.h:57
xccdf_level_t
XCCDF error, complexity, disruption, or severity level.
Definition: xccdf_benchmark.h:118
xccdf_operator_t
Operator to be applied on an xccdf_value.
Definition: xccdf_benchmark.h:101
xccdf_strategy_t
Fix strategy type.
Definition: xccdf_benchmark.h:157
xccdf_role_t
XCCDF role.
Definition: xccdf_benchmark.h:136
xccdf_warning_category_t
Category of xccdf_warning.
Definition: xccdf_benchmark.h:143
float xccdf_numeric
Type of a numerical content for a XCCDF value.
Definition: xccdf_benchmark.h:198
xccdf_value_type_t
Type of an xccdf_value.
Definition: xccdf_benchmark.h:94
xccdf_test_result_type_t
Test result.
Definition: xccdf_benchmark.h:170
xccdf_status_type_t
Status of an XCCDF item.
Definition: xccdf_benchmark.h:84
xccdf_bool_operator_t
Boolean operators for logical expressions.
Definition: xccdf_benchmark.h:112
Structure representing a CPE dictionary.
Definition: cpedict_priv.h:139
CPE platform specification.
Definition: cpelang_priv.c:63
Define mapping between symbolic constant and its string representation.
Definition: util.h:296
Internationalized string iterator.
oscap_text traits
Definition: text_priv.h:38
Representation of internationalizable character strings.
Definition: text_priv.h:46
Top level XCCDF structure containing profiles, rules, values and results.
XCCDF check content reference.
Definition: item.h:303
XCCDF check export.
Definition: item.h:314
XCCDF check import.
Definition: item.h:308
XCCDF simple or complex check.
Definition: item.h:285
XCCDF automatic fix.
Definition: item.h:324
XCCDF textual fix instructions.
Definition: item.h:335
XCCDF rule ident URI.
Definition: item.h:280
XCCDF identity.
Definition: item.h:361
XCCDF instance.
Definition: item.h:404
A base class for XCCDF items.
Definition: item.h:220
XCCDF message.
Definition: item.h:383
XCCDF scoring model.
Definition: item.h:248
XCCDF benchmark legal notice.
Definition: item.h:238
XCCDF override.
Definition: item.h:375
XCCDF target fact.
Definition: item.h:410
XCCDF note for given rule in context of given profile.
Definition: item.h:319
XCCDF refine rule option used in the profile.
Definition: item.h:259
XCCDF refine value option used in the profile.
Definition: item.h:268
Actual results of running a XCCDF test or profile.
XCCDF rule result.
Definition: item.h:344
XCCDF score.
Definition: item.h:369
XCCDF select option usen in the profile.
Definition: item.h:253
XCCDF set value option used in the profile.
Definition: item.h:275
XCCDF item status.
Definition: item.h:243
Stores content from xccdf:Tailoring element which can be loaded from a separate file.
Definition: item.h:171
XCCDF target fact.
Definition: item.h:388
Can be either <target-id-ref> or some other element.
Definition: item.h:394
Definition: XCCDF/elements.c:42
XCCDF warning.
Definition: item.h:233
Open-scap XCCDF library interface.