31 #include "common/reference_priv.h"
32 #include "common/list.h"
33 #include "common/util.h"
34 #include "common/text_priv.h"
43 bool prohibit_changes:1;
53 bool prohibit_changes:1;
125 bool value_given : 1;
126 bool defval_given : 1;
127 bool must_match_given : 1;
177 char *benchmark_ref_version;
183 char *version_update;
292 bool def_multicheck:1;
361 bool authenticated : 1;
404 char *parent_context;
428 extern const size_t XCCDF_NUMERIC_SIZE;
429 extern const char *XCCDF_NUMERIC_FORMAT;
432 void xccdf_item_release(
struct xccdf_item *item);
433 void xccdf_item_print(
struct xccdf_item *item,
int depth);
434 void xccdf_item_dump(
struct xccdf_item *item,
int depth);
436 bool xccdf_benchmark_parse(
struct xccdf_item *benchmark, xmlTextReaderPtr reader);
440 bool xccdf_benchmark_unregister_item(
struct xccdf_item *item);
441 bool xccdf_benchmark_rename_item(
struct xccdf_item *item,
const char *newid);
452 void xccdf_profile_dump(
struct xccdf_item *prof,
int depth);
454 bool xccdf_item_process_attributes(
struct xccdf_item *item, xmlTextReaderPtr reader);
455 bool xccdf_item_process_element(
struct xccdf_item *item, xmlTextReaderPtr reader);
457 bool xccdf_content_parse(xmlTextReaderPtr reader,
struct xccdf_item *parent);
460 void xccdf_group_dump(
struct xccdf_item *group,
int depth);
464 void xccdf_rule_dump(
struct xccdf_item *rule,
int depth);
470 void xccdf_value_dump(
struct xccdf_item *value,
int depth);
472 struct xccdf_notice *xccdf_notice_new_parse(xmlTextReaderPtr reader);
473 void xccdf_notice_dump(
struct xccdf_notice *notice,
int depth);
475 void xccdf_status_dump(
struct xccdf_status *status,
int depth);
477 struct xccdf_model *xccdf_model_new_xml(xmlTextReaderPtr reader);
479 void xccdf_cstring_dump(
const char *data,
int depth);
480 void xccdf_result_dump(
struct xccdf_result *res,
int depth);
481 struct xccdf_result *xccdf_result_new_parse(xmlTextReaderPtr reader);
483 int xccdf_result_set_start_time_current(
struct xccdf_result *item);
484 int xccdf_result_set_end_time_current(
struct xccdf_result *item);
487 struct xccdf_check *xccdf_check_parse(xmlTextReaderPtr reader);
488 void xccdf_check_dump(
struct xccdf_check *check,
int depth);
491 struct xccdf_ident *xccdf_ident_parse(xmlTextReaderPtr reader);
492 void xccdf_ident_dump(
struct xccdf_ident *ident,
int depth);
493 struct xccdf_fix *xccdf_fix_parse(xmlTextReaderPtr reader);
494 struct xccdf_fixtext *xccdf_fixtext_parse(xmlTextReaderPtr reader);
496 struct xccdf_setvalue *xccdf_setvalue_new_parse(xmlTextReaderPtr reader);
499 struct xccdf_warning *xccdf_warning_new_parse(xmlTextReaderPtr reader);
517 void xccdf_texts_to_dom(
struct oscap_text_iterator *texts, xmlNode *parent,
const char *elname);