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_reference.h>
00040 #include <oscap.h>
00041 #include "cpe_dict.h"
00042
00043
00044
00045
00046
00055 typedef enum {
00056 XCCDF_BENCHMARK = 0x0100,
00057 XCCDF_PROFILE = 0x0200,
00058 XCCDF_RESULT = 0x0400,
00059 XCCDF_RULE = 0x1000,
00060 XCCDF_GROUP = 0x2000,
00061 XCCDF_VALUE = 0x4000,
00062
00064 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00066 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00068 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00069 } xccdf_type_t;
00070
00072 typedef enum {
00073 XCCDF_IFACE_HINT_NONE,
00074 XCCDF_IFACE_HINT_CHOICE,
00075 XCCDF_IFACE_HINT_TEXTLINE,
00076 XCCDF_IFACE_HINT_TEXT,
00077 XCCDF_IFACE_HINT_DATE,
00078 XCCDF_IFACE_HINT_DATETIME,
00079 } xccdf_interface_hint_t;
00080
00082 typedef enum {
00083 XCCDF_STATUS_NOT_SPECIFIED,
00084 XCCDF_STATUS_ACCEPTED,
00085 XCCDF_STATUS_DEPRECATED,
00086 XCCDF_STATUS_DRAFT,
00087 XCCDF_STATUS_INCOMPLETE,
00088 XCCDF_STATUS_INTERIM
00089 } xccdf_status_type_t;
00090
00092 typedef enum {
00093 XCCDF_TYPE_NUMBER = 1,
00094 XCCDF_TYPE_STRING,
00095 XCCDF_TYPE_BOOLEAN,
00096 } xccdf_value_type_t;
00097
00099 typedef enum {
00100 XCCDF_OPERATOR_EQUALS = 1,
00101 XCCDF_OPERATOR_NOT_EQUAL,
00102 XCCDF_OPERATOR_GREATER,
00103 XCCDF_OPERATOR_GREATER_EQUAL,
00104 XCCDF_OPERATOR_LESS,
00105 XCCDF_OPERATOR_LESS_EQUAL,
00106 XCCDF_OPERATOR_PATTERN_MATCH
00107 } xccdf_operator_t;
00108
00110 typedef enum {
00111 XCCDF_OPERATOR_AND = 0x0002,
00112 XCCDF_OPERATOR_OR = 0x0003,
00113 } xccdf_bool_operator_t;
00114
00116 typedef enum {
00117 XCCDF_LEVEL_NOT_DEFINED = 0,
00118 XCCDF_UNKNOWN = 1,
00119 XCCDF_INFO,
00120 XCCDF_LOW,
00121 XCCDF_MEDIUM,
00122 XCCDF_HIGH
00123 } xccdf_level_t;
00124
00126 typedef enum {
00127 XCCDF_MSG_INFO = XCCDF_INFO,
00128 XCCDF_MSG_WARNING = XCCDF_LOW,
00129 XCCDF_MSG_ERROR = XCCDF_HIGH,
00130 } xccdf_message_severity_t;
00131
00133 typedef enum {
00134 XCCDF_ROLE_FULL = 1,
00135 XCCDF_ROLE_UNSCORED,
00136 XCCDF_ROLE_UNCHECKED
00137 } xccdf_role_t;
00138
00140 typedef enum {
00141 XCCDF_WARNING_NOT_SPECIFIED,
00142 XCCDF_WARNING_GENERAL = 1,
00143 XCCDF_WARNING_FUNCTIONALITY,
00144 XCCDF_WARNING_PERFORMANCE,
00145 XCCDF_WARNING_HARDWARE,
00146 XCCDF_WARNING_LEGAL,
00147 XCCDF_WARNING_REGULATORY,
00148 XCCDF_WARNING_MANAGEMENT,
00149 XCCDF_WARNING_AUDIT,
00150 XCCDF_WARNING_DEPENDENCY
00151 } xccdf_warning_category_t;
00152
00154 typedef enum {
00155 XCCDF_STRATEGY_UNKNOWN = 0,
00156 XCCDF_STRATEGY_CONFIGURE,
00157 XCCDF_STRATEGY_DISABLE,
00158 XCCDF_STRATEGY_ENABLE,
00159 XCCDF_STRATEGY_PATCH,
00160 XCCDF_STRATEGY_POLICY,
00161 XCCDF_STRATEGY_RESTRICT,
00162 XCCDF_STRATEGY_UPDATE,
00163 XCCDF_STRATEGY_COMBINATION
00164 } xccdf_strategy_t;
00165
00167 typedef enum {
00168 XCCDF_RESULT_PASS = 1,
00169 XCCDF_RESULT_FAIL,
00170 XCCDF_RESULT_ERROR,
00171 XCCDF_RESULT_UNKNOWN,
00172 XCCDF_RESULT_NOT_APPLICABLE,
00173 XCCDF_RESULT_NOT_CHECKED,
00174 XCCDF_RESULT_NOT_SELECTED,
00175 XCCDF_RESULT_INFORMATIONAL,
00176 XCCDF_RESULT_FIXED
00177 } xccdf_test_result_type_t;
00178
00179
00180
00181
00182
00186 typedef float xccdf_numeric;
00187
00192 struct xccdf_benchmark;
00193
00198 struct xccdf_profile;
00199
00204 struct xccdf_item;
00205
00210 struct xccdf_rule;
00211
00216 struct xccdf_group;
00217
00222 struct xccdf_value;
00223
00228 struct xccdf_result;
00229
00230
00231
00232
00233
00238 struct xccdf_notice;
00239
00244 struct xccdf_status;
00245
00250 struct xccdf_model;
00251
00256 struct xccdf_warning;
00257
00262 struct xccdf_select;
00263
00268 struct xccdf_setvalue;
00269
00274 struct xccdf_refine_value;
00275
00280 struct xccdf_refine_rule;
00281
00286 struct xccdf_ident;
00287
00292 struct xccdf_check;
00297 struct xccdf_check_content_ref;
00298
00303 struct xccdf_profile_note;
00304
00310 struct xccdf_check_import;
00311
00317 struct xccdf_check_export;
00318
00324 struct xccdf_fix;
00325
00331 struct xccdf_fixtext;
00332
00340 struct xccdf_value_instance;
00341
00347 struct xccdf_identity;
00348
00354 struct xccdf_instance;
00355
00361 struct xccdf_message;
00362
00368 struct xccdf_override;
00369
00375 struct xccdf_rule_result;
00376
00382 struct xccdf_score;
00383
00389 struct xccdf_target_fact;
00390
00397 struct xccdf_target_identifier;
00398
00404 struct xccdf_plain_text;
00405
00411 struct xccdf_item_iterator;
00412
00418 struct xccdf_notice_iterator;
00419
00425 struct xccdf_status_iterator;
00426
00432 struct xccdf_identity_iterator;
00433
00439 struct xccdf_model_iterator;
00440
00446 struct xccdf_result_iterator;
00447
00453 struct xccdf_profile_iterator;
00454
00460 struct xccdf_select_iterator;
00461
00467 struct xccdf_value_iterator;
00468
00474 struct xccdf_setvalue_iterator;
00475
00480 struct xccdf_refine_value_iterator;
00481
00487 struct xccdf_refine_rule_iterator;
00488
00494 struct xccdf_ident_iterator;
00495
00501 struct xccdf_check_iterator;
00502
00508 struct xccdf_profile_note_iterator;
00509
00515 struct xccdf_fixtext_iterator;
00516
00522 struct xccdf_check_content_ref_iterator;
00523
00529 struct xccdf_check_import_iterator;
00530
00536 struct xccdf_fix_iterator;
00537
00543 struct xccdf_check_export_iterator;
00544
00550 struct xccdf_warning_iterator;
00551
00557 struct xccdf_instance_iterator;
00558
00564 struct xccdf_message_iterator;
00565
00571 struct xccdf_override_iterator;
00572
00578 struct xccdf_rule_result_iterator;
00579
00585 struct xccdf_value_instance_iterator;
00586
00592 struct xccdf_score_iterator;
00593
00599 struct xccdf_target_fact_iterator;
00600
00606 struct xccdf_target_identifier_iterator;
00607
00613 struct xccdf_plain_text_iterator;
00614
00618 struct xccdf_version_info;
00619
00621 const char* xccdf_version_info_get_version(const struct xccdf_version_info* v);
00623 const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v);
00625 const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v);
00626
00633 char * xccdf_detect_version(const char* file);
00634
00635
00636
00638 void xccdf_item_free(struct xccdf_item *item);
00639
00641 struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
00642
00649 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
00650
00657 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
00658
00665 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
00666
00673 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
00674
00681 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
00682
00689 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
00690
00698 struct xccdf_benchmark* xccdf_benchmark_import(const char *file);
00699
00706 int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
00707
00712 void xccdf_result_fill_sysinfo(struct xccdf_result *result);
00713
00720 int xccdf_result_export(struct xccdf_result *result, const char *file);
00721
00728 bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
00729
00731 struct xccdf_benchmark *xccdf_benchmark_new(void);
00733 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
00735 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
00737 struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
00738
00744 const char * xccdf_benchmark_supported(void);
00745
00747 struct xccdf_profile *xccdf_profile_new(void);
00749 void xccdf_profile_free(struct xccdf_item *prof);
00751 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
00753 struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
00754
00756 struct xccdf_rule *xccdf_rule_new(void);
00758 void xccdf_rule_free(struct xccdf_item *rule);
00760 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
00762 struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
00763
00765 struct xccdf_group *xccdf_group_new(void);
00767 void xccdf_group_free(struct xccdf_item *group);
00769 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
00771 struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
00772
00774 struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
00776 void xccdf_value_free(struct xccdf_item *val);
00778 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
00780 struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
00781
00783 struct xccdf_status *xccdf_status_new(void);
00785 struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
00787 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
00789 void xccdf_status_free(struct xccdf_status *status);
00791 struct xccdf_notice *xccdf_notice_new(void);
00793 void xccdf_notice_free(struct xccdf_notice *notice);
00795 struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
00796
00798 struct xccdf_model *xccdf_model_new(void);
00800 struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
00802 void xccdf_model_free(struct xccdf_model *model);
00803
00805 struct xccdf_ident *xccdf_ident_new(void);
00807 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
00809 struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
00811 void xccdf_ident_free(struct xccdf_ident *ident);
00812
00813
00815 struct xccdf_check *xccdf_check_new(void);
00817 void xccdf_check_free(struct xccdf_check *check);
00818
00820 struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
00822 struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
00824 struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
00826 struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref);
00827
00829 struct xccdf_check_content_ref *xccdf_check_content_ref_new(void);
00831 void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
00832
00834 struct xccdf_profile_note *xccdf_profile_note_new(void);
00836 void xccdf_profile_note_free(struct xccdf_profile_note *note);
00837
00839 struct xccdf_check_import *xccdf_check_import_new(void);
00841 void xccdf_check_import_free(struct xccdf_check_import *item);
00842
00844 struct xccdf_check_export *xccdf_check_export_new(void);
00846 void xccdf_check_export_free(struct xccdf_check_export *item);
00847
00849 struct xccdf_fix *xccdf_fix_new(void);
00851 struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
00853 void xccdf_fix_free(struct xccdf_fix *item);
00854
00856 struct xccdf_fixtext *xccdf_fixtext_new(void);
00858 struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
00860 void xccdf_fixtext_free(struct xccdf_fixtext *item);
00861
00863 void xccdf_select_free(struct xccdf_select *sel);
00865 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
00867 struct xccdf_select *xccdf_select_new(void);
00868
00870 struct xccdf_warning *xccdf_warning_new(void);
00872 struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
00874 void xccdf_warning_free(struct xccdf_warning * warn);
00875
00877 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
00878
00880 void xccdf_refine_value_free(struct xccdf_refine_value *rv);
00881
00882 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
00883
00888 void xccdf_cleanup(void);
00889
00895 struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
00896
00902 struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
00903
00909 struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
00910
00912 struct xccdf_plain_text *xccdf_plain_text_new(void);
00914 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
00916 void xccdf_plain_text_free(struct xccdf_plain_text *plain);
00918 struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
00919
00921 struct xccdf_result *xccdf_result_new(void);
00923 void xccdf_result_free(struct xccdf_result *item);
00925 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
00927 struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
00928
00930 struct xccdf_rule_result *xccdf_rule_result_new(void);
00932 struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
00934 void xccdf_rule_result_free(struct xccdf_rule_result *rr);
00935
00937 struct xccdf_identity *xccdf_identity_new(void);
00939 struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
00941 void xccdf_identity_free(struct xccdf_identity *identity);
00942
00944 struct xccdf_score *xccdf_score_new(void);
00946 struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
00948 void xccdf_score_free(struct xccdf_score *score);
00949
00951 struct xccdf_override *xccdf_override_new(void);
00953 struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
00955 void xccdf_override_free(struct xccdf_override *oride);
00956
00958 struct xccdf_message *xccdf_message_new(void);
00960 struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
00962 void xccdf_message_free(struct xccdf_message *msg);
00963
00965 struct xccdf_target_fact *xccdf_target_fact_new(void);
00967 struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
00969 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
00970
00972 struct xccdf_target_identifier *xccdf_target_identifier_new(void);
00974 struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier * ti);
00976 void xccdf_target_identifier_free(struct xccdf_target_identifier *ti);
00977
00979 struct xccdf_instance *xccdf_instance_new(void);
00981 struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
00983 void xccdf_instance_free(struct xccdf_instance *inst);
00984
00986 struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item);
00987
00988
00998 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
01003 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
01008 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
01013 void xccdf_item_iterator_reset(struct xccdf_item_iterator *it);
01014
01015
01020 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
01025 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
01030 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
01035 void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it);
01036
01037
01042 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
01047 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
01052 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
01057 void xccdf_status_iterator_reset(struct xccdf_status_iterator *it);
01058
01059
01064 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
01069 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
01074 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
01079 void xccdf_model_iterator_reset(struct xccdf_model_iterator *it);
01080
01081
01086 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
01091 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
01096 void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
01101 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
01102
01103
01108 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
01113 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
01118 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
01123 void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it);
01124
01125
01130 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
01135 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
01140 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
01145 void xccdf_select_iterator_reset(struct xccdf_select_iterator *it);
01146
01147
01152 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it);
01157 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it);
01162 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
01167 void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it);
01168
01169
01174 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
01179 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
01184 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
01189 void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it);
01190
01191
01196 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
01201 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
01206 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
01211 void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it);
01212
01213
01218 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
01223 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
01228 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
01233 void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it);
01234
01235
01240 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
01245 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
01250 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
01255 void xccdf_check_iterator_reset(struct xccdf_check_iterator *it);
01256
01257
01262 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
01267 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
01272 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
01277 void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it);
01278
01279
01284 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
01289 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
01294 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
01299 void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it);
01300
01301
01306 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
01311 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
01316 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
01321 void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it);
01322
01323
01328 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
01333 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
01338 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
01343 void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it);
01344
01345
01350 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
01355 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
01360 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
01365 void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it);
01366
01367
01372 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
01377 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
01382 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
01387 void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it);
01388
01389
01394 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it);
01399 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
01404 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
01405
01406
01411 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it);
01416 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it);
01421 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
01426 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
01427
01428
01433 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it);
01438 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
01443 void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
01448 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
01449
01450
01455 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it);
01460 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it);
01465 void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
01470 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
01471
01472
01477 struct xccdf_identity *xccdf_identity_iterator_next(struct xccdf_identity_iterator *it);
01482 bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it);
01487 void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it);
01492 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
01493
01494
01499 struct xccdf_rule_result *xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it);
01504 bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it);
01509 void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it);
01514 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
01515
01516
01521 struct xccdf_value_instance *xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it);
01526 bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it);
01531 void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it);
01536 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
01537
01538
01543 struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it);
01548 bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it);
01553 void xccdf_score_iterator_free(struct xccdf_score_iterator *it);
01558 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
01559
01560
01565 struct xccdf_target_fact *xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it);
01570 bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it);
01575 void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it);
01580 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
01581
01586 struct xccdf_target_identifier *xccdf_target_identifier_iterator_next(struct xccdf_target_identifier_iterator *it);
01591 bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it);
01596 void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it);
01601 void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it);
01602
01603
01608 struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it);
01613 bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it);
01618 void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it);
01623 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
01624
01625
01630 struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
01635 bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
01640 void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
01645 void xccdf_value_iterator_reset(struct xccdf_value_iterator *it);
01646
01647
01648
01649
01650
01661 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
01665 const char *xccdf_item_get_id(const struct xccdf_item *item);
01669 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
01673 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
01677 const char *xccdf_item_get_version(const struct xccdf_item *item);
01681 const char *xccdf_item_get_extends(const struct xccdf_item *item);
01685 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
01689 struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item);
01693 struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
01697 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
01701 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
01705 struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item);
01709 bool xccdf_item_get_hidden(const struct xccdf_item *item);
01713 bool xccdf_item_get_selected(const struct xccdf_item *item);
01717 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
01721 bool xccdf_item_get_abstract(const struct xccdf_item *item);
01725 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
01729 const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
01733 struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
01734
01740 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
01741
01751 const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item);
01752
01756 struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item);
01757
01761 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
01765 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
01769 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
01773 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
01777 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
01781 const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item);
01785 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
01789 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
01793 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
01797 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
01801 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
01805 struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark);
01809 struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
01813 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
01817 struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
01821 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
01825 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
01829 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
01831 bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
01833 const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
01834
01842 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
01843
01851 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
01852
01860 struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key);
01861
01867 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
01868
01874 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
01875
01881 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
01882
01890 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
01891
01895 struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
01896
01900 struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark);
01901
01905 struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark);
01906
01910 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01914 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
01918 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
01922 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01926 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
01930 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
01934 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01938 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01942 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
01946 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
01950 struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile);
01954 struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
01958 struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile);
01962 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
01966 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
01970 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
01974 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
01978 struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile);
01979
01985 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01986
01990 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01994 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
01998 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
02002 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
02006 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
02010 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
02014 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
02018 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
02022 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
02026 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
02030 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
02034 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
02038 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
02042 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
02046 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
02050 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
02054 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
02058 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
02062 struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule);
02066 struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
02070 struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule);
02074 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
02078 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
02082 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
02086 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
02090 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
02094 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
02098 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
02102 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
02106 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
02110 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
02114 struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule);
02115
02116
02117
02118
02119
02120
02121 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
02122
02130 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
02131
02133 struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
02134
02136 const char *xccdf_group_get_id(const struct xccdf_group *group);
02138 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
02140 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
02142 const char *xccdf_group_get_version(const struct xccdf_group *group);
02144 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
02146 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
02148 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
02150 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
02152 float xccdf_group_get_weight(const struct xccdf_group *group);
02154 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
02156 const char *xccdf_group_get_extends(const struct xccdf_group *group);
02158 bool xccdf_group_get_abstract(const struct xccdf_group *group);
02160 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
02162 bool xccdf_group_get_hidden(const struct xccdf_group *group);
02164 bool xccdf_group_get_selected(const struct xccdf_group *group);
02166 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
02168 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
02170 struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group);
02172 struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
02174 struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group);
02176 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
02178 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
02180 struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group);
02181
02183 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
02185 const char *xccdf_value_get_id(const struct xccdf_value *value);
02187 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
02189 const char *xccdf_value_get_extends(const struct xccdf_value *value);
02191 bool xccdf_value_get_abstract(const struct xccdf_value *value);
02193 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
02195 bool xccdf_value_get_hidden(const struct xccdf_value *value);
02197 bool xccdf_value_get_interactive(const struct xccdf_value *value);
02199 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
02201 struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value);
02203 struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
02205 struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value);
02207 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
02209 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
02211 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
02213 struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
02215 bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
02217 struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item);
02219 struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value);
02220
02222 void xccdf_value_instance_free(struct xccdf_value_instance *inst);
02224 struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val);
02226 const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
02228 bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
02230 xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item);
02232 bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item);
02234 bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
02236 bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst);
02238 bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
02240 xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst);
02242 bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02244 const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
02246 bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
02248 bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst);
02250 bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
02252 xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst);
02254 bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02256 const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
02258 bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
02260 xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst);
02262 bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02264 xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst);
02266 bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02268 const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
02270 bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
02272 const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
02273
02279 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
02280
02281
02283 time_t xccdf_status_get_date(const struct xccdf_status *status);
02285 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
02287 const char *xccdf_status_type_to_text(xccdf_status_type_t id);
02288
02290 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
02292 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
02294 const char *xccdf_model_get_system(const struct xccdf_model *model);
02296 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
02298 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
02300 const char *xccdf_check_get_id(const struct xccdf_check *check);
02301
02307 bool xccdf_check_get_complex(const struct xccdf_check *check);
02308
02314 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
02316 const char *xccdf_check_get_system(const struct xccdf_check *check);
02318 const char *xccdf_check_get_selector(const struct xccdf_check *check);
02320 const char *xccdf_check_get_content(const struct xccdf_check *check);
02322 bool xccdf_check_get_multicheck(const struct xccdf_check *check);
02324 bool xccdf_check_get_negate(const struct xccdf_check *check);
02326
02332 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
02333
02335 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
02337 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
02339 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
02341 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
02343 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
02345 const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item);
02347 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
02349 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
02351 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
02352
02354 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
02356 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
02358 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
02360 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
02362 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
02364 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
02366 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
02368 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
02370 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
02372 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
02374 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
02376 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
02378 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
02380 struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
02382 const char *xccdf_value_get_version(const struct xccdf_value *value);
02384 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
02386 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
02388 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
02390 time_t xccdf_value_get_version_time(const struct xccdf_value *value);
02392 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
02394 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
02396 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
02397
02399 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
02401 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
02403 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
02405 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
02407 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
02409 time_t xccdf_item_get_version_time(const struct xccdf_item *item);
02411 float xccdf_item_get_weight(const struct xccdf_item *item);
02413 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
02415 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
02416
02418 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
02420 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
02422 time_t xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
02423
02425 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
02427 time_t xccdf_profile_get_version_time(const struct xccdf_profile *profile);
02429 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
02430
02432 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
02434 time_t xccdf_rule_get_version_time(const struct xccdf_rule *rule);
02436 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
02437
02439 time_t xccdf_group_get_version_time(const struct xccdf_group *group);
02441 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
02443 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
02444
02446 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
02448 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
02450 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
02451
02453 bool xccdf_select_get_selected(const struct xccdf_select *select);
02455 const char *xccdf_select_get_item(const struct xccdf_select *select);
02457 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
02458
02460 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
02462 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
02464 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
02466 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
02468 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
02470 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
02472 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
02474 xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
02476 bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item);
02478 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
02480 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
02482 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
02484 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
02486 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
02488 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
02489
02491 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
02493 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
02494
02496 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
02498 const char *xccdf_result_get_id(const struct xccdf_result *item);
02500 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
02502 const char *xccdf_result_get_version(const struct xccdf_result *item);
02504 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
02506 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
02508 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
02510 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
02512 const char *xccdf_result_get_profile(const struct xccdf_result *item);
02514 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
02516 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
02518 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
02520 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
02522 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
02524 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
02526 struct xccdf_target_identifier_iterator *xccdf_result_get_target_id_refs(const struct xccdf_result *item);
02528 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
02530 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
02532 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
02534 time_t xccdf_result_get_start_time(const struct xccdf_result *item);
02536 time_t xccdf_result_get_end_time(const struct xccdf_result *item);
02538 struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result);
02539
02541 time_t xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
02543 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
02545 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
02547 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
02549 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
02551 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
02553 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
02555 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
02557 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
02559 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
02561 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
02563 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
02565 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
02567 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
02569 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
02571 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
02573 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
02575 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
02577 const char *xccdf_score_get_system(const struct xccdf_score *item);
02579 time_t xccdf_override_get_time(const struct xccdf_override *item);
02581 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
02583 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
02585 const char *xccdf_override_get_authority(const struct xccdf_override *item);
02587 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
02589 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
02591 const char *xccdf_message_get_content(const struct xccdf_message *item);
02593 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
02595 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
02597 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
02599 void* xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item);
02601 const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item);
02603 const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item);
02605 const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item);
02607 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
02609 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
02611 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
02612
02613
02614
02615
02616
02617
02625
02626 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
02628 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
02630 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
02632 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
02634 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
02636 bool xccdf_item_set_version_time(struct xccdf_item *item, time_t newval);
02638 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
02640 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
02642 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
02644 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
02646 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
02647
02649 bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata);
02650
02652 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
02653
02655 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
02657 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
02659 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
02661 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
02663 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, time_t newval);
02665 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
02667 bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval);
02669 bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata);
02671 bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list);
02673 bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark* item, struct cpe_lang_model* cpe_lang_model);
02675 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
02677 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
02679 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
02681 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
02683 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
02685 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
02687 bool xccdf_profile_set_version_time(struct xccdf_profile *item, time_t newval);
02689 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
02691 bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata);
02692
02694 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
02696 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
02698 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
02700 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
02702 bool xccdf_rule_set_version_time(struct xccdf_rule *item, time_t newval);
02704 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
02706 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
02708 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
02710 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
02712 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
02714 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
02716
02718 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
02720 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
02722 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
02724 bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata);
02725
02727 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
02729 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
02731 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
02733 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
02735 bool xccdf_group_set_version_time(struct xccdf_group *item, time_t newval);
02737 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
02739 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
02741 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
02743 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
02745 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
02747 bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata);
02748
02750 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
02752 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
02754 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
02756 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
02758 bool xccdf_value_set_version_time(struct xccdf_value *item, time_t newval);
02760 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
02762 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
02764 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
02766 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
02768 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
02770 bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
02772 bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
02774 bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata);
02775
02777 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
02779 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
02780
02782 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
02784 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
02785
02787 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
02788
02790 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
02792 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
02794 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
02796 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
02798 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
02800 bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval);
02802 bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval);
02803
02805 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
02807 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
02808
02810 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
02812 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
02813
02815 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
02817 bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval);
02819 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
02820
02822 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
02824 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
02825
02827 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
02829 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
02831 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
02833 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
02835 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
02837 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
02839 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
02841 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
02842
02844 bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
02846 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
02848 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
02850 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
02852 bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
02854 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
02855
02857 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
02859 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
02860
02862 bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
02864 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
02866 struct xccdf_refine_rule *xccdf_refine_rule_new(void);
02867
02869 struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
02871 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
02873 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
02875 bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
02877 bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
02879 bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
02880
02882 struct xccdf_refine_value *xccdf_refine_value_new(void);
02884 struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
02886 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
02888 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
02890 bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
02891
02893 struct xccdf_setvalue *xccdf_setvalue_new(void);
02895 struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
02897 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
02899 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
02901 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
02903 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
02904
02906 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
02908 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
02910 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
02912 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
02914 bool xccdf_result_set_start_time(struct xccdf_result *item, time_t newval);
02916 bool xccdf_result_set_end_time(struct xccdf_result *item, time_t newval);
02918 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
02920 bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata);
02921
02923 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, time_t newval);
02925 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
02927 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
02929 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
02931 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
02933 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
02935 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
02936
02938 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
02940 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
02942 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
02943
02945 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
02947 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
02949 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
02950
02952 bool xccdf_override_set_time(struct xccdf_override *obj, time_t newval);
02954 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02956 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02958 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
02960 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
02961
02963 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
02965 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
02966
02968 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
02970 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
02972 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
02974 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
02975
02977 bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void* node);
02979 bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval);
02981 bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval);
02983 bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval);
02984
02986 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
02988 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
02990 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
02991
02992
02993 void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
02994
02995 void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
02996
02998 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
02999
03001 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
03003 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
03005 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
03007 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
03009 bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval);
03011 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
03013 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
03015
03017 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
03019 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
03021 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
03023 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
03025 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
03027 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
03029 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
03031 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
03033 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
03034
03036 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
03038 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
03040 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
03042 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
03043
03045 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
03047 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
03049 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
03051 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
03053 bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval);
03055 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
03056
03058 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
03060 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
03062 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
03064 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
03066 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
03068 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
03070 bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval);
03072 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
03074 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
03076 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
03078 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
03080 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
03082 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
03084 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
03085
03087 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
03089 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
03091 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
03093 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
03095 bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
03097 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
03099 bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval);
03101 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
03103 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
03105 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
03107 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
03109 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
03111 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
03112
03114 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
03116 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
03118 bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
03120 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
03122 bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval);
03124 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
03126 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
03127
03129 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
03131 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
03133 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
03135 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
03137 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
03139 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
03141 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
03143 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
03145 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
03147 bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval);
03149 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
03151 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
03153 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
03155 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
03157 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
03159 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
03161 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
03163 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
03165 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
03167 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
03169 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
03171 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
03173 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
03175 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
03177 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
03179 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
03181 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
03183 bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
03185 bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval);
03187 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
03189 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
03191 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
03193 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
03194
03196 bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
03198 bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
03200 bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
03202 bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
03204 bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
03206 bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
03207
03208
03209
03210
03211
03212
03214 void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it);
03216 void xccdf_model_iterator_remove(struct xccdf_model_iterator *it);
03218 void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it);
03220 void xccdf_item_iterator_remove(struct xccdf_item_iterator *it);
03222 void xccdf_status_iterator_remove(struct xccdf_status_iterator *it);
03224 void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it);
03226 void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it);
03228 void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it);
03230 void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it);
03232 void xccdf_select_iterator_remove(struct xccdf_select_iterator *it);
03234 void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it);
03236 void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it);
03238 void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it);
03240 void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it);
03242 void xccdf_check_iterator_remove(struct xccdf_check_iterator *it);
03244 void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it);
03246 void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it);
03248 void xccdf_value_iterator_remove(struct xccdf_value_iterator *it);
03250 void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it);
03252 void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it);
03254 void xccdf_result_iterator_remove(struct xccdf_result_iterator *it);
03256 void xccdf_override_iterator_remove(struct xccdf_override_iterator *it);
03258 void xccdf_message_iterator_remove(struct xccdf_message_iterator *it);
03260 void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it);
03262 void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it);
03264 void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it);
03266 void xccdf_score_iterator_remove(struct xccdf_score_iterator *it);
03268 void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it);
03270 void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it);
03272 void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it);
03273
03274
03275
03277 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
03279 void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it);
03281 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
03283 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
03285 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
03287 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
03289 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
03291 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
03293 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
03295 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
03297 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
03298
03299
03300
03301
03303 typedef enum xccdf_subst_type {
03304 XCCDF_SUBST_NONE,
03305 XCCDF_SUBST_SUB,
03306 XCCDF_SUBST_LINK,
03307 XCCDF_SUBST_INSTANCE
03308 } xccdf_subst_type_t;
03309
03318 typedef char*(*xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg);
03319
03320
03329 char* oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg);
03330
03331
03333
03334
03335 #endif