00001
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef XCCDF_H_
00035 #define XCCDF_H_
00036
00037 #include <stdbool.h>
00038 #include <time.h>
00039 #include "oscap.h"
00040
00041
00042
00043
00044
00053 typedef enum {
00054 XCCDF_BENCHMARK = 0x0100,
00055 XCCDF_PROFILE = 0x0200,
00056 XCCDF_RESULT = 0x0400,
00057 XCCDF_RULE = 0x1000,
00058 XCCDF_GROUP = 0x2000,
00059 XCCDF_VALUE = 0x4000,
00060
00062 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00064 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00066 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00067 } xccdf_type_t;
00068
00070 typedef enum {
00071 XCCDF_IFACE_HINT_NONE,
00072 XCCDF_IFACE_HINT_CHOICE,
00073 XCCDF_IFACE_HINT_TEXTLINE,
00074 XCCDF_IFACE_HINT_TEXT,
00075 XCCDF_IFACE_HINT_DATE,
00076 XCCDF_IFACE_HINT_DATETIME,
00077 } xccdf_interface_hint_t;
00078
00080 typedef enum {
00081 XCCDF_STATUS_NOT_SPECIFIED,
00082 XCCDF_STATUS_ACCEPTED,
00083 XCCDF_STATUS_DEPRECATED,
00084 XCCDF_STATUS_DRAFT,
00085 XCCDF_STATUS_INCOMPLETE,
00086 XCCDF_STATUS_INTERIM
00087 } xccdf_status_type_t;
00088
00090 typedef enum {
00091 XCCDF_TYPE_NUMBER = 1,
00092 XCCDF_TYPE_STRING,
00093 XCCDF_TYPE_BOOLEAN,
00094 } xccdf_value_type_t;
00095
00097 typedef enum {
00098 XCCDF_OPERATOR_EQUALS = 1,
00099 XCCDF_OPERATOR_NOT_EQUAL,
00100 XCCDF_OPERATOR_GREATER,
00101 XCCDF_OPERATOR_GREATER_EQUAL,
00102 XCCDF_OPERATOR_LESS,
00103 XCCDF_OPERATOR_LESS_EQUAL,
00104 XCCDF_OPERATOR_PATTERN_MATCH
00105 } xccdf_operator_t;
00106
00108 typedef enum {
00109 XCCDF_OPERATOR_AND = 0x0002,
00110 XCCDF_OPERATOR_OR = 0x0003,
00111 XCCDF_OPERATOR_NOT = 0x0100,
00112 XCCDF_OPERATOR_NAND = XCCDF_OPERATOR_AND | XCCDF_OPERATOR_NOT,
00113 XCCDF_OPERATOR_NOR = XCCDF_OPERATOR_OR | XCCDF_OPERATOR_NOT,
00114 XCCDF_OPERATOR_MASK = 0x00ff
00115 } xccdf_bool_operator_t;
00116
00118 typedef enum {
00119 XCCDF_UNKNOWN = 1,
00120 XCCDF_INFO,
00121 XCCDF_LOW,
00122 XCCDF_MEDIUM,
00123 XCCDF_HIGH
00124 } xccdf_level_t;
00125
00127 typedef enum {
00128 XCCDF_MSG_INFO = XCCDF_INFO,
00129 XCCDF_MSG_WARNING = XCCDF_LOW,
00130 XCCDF_MSG_ERROR = XCCDF_HIGH,
00131 } xccdf_message_severity_t;
00132
00134 typedef enum {
00135 XCCDF_ROLE_FULL = 1,
00136 XCCDF_ROLE_UNSCORED,
00137 XCCDF_ROLE_UNCHECKED
00138 } xccdf_role_t;
00139
00141 typedef enum {
00142 XCCDF_WARNING_NOT_SPECIFIED,
00143 XCCDF_WARNING_GENERAL = 1,
00144 XCCDF_WARNING_FUNCTIONALITY,
00145 XCCDF_WARNING_PERFORMANCE,
00146 XCCDF_WARNING_HARDWARE,
00147 XCCDF_WARNING_LEGAL,
00148 XCCDF_WARNING_REGULATORY,
00149 XCCDF_WARNING_MANAGEMENT,
00150 XCCDF_WARNING_AUDIT,
00151 XCCDF_WARNING_DEPENDENCY
00152 } xccdf_warning_category_t;
00153
00155 typedef enum {
00156 XCCDF_STRATEGY_UNKNOWN = 0,
00157 XCCDF_STRATEGY_CONFIGURE,
00158 XCCDF_STRATEGY_DISABLE,
00159 XCCDF_STRATEGY_ENABLE,
00160 XCCDF_STRATEGY_PATCH,
00161 XCCDF_STRATEGY_POLICY,
00162 XCCDF_STRATEGY_RESTRICT,
00163 XCCDF_STRATEGY_UPDATE,
00164 XCCDF_STRATEGY_COMBINATION
00165 } xccdf_strategy_t;
00166
00168 typedef enum {
00169 XCCDF_RESULT_PASS = 1,
00170 XCCDF_RESULT_FAIL,
00171 XCCDF_RESULT_ERROR,
00172 XCCDF_RESULT_UNKNOWN,
00173 XCCDF_RESULT_NOT_APPLICABLE,
00174 XCCDF_RESULT_NOT_CHECKED,
00175 XCCDF_RESULT_NOT_SELECTED,
00176 XCCDF_RESULT_INFORMATIONAL,
00177 XCCDF_RESULT_FIXED
00178 } xccdf_test_result_type_t;
00179
00180
00181
00182
00183
00187 typedef float xccdf_numeric;
00188
00193 struct xccdf_benchmark;
00194
00199 struct xccdf_profile;
00200
00205 struct xccdf_item;
00206
00211 struct xccdf_rule;
00212
00217 struct xccdf_group;
00218
00223 struct xccdf_value;
00224
00229 struct xccdf_result;
00230
00231
00232
00233
00234
00239 struct xccdf_notice;
00240
00245 struct xccdf_status;
00246
00251 struct xccdf_model;
00252
00257 struct xccdf_warning;
00258
00263 struct xccdf_select;
00264
00269 struct xccdf_setvalue;
00270
00275 struct xccdf_refine_value;
00276
00281 struct xccdf_refine_rule;
00282
00287 struct xccdf_ident;
00288
00293 struct xccdf_check;
00298 struct xccdf_check_content_ref;
00299
00304 struct xccdf_profile_note;
00305
00311 struct xccdf_check_import;
00312
00318 struct xccdf_check_export;
00319
00325 struct xccdf_fix;
00326
00332 struct xccdf_fixtext;
00333
00341 struct xccdf_value_instance;
00342
00348 struct xccdf_identity;
00349
00355 struct xccdf_instance;
00356
00362 struct xccdf_message;
00363
00369 struct xccdf_override;
00370
00376 struct xccdf_rule_result;
00377
00383 struct xccdf_score;
00384
00390 struct xccdf_target_fact;
00391
00397 struct xccdf_plain_text;
00398
00404 struct xccdf_item_iterator;
00405
00411 struct xccdf_notice_iterator;
00412
00418 struct xccdf_status_iterator;
00419
00425 struct xccdf_identity_iterator;
00426
00432 struct xccdf_model_iterator;
00433
00439 struct xccdf_result_iterator;
00440
00446 struct xccdf_profile_iterator;
00447
00453 struct xccdf_select_iterator;
00454
00460 struct xccdf_value_iterator;
00461
00467 struct xccdf_setvalue_iterator;
00468
00473 struct xccdf_refine_value_iterator;
00474
00480 struct xccdf_refine_rule_iterator;
00481
00487 struct xccdf_ident_iterator;
00488
00494 struct xccdf_check_iterator;
00495
00501 struct xccdf_profile_note_iterator;
00502
00508 struct xccdf_fixtext_iterator;
00509
00515 struct xccdf_check_content_ref_iterator;
00516
00522 struct xccdf_check_import_iterator;
00523
00529 struct xccdf_fix_iterator;
00530
00536 struct xccdf_check_export_iterator;
00537
00543 struct xccdf_warning_iterator;
00544
00550 struct xccdf_instance_iterator;
00551
00557 struct xccdf_message_iterator;
00558
00564 struct xccdf_override_iterator;
00565
00571 struct xccdf_rule_result_iterator;
00572
00578 struct xccdf_value_instance_iterator;
00579
00585 struct xccdf_score_iterator;
00586
00592 struct xccdf_target_fact_iterator;
00593
00599 struct xccdf_plain_text_iterator;
00600
00601
00602
00604 void xccdf_item_free(struct xccdf_item *item);
00605
00607 struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
00608
00615 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
00616
00623 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
00624
00631 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
00632
00639 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
00640
00647 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
00648
00655 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
00656
00664 struct xccdf_benchmark* xccdf_benchmark_import(const char *file);
00665
00672 int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
00673
00680 int xccdf_result_export(struct xccdf_result *result, const char *file);
00681
00688 bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
00689
00691 struct xccdf_benchmark *xccdf_benchmark_new(void);
00693 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
00695 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
00697 struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
00698
00704 const char * xccdf_benchmark_supported(void);
00705
00707 struct xccdf_profile *xccdf_profile_new(void);
00709 void xccdf_profile_free(struct xccdf_item *prof);
00711 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
00713 struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
00714
00716 struct xccdf_rule *xccdf_rule_new(void);
00718 void xccdf_rule_free(struct xccdf_item *rule);
00720 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
00722 struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
00723
00725 struct xccdf_group *xccdf_group_new(void);
00727 void xccdf_group_free(struct xccdf_item *group);
00729 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
00731 struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
00732
00734 struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
00736 void xccdf_value_free(struct xccdf_item *val);
00738 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
00740 struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
00741
00743 struct xccdf_status *xccdf_status_new(void);
00745 struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
00747 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
00749 void xccdf_status_free(struct xccdf_status *status);
00751 struct xccdf_notice *xccdf_notice_new(void);
00753 void xccdf_notice_free(struct xccdf_notice *notice);
00755 struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
00756
00758 struct xccdf_model *xccdf_model_new(void);
00760 struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
00762 void xccdf_model_free(struct xccdf_model *model);
00763
00765 struct xccdf_ident *xccdf_ident_new(void);
00767 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
00769 struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
00771 void xccdf_ident_free(struct xccdf_ident *ident);
00772
00773
00775 struct xccdf_check *xccdf_check_new(void);
00777 void xccdf_check_free(struct xccdf_check *check);
00778
00780 struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
00782 struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
00784 struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
00786 struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref);
00787
00789 struct xccdf_check_content_ref *xccdf_check_content_ref_new(void);
00791 void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
00792
00794 struct xccdf_profile_note *xccdf_profile_note_new(void);
00796 void xccdf_profile_note_free(struct xccdf_profile_note *note);
00797
00799 struct xccdf_check_import *xccdf_check_import_new(void);
00801 void xccdf_check_import_free(struct xccdf_check_import *item);
00802
00804 struct xccdf_check_export *xccdf_check_export_new(void);
00806 void xccdf_check_export_free(struct xccdf_check_export *item);
00807
00809 struct xccdf_fix *xccdf_fix_new(void);
00811 struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
00813 void xccdf_fix_free(struct xccdf_fix *item);
00814
00816 struct xccdf_fixtext *xccdf_fixtext_new(void);
00818 struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
00820 void xccdf_fixtext_free(struct xccdf_fixtext *item);
00821
00823 void xccdf_select_free(struct xccdf_select *sel);
00825 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
00827 struct xccdf_select *xccdf_select_new(void);
00828
00830 struct xccdf_warning *xccdf_warning_new(void);
00832 struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
00834 void xccdf_warning_free(struct xccdf_warning * warn);
00835
00837 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
00838
00840 void xccdf_refine_value_free(struct xccdf_refine_value *rv);
00841
00842 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
00843
00848 void xccdf_cleanup(void);
00849
00855 struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
00856
00862 struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
00863
00869 struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
00870
00872 struct xccdf_plain_text *xccdf_plain_text_new(void);
00874 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
00876 void xccdf_plain_text_free(struct xccdf_plain_text *plain);
00878 struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
00879
00881 struct xccdf_result *xccdf_result_new(void);
00883 void xccdf_result_free(struct xccdf_result *item);
00885 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
00887 struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
00888
00890 struct xccdf_rule_result *xccdf_rule_result_new(void);
00892 struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
00894 void xccdf_rule_result_free(struct xccdf_rule_result *rr);
00895
00897 struct xccdf_identity *xccdf_identity_new(void);
00899 struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
00901 void xccdf_identity_free(struct xccdf_identity *identity);
00902
00904 struct xccdf_score *xccdf_score_new(void);
00906 struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
00908 void xccdf_score_free(struct xccdf_score *score);
00909
00911 struct xccdf_override *xccdf_override_new(void);
00913 struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
00915 void xccdf_override_free(struct xccdf_override *oride);
00916
00918 struct xccdf_message *xccdf_message_new(void);
00920 struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
00922 void xccdf_message_free(struct xccdf_message *msg);
00923
00925 struct xccdf_target_fact *xccdf_target_fact_new(void);
00927 struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
00929 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
00930
00932 struct xccdf_instance *xccdf_instance_new(void);
00934 struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
00936 void xccdf_instance_free(struct xccdf_instance *inst);
00937
00938
00939
00940
00941
00942
00943
00944
00949
00950
00952 struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item);
00953
00954
00964 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
00969 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
00974 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
00979 void xccdf_item_iterator_reset(struct xccdf_item_iterator *it);
00980
00981
00986 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
00991 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
00996 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
01001 void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it);
01002
01003
01008 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
01013 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
01018 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
01023 void xccdf_status_iterator_reset(struct xccdf_status_iterator *it);
01024
01025
01030 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
01035 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
01040 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
01045 void xccdf_model_iterator_reset(struct xccdf_model_iterator *it);
01046
01047
01052 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
01057 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
01062 void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
01067 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
01068
01069
01074 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
01079 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
01084 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
01089 void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it);
01090
01091
01096 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
01101 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
01106 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
01111 void xccdf_select_iterator_reset(struct xccdf_select_iterator *it);
01112
01113
01118 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it);
01123 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it);
01128 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
01133 void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it);
01134
01135
01140 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
01145 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
01150 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
01155 void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it);
01156
01157
01162 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
01167 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
01172 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
01177 void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it);
01178
01179
01184 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
01189 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
01194 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
01199 void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it);
01200
01201
01206 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
01211 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
01216 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
01221 void xccdf_check_iterator_reset(struct xccdf_check_iterator *it);
01222
01223
01228 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
01233 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
01238 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
01243 void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it);
01244
01245
01250 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
01255 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
01260 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
01265 void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it);
01266
01267
01272 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
01277 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
01282 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
01287 void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it);
01288
01289
01294 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
01299 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
01304 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
01309 void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it);
01310
01311
01316 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
01321 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
01326 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
01331 void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it);
01332
01333
01338 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
01343 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
01348 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
01353 void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it);
01354
01355
01360 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it);
01365 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
01370 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
01371
01372
01377 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it);
01382 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it);
01387 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
01392 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
01393
01394
01399 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it);
01404 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
01409 void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
01414 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
01415
01416
01421 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it);
01426 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it);
01431 void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
01436 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
01437
01438
01443 struct xccdf_identity *xccdf_identity_iterator_next(struct xccdf_identity_iterator *it);
01448 bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it);
01453 void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it);
01458 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
01459
01460
01465 struct xccdf_rule_result *xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it);
01470 bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it);
01475 void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it);
01480 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
01481
01482
01487 struct xccdf_value_instance *xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it);
01492 bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it);
01497 void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it);
01502 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
01503
01504
01509 struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it);
01514 bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it);
01519 void xccdf_score_iterator_free(struct xccdf_score_iterator *it);
01524 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
01525
01526
01531 struct xccdf_target_fact *xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it);
01536 bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it);
01541 void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it);
01546 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
01547
01548
01553 struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it);
01558 bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it);
01563 void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it);
01568 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
01569
01570
01575 struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
01580 bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
01585 void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
01590 void xccdf_value_iterator_reset(struct xccdf_value_iterator *it);
01591
01592
01593
01594
01595
01606 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
01610 const char *xccdf_item_get_id(const struct xccdf_item *item);
01614 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
01618 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
01622 const char *xccdf_item_get_version(const struct xccdf_item *item);
01626 const char *xccdf_item_get_extends(const struct xccdf_item *item);
01630 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
01634 struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
01638 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
01642 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
01646 xccdf_status_type_t xccdf_item_get_current_status(const struct xccdf_item *item);
01650 bool xccdf_item_get_hidden(const struct xccdf_item *item);
01654 bool xccdf_item_get_selected(const struct xccdf_item *item);
01658 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
01662 bool xccdf_item_get_abstract(const struct xccdf_item *item);
01666 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
01670 const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
01674 struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
01675
01681 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
01682
01686 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
01690 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
01694 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
01698 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
01702 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
01706 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
01710 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
01714 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
01718 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
01722 const char *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
01726 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
01730 struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
01734 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
01738 xccdf_status_type_t xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
01742 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
01746 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
01750 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
01752 bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
01754 const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
01755
01763 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
01764
01772 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
01773
01779 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
01780
01786 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
01787
01793 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
01794
01802 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
01803
01807 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01811 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
01815 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
01819 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01823 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
01827 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
01831 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01835 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01839 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
01843 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
01847 struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
01851 xccdf_status_type_t xccdf_profile_get_status_current(const struct xccdf_profile *profile);
01855
01859 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
01863 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
01867 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
01871 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
01872
01878 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01879
01883 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01887 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
01891 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
01895 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
01899 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
01903 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
01907 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
01911 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
01915 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
01919 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
01923 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
01927 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
01931 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
01935 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
01939 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
01943 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
01947 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
01951 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
01955 struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
01959 xccdf_status_type_t xccdf_rule_get_status_current(const struct xccdf_rule *rule);
01963 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
01967 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
01971 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
01975 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
01979 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
01983 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
01987 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
01991 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
01995 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
01999 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
02000
02001
02002
02003
02004
02005
02006 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
02007
02015 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
02016
02018 struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
02019
02021 const char *xccdf_group_get_id(const struct xccdf_group *group);
02023 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
02025 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
02027 const char *xccdf_group_get_version(const struct xccdf_group *group);
02029 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
02031 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
02033 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
02035 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
02037 float xccdf_group_get_weight(const struct xccdf_group *group);
02039 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
02041 const char *xccdf_group_get_extends(const struct xccdf_group *group);
02043 bool xccdf_group_get_abstract(const struct xccdf_group *group);
02045 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
02047 bool xccdf_group_get_hidden(const struct xccdf_group *group);
02049 bool xccdf_group_get_selected(const struct xccdf_group *group);
02051 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
02053 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
02055 struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
02057 xccdf_status_type_t xccdf_group_get_status_current(const struct xccdf_group *group);
02059 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
02061 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
02062
02064 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
02066 const char *xccdf_value_get_id(const struct xccdf_value *value);
02068 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
02070 const char *xccdf_value_get_extends(const struct xccdf_value *value);
02072 bool xccdf_value_get_abstract(const struct xccdf_value *value);
02074 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
02076 bool xccdf_value_get_hidden(const struct xccdf_value *value);
02078 bool xccdf_value_get_interactive(const struct xccdf_value *value);
02080 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
02082 struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
02084 xccdf_status_type_t xccdf_value_get_status_current(const struct xccdf_value *value);
02086 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
02088 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
02090 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
02092 struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
02094 bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
02096 struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item);
02097
02098
02100 void xccdf_value_instance_free(struct xccdf_value_instance *inst);
02102 struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val);
02104 const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
02106 bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
02108 xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item);
02110 bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item);
02112 bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
02114 bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst);
02116 bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
02118 xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst);
02120 bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02122 const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
02124 bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
02126 bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst);
02128 bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
02130 xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst);
02132 bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02134 const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
02136 bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
02138 xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst);
02140 bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02142 xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst);
02144 bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02146 const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
02148 bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
02150 const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
02151
02157 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
02158
02159
02161 time_t xccdf_status_get_date(const struct xccdf_status *status);
02163 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
02165 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
02167 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
02169 const char *xccdf_model_get_system(const struct xccdf_model *model);
02171
02173 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
02175 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
02177 const char *xccdf_check_get_id(const struct xccdf_check *check);
02178
02184 bool xccdf_check_get_complex(const struct xccdf_check *check);
02185
02191 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
02193 const char *xccdf_check_get_system(const struct xccdf_check *check);
02195 const char *xccdf_check_get_selector(const struct xccdf_check *check);
02197 const char *xccdf_check_get_content(const struct xccdf_check *check);
02199
02205 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
02206
02208 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
02210 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
02212 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
02214 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
02216 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
02218 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
02220 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
02222 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
02223
02225 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
02227 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
02229 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
02231 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
02233 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
02235 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
02237 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
02239 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
02241 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
02243 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
02245 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
02247 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
02249 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
02251 struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
02253 const char *xccdf_value_get_version(const struct xccdf_value *value);
02255 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
02257 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
02259 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
02261 time_t xccdf_value_get_version_time(const struct xccdf_value *value);
02263 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
02265 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
02267 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
02268
02270 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
02272 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
02274 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
02276 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
02278 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
02280 time_t xccdf_item_get_version_time(const struct xccdf_item *item);
02282 float xccdf_item_get_weight(const struct xccdf_item *item);
02284 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
02286 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
02287
02289 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
02291 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
02293 time_t xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
02294
02296 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
02298 time_t xccdf_profile_get_version_time(const struct xccdf_profile *profile);
02300 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
02301
02303 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
02305 time_t xccdf_rule_get_version_time(const struct xccdf_rule *rule);
02307 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
02308
02310 time_t xccdf_group_get_version_time(const struct xccdf_group *group);
02312 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
02314 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
02315
02317 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
02319 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
02321 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
02322
02324 bool xccdf_select_get_selected(const struct xccdf_select *select);
02326 const char *xccdf_select_get_item(const struct xccdf_select *select);
02328 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
02329
02331 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
02333 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
02335 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
02337 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
02339 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
02341 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
02343 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
02345 xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
02346 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
02348 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
02350 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
02352 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
02354 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
02356 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
02357
02359 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
02361 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
02362
02364 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
02366 const char *xccdf_result_get_id(const struct xccdf_result *item);
02368 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
02370 const char *xccdf_result_get_version(const struct xccdf_result *item);
02372 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
02374 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
02376 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
02378 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
02380 const char *xccdf_result_get_profile(const struct xccdf_result *item);
02382 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
02384 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
02386 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
02388 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
02390 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
02392 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
02394 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
02396 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
02398 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
02400 time_t xccdf_result_get_start_time(const struct xccdf_result *item);
02402 time_t xccdf_result_get_end_time(const struct xccdf_result *item);
02403
02405 time_t xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
02407 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
02409 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
02411 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
02413 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
02415 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
02417 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
02419 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
02421 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
02423 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
02425 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
02427 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
02429 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
02431 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
02433 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
02435 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
02437 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
02439 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
02441 const char *xccdf_score_get_system(const struct xccdf_score *item);
02443 time_t xccdf_override_get_time(const struct xccdf_override *item);
02445 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
02447 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
02449 const char *xccdf_override_get_authority(const struct xccdf_override *item);
02451 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
02453 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
02455 const char *xccdf_message_get_content(const struct xccdf_message *item);
02457 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
02459 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
02461 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
02463 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
02465 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
02467 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
02468
02469
02470
02471
02472
02473
02481
02482 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
02484 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
02486 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
02488 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
02490 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
02492 bool xccdf_item_set_version_time(struct xccdf_item *item, time_t newval);
02494 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
02496 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
02498 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
02500 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
02502 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
02503
02505 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
02506
02508 bool xccdf_benchmark_set_metadata(struct xccdf_benchmark *item, const char *newval);
02510 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
02512 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
02514 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
02516 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
02518 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, time_t newval);
02520 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
02521
02523 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
02525 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
02527 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
02529 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
02531 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
02533 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
02535 bool xccdf_profile_set_version_time(struct xccdf_profile *item, time_t newval);
02537 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
02538
02540 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
02542 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
02544 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
02546 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
02548 bool xccdf_rule_set_version_time(struct xccdf_rule *item, time_t newval);
02550 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
02552 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
02554 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
02556 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
02558 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
02560 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
02562
02564 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
02566 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
02568 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
02569
02571 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
02573 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
02575 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
02577 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
02579 bool xccdf_group_set_version_time(struct xccdf_group *item, time_t newval);
02581 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
02583 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
02585 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
02587 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
02589 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
02590
02592 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
02594 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
02596 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
02598 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
02600 bool xccdf_value_set_version_time(struct xccdf_value *item, time_t newval);
02602 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
02604 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
02606 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
02608 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
02610 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
02612 bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
02614 bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
02615
02617 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
02619 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
02620
02622 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
02624 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
02625
02627 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
02628
02630 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
02632 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
02634 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
02636 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
02638 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
02639
02641 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
02643 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
02644
02646 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
02648 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
02649
02651 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
02653 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
02654
02656 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
02658 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
02659
02661 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
02663 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
02665 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
02667 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
02669 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
02671 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
02673 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
02675 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
02676
02678 bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
02680 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
02682 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
02684 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
02686 bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
02688 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
02689
02691 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
02693 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
02694
02696 bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
02698 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
02700 struct xccdf_refine_rule *xccdf_refine_rule_new(void);
02701
02703 struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
02705 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
02707 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
02709 bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
02711 bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
02713 bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
02714
02716 struct xccdf_refine_value *xccdf_refine_value_new(void);
02718 struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
02720 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
02722 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
02724 bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
02725
02727 struct xccdf_setvalue *xccdf_setvalue_new(void);
02729 struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
02731 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
02733 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
02735 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
02737 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
02738
02740 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
02742 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
02744 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
02746 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
02748 bool xccdf_result_set_start_time(struct xccdf_result *item, time_t newval);
02750 bool xccdf_result_set_end_time(struct xccdf_result *item, time_t newval);
02752 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
02754 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, time_t newval);
02756 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
02758 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
02760 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
02762 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
02764 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
02766 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
02767
02769 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
02771 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
02773 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
02774
02776 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
02778 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
02780 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
02781
02783 bool xccdf_override_set_time(struct xccdf_override *obj, time_t newval);
02785 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02787 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02789 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
02791 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
02792
02794 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
02796 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
02797
02799 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
02801 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
02803 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
02805 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
02806
02808 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
02810 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
02812 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
02813
02814
02815 void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
02816
02817 void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
02818
02820 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
02821
02823 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
02825 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
02827 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
02829 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
02831 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
02833 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
02835
02837 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
02839 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
02841 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
02843 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
02845 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
02847 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
02849 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
02851 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
02853 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
02854
02856 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
02858 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
02860 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
02862 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
02863
02865 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
02867 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
02869 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
02871 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
02873 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
02874
02876 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
02878 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
02880 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
02882 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
02884 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
02886 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
02888 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
02890 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
02892 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
02894 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
02896 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
02898 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
02900 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
02901
02903 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
02905 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
02907 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
02909 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
02911 bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
02913 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
02915 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
02917 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
02919 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
02921 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
02923 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
02925 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
02926
02928 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
02930 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
02932 bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
02934 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
02936 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
02938 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
02939
02941 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
02943 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
02945 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
02947 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
02949 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
02951 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
02953 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
02955 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
02957 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
02959 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
02961 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
02963 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
02965 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
02967 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
02969 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
02971 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
02973 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
02975 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
02977 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
02979 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
02981 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
02983 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
02985 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
02987 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
02989 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
02991 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
02993 bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
02995 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
02997 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
02999 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
03001 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
03002
03004 bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
03006 bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
03008 bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
03010 bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
03012 bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
03014 bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
03015
03016
03017
03018
03019
03020
03022 void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it);
03024 void xccdf_model_iterator_remove(struct xccdf_model_iterator *it);
03026 void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it);
03028 void xccdf_item_iterator_remove(struct xccdf_item_iterator *it);
03030 void xccdf_status_iterator_remove(struct xccdf_status_iterator *it);
03032 void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it);
03034 void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it);
03036 void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it);
03038 void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it);
03040 void xccdf_select_iterator_remove(struct xccdf_select_iterator *it);
03042 void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it);
03044 void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it);
03046 void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it);
03048 void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it);
03050 void xccdf_check_iterator_remove(struct xccdf_check_iterator *it);
03052 void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it);
03054 void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it);
03056 void xccdf_value_iterator_remove(struct xccdf_value_iterator *it);
03058 void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it);
03060 void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it);
03062 void xccdf_result_iterator_remove(struct xccdf_result_iterator *it);
03064 void xccdf_override_iterator_remove(struct xccdf_override_iterator *it);
03066 void xccdf_message_iterator_remove(struct xccdf_message_iterator *it);
03068 void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it);
03070 void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it);
03072 void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it);
03074 void xccdf_score_iterator_remove(struct xccdf_score_iterator *it);
03076 void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it);
03078 void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it);
03079
03080
03081
03083 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
03085 void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it);
03087 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
03089 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
03091 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
03093 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
03095 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
03097 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
03099 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
03101 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
03103 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
03104
03105
03106
03107
03109 typedef enum xccdf_subst_type {
03110 XCCDF_SUBST_NONE,
03111 XCCDF_SUBST_SUB,
03112 XCCDF_SUBST_LINK,
03113 XCCDF_SUBST_INSTANCE
03114 } xccdf_subst_type_t;
03115
03124 typedef char*(*xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg);
03125
03126
03135 char* oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg);
03136
03137
03138
03139
03140 #endif