00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00048 #ifndef XCCDF_H_
00049 #define XCCDF_H_
00050
00051 #include <stdbool.h>
00052 #include <time.h>
00053 #include "oscap.h"
00054
00055
00056
00057
00058
00067 typedef enum {
00068 XCCDF_BENCHMARK = 0x0100,
00069 XCCDF_PROFILE = 0x0200,
00070 XCCDF_RESULT = 0x0400,
00071 XCCDF_RULE = 0x1000,
00072 XCCDF_GROUP = 0x2000,
00073 XCCDF_VALUE = 0x4000,
00074
00075 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00077 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00079 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00080 } xccdf_type_t;
00081
00083 typedef enum {
00084 XCCDF_IFACE_HINT_NONE,
00085 XCCDF_IFACE_HINT_CHOICE,
00086 XCCDF_IFACE_HINT_TEXTLINE,
00087 XCCDF_IFACE_HINT_TEXT,
00088 XCCDF_IFACE_HINT_DATE,
00089 XCCDF_IFACE_HINT_DATETIME,
00090 } xccdf_interface_hint_t;
00091
00093 typedef enum {
00094 XCCDF_STATUS_NOT_SPECIFIED,
00095 XCCDF_STATUS_ACCEPTED,
00096 XCCDF_STATUS_DEPRECATED,
00097 XCCDF_STATUS_DRAFT,
00098 XCCDF_STATUS_INCOMPLETE,
00099 XCCDF_STATUS_INTERIM
00100 } xccdf_status_type_t;
00101
00103 typedef enum {
00104 XCCDF_TYPE_NUMBER = 1,
00105 XCCDF_TYPE_STRING,
00106 XCCDF_TYPE_BOOLEAN,
00107 } xccdf_value_type_t;
00108
00110 typedef enum {
00111 XCCDF_OPERATOR_EQUALS = 1,
00112 XCCDF_OPERATOR_NOT_EQUAL,
00113 XCCDF_OPERATOR_GREATER,
00114 XCCDF_OPERATOR_GREATER_EQUAL,
00115 XCCDF_OPERATOR_LESS,
00116 XCCDF_OPERATOR_LESS_EQUAL,
00117 XCCDF_OPERATOR_PATTERN_MATCH
00118 } xccdf_operator_t;
00119
00121 typedef enum {
00122 XCCDF_OPERATOR_AND = 0x0002,
00123 XCCDF_OPERATOR_OR = 0x0003,
00124 XCCDF_OPERATOR_NOT = 0x0100,
00125 XCCDF_OPERATOR_NAND = XCCDF_OPERATOR_AND | XCCDF_OPERATOR_NOT,
00126 XCCDF_OPERATOR_NOR = XCCDF_OPERATOR_OR | XCCDF_OPERATOR_NOT,
00127 XCCDF_OPERATOR_MASK = 0x00ff
00128 } xccdf_bool_operator_t;
00129
00131 typedef enum {
00132 XCCDF_UNKNOWN = 1,
00133 XCCDF_INFO,
00134 XCCDF_LOW,
00135 XCCDF_MEDIUM,
00136 XCCDF_HIGH
00137 } xccdf_level_t;
00138
00140 typedef enum {
00141 XCCDF_MSG_INFO = XCCDF_INFO,
00142 XCCDF_MSG_WARNING = XCCDF_LOW,
00143 XCCDF_MSG_ERROR = XCCDF_HIGH,
00144 } xccdf_message_severity_t;
00145
00147 typedef enum {
00148 XCCDF_ROLE_FULL = 1,
00149 XCCDF_ROLE_UNSCORED,
00150 XCCDF_ROLE_UNCHECKED
00151 } xccdf_role_t;
00152
00154 typedef enum {
00155 XCCDF_WARNING_GENERAL = 1,
00156 XCCDF_WARNING_FUNCTIONALITY,
00157 XCCDF_WARNING_PERFORMANCE,
00158 XCCDF_WARNING_HARDWARE,
00159 XCCDF_WARNING_LEGAL,
00160 XCCDF_WARNING_REGULATORY,
00161 XCCDF_WARNING_MANAGEMENT,
00162 XCCDF_WARNING_AUDIT,
00163 XCCDF_WARNING_DEPENDENCY
00164 } xccdf_warning_category_t;
00165
00167 typedef enum {
00168 XCCDF_STRATEGY_UNKNOWN,
00169 XCCDF_STRATEGY_CONFIGURE,
00170 XCCDF_STRATEGY_DISABLE,
00171 XCCDF_STRATEGY_ENABLE,
00172 XCCDF_STRATEGY_PATCH,
00173 XCCDF_STRATEGY_POLICY,
00174 XCCDF_STRATEGY_RESTRICT,
00175 XCCDF_STRATEGY_UPDATE,
00176 XCCDF_STRATEGY_COMBINATION
00177 } xccdf_strategy_t;
00178
00180 typedef enum {
00181 XCCDF_RESULT_PASS = 1,
00182 XCCDF_RESULT_FAIL,
00183 XCCDF_RESULT_ERROR,
00184 XCCDF_RESULT_UNKNOWN,
00185 XCCDF_RESULT_NOT_APPLICABLE,
00186 XCCDF_RESULT_NOT_CHECKED,
00187 XCCDF_RESULT_NOT_SELECTED,
00188 XCCDF_RESULT_INFORMATIONAL,
00189 XCCDF_RESULT_FIXED
00190 } xccdf_test_result_type_t;
00191
00192
00193
00194
00195
00199 typedef float xccdf_numeric;
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00230 struct xccdf_item;
00235 struct xccdf_benchmark;
00236
00241 struct xccdf_profile;
00242
00247 struct xccdf_rule;
00248
00253 struct xccdf_group;
00254
00259 struct xccdf_value;
00260
00265 struct xccdf_result;
00266
00267
00268
00269
00270
00275 struct xccdf_notice;
00276
00281 struct xccdf_status;
00282
00287 struct xccdf_model;
00288
00292 struct xccdf_warning;
00293
00298 struct xccdf_select;
00299
00304 struct xccdf_setvalue;
00305
00310 struct xccdf_refine_value;
00315 struct xccdf_refine_rule;
00316
00321 struct xccdf_ident;
00322
00327 struct xccdf_check;
00332 struct xccdf_check_content_ref;
00333
00338 struct xccdf_profile_note;
00339
00345 struct xccdf_check_import;
00346
00352 struct xccdf_check_export;
00353
00359 struct xccdf_fix;
00360
00366 struct xccdf_fixtext;
00367
00372 struct xccdf_reference;
00373
00374
00379 struct xccdf_identity;
00380
00385 struct xccdf_instance;
00386
00391 struct xccdf_message;
00392
00397 struct xccdf_override;
00398
00403 struct xccdf_rule_result;
00404
00409 struct xccdf_score;
00410
00415 struct xccdf_target_fact;
00416
00417
00418
00419
00420
00425 struct xccdf_item_iterator;
00427 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
00429 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
00431 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
00432
00437 struct xccdf_notice_iterator;
00439 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
00441 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
00443 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
00444
00449 struct xccdf_status_iterator;
00451 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
00453 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
00455 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
00456
00461 struct xccdf_reference_iterator;
00463 struct xccdf_reference *xccdf_reference_iterator_next(struct xccdf_reference_iterator *it);
00465 bool xccdf_reference_iterator_has_more(struct xccdf_reference_iterator *it);
00467 void xccdf_reference_iterator_free(struct xccdf_reference_iterator *it);
00468
00473 struct xccdf_model_iterator;
00475 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
00477 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
00479 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
00480
00485 struct xccdf_result_iterator;
00487 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
00489 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
00491 void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
00492
00497 struct xccdf_profile_iterator;
00499 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
00501 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
00503 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
00504
00509 struct xccdf_select_iterator;
00511 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
00513 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
00515 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
00516
00521 struct xccdf_setvalue_iterator;
00523 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it);
00525 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it);
00527 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
00528
00533 struct xccdf_refine_value_iterator;
00535 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
00537 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
00539 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
00540
00545 struct xccdf_refine_rule_iterator;
00547 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
00549 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
00551 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
00552
00557 struct xccdf_ident_iterator;
00559 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
00561 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
00563 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
00564
00569 struct xccdf_check_iterator;
00571 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
00573 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
00575 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
00576
00581 struct xccdf_check_content_ref_iterator;
00583 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
00585 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
00587 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
00588
00593 struct xccdf_profile_note_iterator;
00595 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
00597 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
00599 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
00600
00605 struct xccdf_check_import_iterator;
00607 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
00609 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
00611 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
00612
00617 struct xccdf_check_export_iterator;
00619 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
00621 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
00623 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
00624
00629 struct xccdf_fix_iterator;
00631 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
00633 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
00635 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
00636
00641 struct xccdf_fixtext_iterator;
00643 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
00645 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
00647 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
00648
00653 struct xccdf_warning_iterator;
00655 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it);
00657 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
00659 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
00660
00665 struct xccdf_instance_iterator;
00667 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it);
00669 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it);
00671 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
00672
00677 struct xccdf_message_iterator;
00679 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it);
00681 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
00683 void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
00684
00689 struct xccdf_override_iterator;
00691 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it);
00693 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it);
00695 void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
00696
00701
00702
00703
00704
00706 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
00708 const char *xccdf_item_get_id(const struct xccdf_item *item);
00710 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
00712 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
00714 const char *xccdf_item_get_version(const struct xccdf_item *item);
00716 const char *xccdf_item_get_extends(const struct xccdf_item *item);
00718 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
00720 struct xccdf_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
00722 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
00724 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
00726 xccdf_status_type_t xccdf_item_get_current_status(const struct xccdf_item *item);
00728 bool xccdf_item_get_hidden(const struct xccdf_item *item);
00730 bool xccdf_item_get_selected(const struct xccdf_item *item);
00732 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
00734 bool xccdf_item_get_abstract(const struct xccdf_item *item);
00736 bool xccdf_item_get_interactive(const struct xccdf_item *item);
00738 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
00740 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
00741
00743 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
00745 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
00747 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
00749 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
00751 bool xccdf_item_add_reference(struct xccdf_item *item, struct xccdf_reference *newval);
00753 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
00755 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
00757 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
00758
00764 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
00765
00772 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
00773
00780 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
00781
00788 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
00789
00796 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
00797
00804 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
00805
00812 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
00813
00814
00816 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
00818 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
00820 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
00822 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
00824 bool xccdf_item_set_version_time(struct xccdf_item *item, time_t newval);
00826 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
00827
00828
00829
00830
00831
00839 struct xccdf_benchmark *xccdf_benchmark_parse_xml(const char *filename);
00840
00842 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
00844 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
00846 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
00848 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
00850 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
00852 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
00854 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
00856 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
00858 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
00860 const char *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
00862 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
00864 struct xccdf_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
00866 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
00868 xccdf_status_type_t xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
00870 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
00872 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
00873
00875 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
00877 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
00878
00880 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
00882 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
00884 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct xccdf_reference *newval);
00886 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
00888 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
00889
00897 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
00898
00906 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
00907
00913 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
00914
00920 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
00921
00927 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
00928
00936 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
00937
00943 const char * xccdf_benchmark_supported(void);
00944
00946 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
00948 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
00950 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, time_t newval);
00952 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
00953
00954
00955
00956
00957
00959 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
00961 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
00963 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
00965 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
00967 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
00969 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
00971 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
00973 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
00975 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
00977 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
00979 struct xccdf_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
00981 xccdf_status_type_t xccdf_profile_get_status_current(const struct xccdf_profile *profile);
00983
00985 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
00987 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
00989 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
00991 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
00993 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
00994
00996 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
00998 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
01000 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct xccdf_reference *newval);
01002 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
01004 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
01006 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
01007
01008
01009
01010
01011
01017 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01018
01020 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01022 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
01024 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
01026 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
01028 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
01030 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
01032 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
01034 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
01036 struct xccdf_check *xccdf_rule_get_check(const struct xccdf_rule *rule);
01038 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
01040 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
01042 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
01044 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
01046 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
01048 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
01050 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
01052 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
01054 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
01056 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
01058 struct xccdf_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
01060 xccdf_status_type_t xccdf_rule_get_status_current(const struct xccdf_rule *rule);
01062 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
01064 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
01066 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
01068 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
01070 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
01072 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
01074 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
01076 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
01078 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
01080 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
01082 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
01083
01085 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
01087 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
01089 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
01091 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
01093 bool xccdf_rule_set_version_time(struct xccdf_rule *item, time_t newval);
01095 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
01096
01098 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
01100 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
01102 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
01104 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
01106 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct xccdf_reference *newval);
01108 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
01110 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
01112 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
01113
01115 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
01117 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
01119 bool xccdf_profile_set_version_time(struct xccdf_profile *item, time_t newval);
01121 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
01122
01123
01124
01125
01126
01127
01133 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
01134
01142 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *benchmark);
01143
01145 const char *xccdf_group_get_id(const struct xccdf_group *group);
01147 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
01149 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
01151 const char *xccdf_group_get_version(const struct xccdf_group *group);
01153 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
01155 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
01157 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
01159 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
01161 float xccdf_group_get_weight(const struct xccdf_group *group);
01163 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
01165 const char *xccdf_group_get_extends(const struct xccdf_group *group);
01167 bool xccdf_group_get_abstract(const struct xccdf_group *group);
01169 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
01171 bool xccdf_group_get_hidden(const struct xccdf_group *group);
01173 bool xccdf_group_get_selected(const struct xccdf_group *group);
01175 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
01177 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
01179 struct xccdf_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
01181 xccdf_status_type_t xccdf_group_get_status_current(const struct xccdf_group *group);
01183 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
01185 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
01187 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
01188
01190 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
01192 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
01194 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
01196 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
01198 bool xccdf_group_set_version_time(struct xccdf_group *item, time_t newval);
01200 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
01201
01203 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
01205 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
01207 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
01209 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
01211 bool xccdf_group_add_reference(struct xccdf_group *item, struct xccdf_reference *newval);
01213 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
01215 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
01217 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
01218
01219
01220
01221
01222
01224 const char *xccdf_value_get_id(const struct xccdf_value *value);
01226 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
01228 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
01230 const char *xccdf_value_get_extends(const struct xccdf_value *value);
01232 bool xccdf_value_get_abstract(const struct xccdf_value *value);
01234 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
01236 bool xccdf_value_get_hidden(const struct xccdf_value *value);
01238 bool xccdf_value_get_interactive(const struct xccdf_value *value);
01240 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
01242 struct xccdf_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
01244 xccdf_status_type_t xccdf_value_get_status_current(const struct xccdf_value *value);
01246 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
01248 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
01250 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
01252 const char *xccdf_value_get_selector(const struct xccdf_value *value);
01254 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
01255
01257 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
01259 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
01261 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
01263 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
01265 bool xccdf_value_set_version_time(struct xccdf_value *item, time_t newval);
01267 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
01268
01270 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
01272 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
01274 bool xccdf_value_add_reference(struct xccdf_value *item, struct xccdf_reference *newval);
01276 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
01278 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
01280 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
01281
01282
01288 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
01289
01296 bool xccdf_value_get_set_selector(struct xccdf_item *value, const char *selector);
01297
01304 const char *xccdf_value_get_value_string(const struct xccdf_value *value);
01305
01312 xccdf_numeric xccdf_value_get_value_number(const struct xccdf_value *value);
01313
01321 bool xccdf_value_get_value_boolean(const struct xccdf_value *value);
01322
01329 const char *xccdf_value_get_defval_string(const struct xccdf_value *value);
01330
01337 xccdf_numeric xccdf_value_get_defval_number(const struct xccdf_value *value);
01338
01346 bool xccdf_value_get_defval_boolean(const struct xccdf_value *value);
01347
01353 xccdf_numeric xccdf_value_get_lower_bound(const struct xccdf_value *value);
01354
01360 xccdf_numeric xccdf_value_get_upper_bound(const struct xccdf_value *value);
01361
01367 const char *xccdf_value_get_match(const struct xccdf_value *value);
01368
01375 bool xccdf_value_get_must_match(const struct xccdf_value *value);
01376
01377
01378
01379
01380
01381
01382
01383
01388
01389
01390
01391
01392
01393
01395 time_t xccdf_status_get_date(const struct xccdf_status *status);
01397 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
01399 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
01401 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
01403 const char *xccdf_model_get_system(const struct xccdf_model *model);
01405
01407 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
01409 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
01411 const char *xccdf_check_get_id(const struct xccdf_check *check);
01412
01418 bool xccdf_check_get_complex(const struct xccdf_check *check);
01419
01425 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
01427 const char *xccdf_check_get_system(const struct xccdf_check *check);
01429 const char *xccdf_check_get_selector(const struct xccdf_check *check);
01431 const char *xccdf_check_get_content(const struct xccdf_check *check);
01433 struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check);
01434
01440 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
01442 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
01444 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
01446 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
01448 const char *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
01450 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
01452 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
01454 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
01456 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
01458 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
01460 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
01462 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
01464 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
01466 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
01468 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
01470 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
01472 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
01474 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
01476 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
01478 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
01480 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
01482 struct xccdf_fix *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
01483
01484
01485
01487 const char *xccdf_value_get_version(const struct xccdf_value *value);
01489 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
01491 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
01493 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
01495 time_t xccdf_value_get_version_time(const struct xccdf_value *value);
01497 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
01499 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
01501 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
01502
01504 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
01506 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
01508 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
01510 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
01512 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
01514 time_t xccdf_item_get_version_time(const struct xccdf_item *item);
01516 float xccdf_item_get_weight(const struct xccdf_item *item);
01518 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
01520 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
01521
01523 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
01525 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
01527 time_t xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
01528
01530 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
01532 time_t xccdf_profile_get_version_time(const struct xccdf_profile *profile);
01534 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
01535
01537 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
01539 time_t xccdf_rule_get_version_time(const struct xccdf_rule *rule);
01541 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
01542
01544 time_t xccdf_group_get_version_time(const struct xccdf_group *group);
01546 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
01548 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
01549
01551 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
01553 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
01555 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
01557 const char *xccdf_fixtext_get_content(const struct xccdf_fixtext *fixtext);
01558
01560 bool xccdf_reference_get_override(const struct xccdf_reference *reference);
01562 const char *xccdf_reference_get_href(const struct xccdf_reference *reference);
01564 const char *xccdf_reference_get_content(const struct xccdf_reference *reference);
01566 const char *xccdf_reference_get_lang(const struct xccdf_reference *reference);
01567
01568
01570 bool xccdf_select_get_selected(const struct xccdf_select *select);
01572 const char *xccdf_select_get_item(const struct xccdf_select *select);
01574 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
01575
01577 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
01579 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
01580
01582 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
01584 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
01586 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
01588 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
01590 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
01591
01593 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
01595 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
01597 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
01599 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
01600
01602 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
01604 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
01605
01610 void xccdf_cleanup(void);
01611
01612
01613
01614
01615
01616
01623 struct xccdf_benchmark *xccdf_benchmark_create(const char *id);
01624
01630 struct xccdf_group *xccdf_benchmark_append_new_group(const struct xccdf_benchmark *, const char *id);
01631
01637 struct xccdf_value *xccdf_benchmark_append_new_value(const struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
01638
01644 struct xccdf_rule *xccdf_benchmark_append_new_rule(const struct xccdf_benchmark *, const char *id);
01645
01646
01647
01648
01649
01650
01652 struct xccdf_result *xccdf_result_new(void);
01654 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
01656 void xccdf_result_free(struct xccdf_result *item);
01658 const char *xccdf_result_get_id(const struct xccdf_result *item);
01660 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
01662 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
01664 const char *xccdf_result_get_version(const struct xccdf_result *item);
01666 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
01668 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
01670 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
01672 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
01674 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
01676 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
01678 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
01680 const char *xccdf_result_get_profile(const struct xccdf_result *item);
01682 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
01684 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
01686 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
01688 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
01690 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
01692 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
01694 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
01696 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
01698 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
01700 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
01702 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
01704 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
01706 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
01708 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
01710 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
01712 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
01714 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
01716 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
01718 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
01720 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
01722 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
01723
01725 struct xccdf_rule_result *xccdf_rule_result_new(void);
01727 void xccdf_rule_result_free(struct xccdf_rule_result *rr);
01729 time_t xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
01731 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, time_t newval);
01733 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
01735 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
01737 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
01739 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
01741 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
01743 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
01745 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
01747 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
01749 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
01751 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
01753 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
01755 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
01757 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
01759 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
01761 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
01763 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
01765 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
01767 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
01769 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
01771 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
01773 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
01775 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
01777 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
01779 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
01780
01782 struct xccdf_identity *xccdf_identity_new(void);
01784 void xccdf_identity_free(struct xccdf_identity *identity);
01786 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
01788 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
01790 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
01792 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
01794 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
01796 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
01797
01799 struct xccdf_score *xccdf_score_new(void);
01801 void xccdf_score_free(struct xccdf_score *score);
01803 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
01805 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
01807 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
01809 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
01811 const char *xccdf_score_get_system(const struct xccdf_score *item);
01813 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
01814
01816 struct xccdf_override *xccdf_override_new(void);
01818 void xccdf_override_free(struct xccdf_override *oride);
01820 time_t xccdf_override_get_time(const struct xccdf_override *item);
01822 bool xccdf_override_set_time(struct xccdf_override *obj, time_t newval);
01824 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
01826 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
01828 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
01830 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
01832 const char *xccdf_override_get_authority(const struct xccdf_override *item);
01834 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
01836 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
01838 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
01839
01841 struct xccdf_message *xccdf_message_new(void);
01843 void xccdf_message_free(struct xccdf_message *msg);
01845 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
01847 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
01849 const char *xccdf_message_get_content(const struct xccdf_message *item);
01851 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
01852
01854 struct xccdf_target_fact *xccdf_target_fact_new(void);
01856 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
01858 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
01860 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
01862 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
01864 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
01866 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
01868 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
01870 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
01871
01873 struct xccdf_instance *xccdf_instance_new(void);
01875 void xccdf_instance_free(struct xccdf_instance *inst);
01877 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
01879 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
01881 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
01883 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
01885 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
01887 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
01888
01889
01890 struct xccdf_select *xccdf_select_new(void);
01891 void xccdf_item_free(struct xccdf_item *item);
01892 void xccdf_select_free(struct xccdf_select *sel);
01893 void xccdf_refine_rule_free(struct xccdf_refine_rule *rr);
01894 void xccdf_refine_value_free(struct xccdf_refine_value *rv);
01895 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
01896 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
01897 void xccdf_select_set_selected(struct xccdf_select *select, bool selected);
01898 void xccdf_select_set_item(struct xccdf_select *select, const char *item);
01899
01900 #endif