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
00235 struct xccdf_tailoring;
00236
00237
00238
00239
00240
00245 struct xccdf_notice;
00246
00251 struct xccdf_status;
00252
00257 struct xccdf_model;
00258
00263 struct xccdf_warning;
00264
00269 struct xccdf_select;
00270
00275 struct xccdf_setvalue;
00276
00281 struct xccdf_refine_value;
00282
00287 struct xccdf_refine_rule;
00288
00293 struct xccdf_ident;
00294
00299 struct xccdf_check;
00304 struct xccdf_check_content_ref;
00305
00310 struct xccdf_profile_note;
00311
00317 struct xccdf_check_import;
00318
00324 struct xccdf_check_export;
00325
00331 struct xccdf_fix;
00332
00338 struct xccdf_fixtext;
00339
00347 struct xccdf_value_instance;
00348
00354 struct xccdf_identity;
00355
00361 struct xccdf_instance;
00362
00368 struct xccdf_message;
00369
00375 struct xccdf_override;
00376
00382 struct xccdf_rule_result;
00383
00389 struct xccdf_score;
00390
00396 struct xccdf_target_fact;
00397
00404 struct xccdf_target_identifier;
00405
00411 struct xccdf_plain_text;
00412
00418 struct xccdf_item_iterator;
00419
00425 struct xccdf_notice_iterator;
00426
00432 struct xccdf_status_iterator;
00433
00439 struct xccdf_identity_iterator;
00440
00446 struct xccdf_model_iterator;
00447
00453 struct xccdf_result_iterator;
00454
00460 struct xccdf_profile_iterator;
00461
00467 struct xccdf_select_iterator;
00468
00474 struct xccdf_value_iterator;
00475
00481 struct xccdf_setvalue_iterator;
00482
00487 struct xccdf_refine_value_iterator;
00488
00494 struct xccdf_refine_rule_iterator;
00495
00501 struct xccdf_ident_iterator;
00502
00508 struct xccdf_check_iterator;
00509
00515 struct xccdf_profile_note_iterator;
00516
00522 struct xccdf_fixtext_iterator;
00523
00529 struct xccdf_check_content_ref_iterator;
00530
00536 struct xccdf_check_import_iterator;
00537
00543 struct xccdf_fix_iterator;
00544
00550 struct xccdf_check_export_iterator;
00551
00557 struct xccdf_warning_iterator;
00558
00564 struct xccdf_instance_iterator;
00565
00571 struct xccdf_message_iterator;
00572
00578 struct xccdf_override_iterator;
00579
00585 struct xccdf_rule_result_iterator;
00586
00592 struct xccdf_value_instance_iterator;
00593
00599 struct xccdf_score_iterator;
00600
00606 struct xccdf_target_fact_iterator;
00607
00613 struct xccdf_target_identifier_iterator;
00614
00620 struct xccdf_plain_text_iterator;
00621
00625 struct xccdf_version_info;
00626
00628 const char* xccdf_version_info_get_version(const struct xccdf_version_info* v);
00630 const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v);
00632 const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v);
00633
00640 char * xccdf_detect_version(const char* file);
00641
00642
00643
00645 void xccdf_item_free(struct xccdf_item *item);
00646
00648 struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
00649
00656 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
00657
00664 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
00665
00672 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
00673
00680 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
00681
00688 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
00689
00696 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
00697
00705 struct xccdf_benchmark* xccdf_benchmark_import(const char *file);
00706
00713 int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
00714
00719 void xccdf_result_fill_sysinfo(struct xccdf_result *result);
00720
00727 int xccdf_result_export(struct xccdf_result *result, const char *file);
00728
00735 bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
00736
00738 struct xccdf_benchmark *xccdf_benchmark_new(void);
00740 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
00742 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
00744 struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
00745
00751 const char * xccdf_benchmark_supported(void);
00752
00754 struct xccdf_profile *xccdf_profile_new(void);
00756 void xccdf_profile_free(struct xccdf_item *prof);
00758 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
00760 struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
00761
00763 struct xccdf_rule *xccdf_rule_new(void);
00765 void xccdf_rule_free(struct xccdf_item *rule);
00767 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
00769 struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
00770
00772 struct xccdf_group *xccdf_group_new(void);
00774 void xccdf_group_free(struct xccdf_item *group);
00776 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
00778 struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
00779
00781 struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
00783 void xccdf_value_free(struct xccdf_item *val);
00785 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
00787 struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
00788
00790 struct xccdf_status *xccdf_status_new(void);
00792 struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
00794 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
00796 void xccdf_status_free(struct xccdf_status *status);
00798 struct xccdf_notice *xccdf_notice_new(void);
00800 void xccdf_notice_free(struct xccdf_notice *notice);
00802 struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
00803
00805 struct xccdf_model *xccdf_model_new(void);
00807 struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
00809 void xccdf_model_free(struct xccdf_model *model);
00810
00812 struct xccdf_ident *xccdf_ident_new(void);
00814 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
00816 struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
00818 void xccdf_ident_free(struct xccdf_ident *ident);
00819
00820
00822 struct xccdf_check *xccdf_check_new(void);
00824 void xccdf_check_free(struct xccdf_check *check);
00825
00827 struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
00829 struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
00831 struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
00833 struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref);
00834
00836 struct xccdf_check_content_ref *xccdf_check_content_ref_new(void);
00838 void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
00839
00841 struct xccdf_profile_note *xccdf_profile_note_new(void);
00843 void xccdf_profile_note_free(struct xccdf_profile_note *note);
00844
00846 struct xccdf_check_import *xccdf_check_import_new(void);
00848 void xccdf_check_import_free(struct xccdf_check_import *item);
00849
00851 struct xccdf_check_export *xccdf_check_export_new(void);
00853 void xccdf_check_export_free(struct xccdf_check_export *item);
00854
00856 struct xccdf_fix *xccdf_fix_new(void);
00858 struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
00860 void xccdf_fix_free(struct xccdf_fix *item);
00861
00863 struct xccdf_fixtext *xccdf_fixtext_new(void);
00865 struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
00867 void xccdf_fixtext_free(struct xccdf_fixtext *item);
00868
00870 void xccdf_select_free(struct xccdf_select *sel);
00872 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
00874 struct xccdf_select *xccdf_select_new(void);
00875
00877 struct xccdf_warning *xccdf_warning_new(void);
00879 struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
00881 void xccdf_warning_free(struct xccdf_warning * warn);
00882
00884 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
00885
00887 void xccdf_refine_value_free(struct xccdf_refine_value *rv);
00888
00889 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
00890
00895 OSCAP_DEPRECATED(void xccdf_cleanup(void));
00896
00902 struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
00903
00909 struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
00910
00916 struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
00917
00919 struct xccdf_plain_text *xccdf_plain_text_new(void);
00921 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
00923 void xccdf_plain_text_free(struct xccdf_plain_text *plain);
00925 struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
00926
00928 struct xccdf_result *xccdf_result_new(void);
00930 void xccdf_result_free(struct xccdf_result *item);
00932 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
00934 struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
00935
00937 struct xccdf_rule_result *xccdf_rule_result_new(void);
00939 struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
00941 void xccdf_rule_result_free(struct xccdf_rule_result *rr);
00942
00944 struct xccdf_identity *xccdf_identity_new(void);
00946 struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
00948 void xccdf_identity_free(struct xccdf_identity *identity);
00949
00951 struct xccdf_score *xccdf_score_new(void);
00953 struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
00955 void xccdf_score_free(struct xccdf_score *score);
00956
00958 struct xccdf_override *xccdf_override_new(void);
00960 struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
00962 void xccdf_override_free(struct xccdf_override *oride);
00963
00965 struct xccdf_message *xccdf_message_new(void);
00967 struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
00969 void xccdf_message_free(struct xccdf_message *msg);
00970
00972 struct xccdf_target_fact *xccdf_target_fact_new(void);
00974 struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
00976 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
00977
00979 struct xccdf_target_identifier *xccdf_target_identifier_new(void);
00981 struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier * ti);
00983 void xccdf_target_identifier_free(struct xccdf_target_identifier *ti);
00984
00986 struct xccdf_instance *xccdf_instance_new(void);
00988 struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
00990 void xccdf_instance_free(struct xccdf_instance *inst);
00991
00993 struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item);
00994
00995
01005 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
01010 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
01015 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
01020 void xccdf_item_iterator_reset(struct xccdf_item_iterator *it);
01021
01022
01027 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
01032 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
01037 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
01042 void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it);
01043
01044
01049 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
01054 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
01059 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
01064 void xccdf_status_iterator_reset(struct xccdf_status_iterator *it);
01065
01066
01071 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
01076 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
01081 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
01086 void xccdf_model_iterator_reset(struct xccdf_model_iterator *it);
01087
01088
01093 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
01098 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
01103 void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
01108 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
01109
01110
01115 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
01120 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
01125 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
01130 void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it);
01131
01132
01137 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
01142 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
01147 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
01152 void xccdf_select_iterator_reset(struct xccdf_select_iterator *it);
01153
01154
01159 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it);
01164 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it);
01169 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
01174 void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it);
01175
01176
01181 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
01186 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
01191 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
01196 void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it);
01197
01198
01203 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
01208 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
01213 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
01218 void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it);
01219
01220
01225 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
01230 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
01235 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
01240 void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it);
01241
01242
01247 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
01252 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
01257 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
01262 void xccdf_check_iterator_reset(struct xccdf_check_iterator *it);
01263
01264
01269 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
01274 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
01279 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
01284 void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it);
01285
01286
01291 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
01296 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
01301 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
01306 void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it);
01307
01308
01313 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
01318 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
01323 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
01328 void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it);
01329
01330
01335 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
01340 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
01345 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
01350 void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it);
01351
01352
01357 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
01362 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
01367 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
01372 void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it);
01373
01374
01379 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
01384 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
01389 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
01394 void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it);
01395
01396
01401 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it);
01406 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
01411 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
01412
01413
01418 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it);
01423 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it);
01428 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
01433 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
01434
01435
01440 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it);
01445 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
01450 void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
01455 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
01456
01457
01462 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it);
01467 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it);
01472 void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
01477 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
01478
01479
01484 struct xccdf_identity *xccdf_identity_iterator_next(struct xccdf_identity_iterator *it);
01489 bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it);
01494 void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it);
01499 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
01500
01501
01506 struct xccdf_rule_result *xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it);
01511 bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it);
01516 void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it);
01521 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
01522
01523
01528 struct xccdf_value_instance *xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it);
01533 bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it);
01538 void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it);
01543 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
01544
01545
01550 struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it);
01555 bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it);
01560 void xccdf_score_iterator_free(struct xccdf_score_iterator *it);
01565 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
01566
01567
01572 struct xccdf_target_fact *xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it);
01577 bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it);
01582 void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it);
01587 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
01588
01593 struct xccdf_target_identifier *xccdf_target_identifier_iterator_next(struct xccdf_target_identifier_iterator *it);
01598 bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it);
01603 void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it);
01608 void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it);
01609
01610
01615 struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it);
01620 bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it);
01625 void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it);
01630 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
01631
01632
01637 struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
01642 bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
01647 void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
01652 void xccdf_value_iterator_reset(struct xccdf_value_iterator *it);
01653
01654
01655
01656
01657
01668 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
01672 const char *xccdf_item_get_id(const struct xccdf_item *item);
01676 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
01680 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
01684 const char *xccdf_item_get_version(const struct xccdf_item *item);
01688 const char *xccdf_item_get_extends(const struct xccdf_item *item);
01692 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
01696 struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item);
01700 struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
01704 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
01708 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
01712 struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item);
01716 bool xccdf_item_get_hidden(const struct xccdf_item *item);
01720 bool xccdf_item_get_selected(const struct xccdf_item *item);
01724 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
01728 bool xccdf_item_get_abstract(const struct xccdf_item *item);
01732 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
01736 const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
01740 struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
01741
01747 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
01748
01758 const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item);
01759
01763 struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item);
01764
01768 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
01772 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
01776 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
01780 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
01784 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
01788 const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item);
01792 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
01796 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
01800 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
01804 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
01808 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
01812 struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark);
01816 struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
01820 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
01824 struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
01828 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
01832 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
01836 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
01838 bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
01840 const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
01841
01849 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
01850
01858 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
01859
01867 struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key);
01868
01874 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
01875
01881 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
01882
01888 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
01889
01897 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
01898
01902 struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
01903
01907 struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark);
01908
01912 struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark);
01913
01917 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01921 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
01925 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
01929 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01933 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
01937 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
01941 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01945 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01949 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
01953 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
01957 struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile);
01961 struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
01965 struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile);
01969 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
01973 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
01977 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
01981 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
01985 struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile);
01986
01992 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01993
01997 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
02001 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
02005 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
02009 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
02013 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
02017 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
02021 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
02025 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
02029 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
02033 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
02037 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
02041 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
02045 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
02049 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
02053 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
02057 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
02061 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
02065 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
02069 struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule);
02073 struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
02077 struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule);
02081 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
02085 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
02089 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
02093 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
02097 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
02101 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
02105 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
02109 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
02113 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
02117 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
02121 struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule);
02122
02123
02124
02125
02126
02127
02128 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
02129
02137 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
02138
02140 struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
02141
02143 const char *xccdf_group_get_id(const struct xccdf_group *group);
02145 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
02147 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
02149 const char *xccdf_group_get_version(const struct xccdf_group *group);
02151 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
02153 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
02155 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
02157 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
02159 float xccdf_group_get_weight(const struct xccdf_group *group);
02161 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
02163 const char *xccdf_group_get_extends(const struct xccdf_group *group);
02165 bool xccdf_group_get_abstract(const struct xccdf_group *group);
02167 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
02169 bool xccdf_group_get_hidden(const struct xccdf_group *group);
02171 bool xccdf_group_get_selected(const struct xccdf_group *group);
02173 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
02175 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
02177 struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group);
02179 struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
02181 struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group);
02183 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
02185 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
02187 struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group);
02188
02190 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
02192 const char *xccdf_value_get_id(const struct xccdf_value *value);
02194 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
02196 const char *xccdf_value_get_extends(const struct xccdf_value *value);
02198 bool xccdf_value_get_abstract(const struct xccdf_value *value);
02200 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
02202 bool xccdf_value_get_hidden(const struct xccdf_value *value);
02204 bool xccdf_value_get_interactive(const struct xccdf_value *value);
02206 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
02208 struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value);
02210 struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
02212 struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value);
02214 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
02216 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
02218 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
02220 struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
02222 bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
02224 struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item);
02226 struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value);
02227
02229 void xccdf_value_instance_free(struct xccdf_value_instance *inst);
02231 struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val);
02233 const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
02235 bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
02237 xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item);
02239 bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item);
02241 bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
02243 bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst);
02245 bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
02247 xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst);
02249 bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02251 const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
02253 bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
02255 bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst);
02257 bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
02259 xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst);
02261 bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
02263 const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
02265 bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
02267 xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst);
02269 bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02271 xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst);
02273 bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
02275 const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
02277 bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
02279 const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
02280
02286 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
02287
02288
02290 time_t xccdf_status_get_date(const struct xccdf_status *status);
02292 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
02294 const char *xccdf_status_type_to_text(xccdf_status_type_t id);
02295
02297 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
02299 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
02301 const char *xccdf_model_get_system(const struct xccdf_model *model);
02303 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
02305 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
02307 const char *xccdf_check_get_id(const struct xccdf_check *check);
02308
02314 bool xccdf_check_get_complex(const struct xccdf_check *check);
02315
02321 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
02323 const char *xccdf_check_get_system(const struct xccdf_check *check);
02325 const char *xccdf_check_get_selector(const struct xccdf_check *check);
02327 const char *xccdf_check_get_content(const struct xccdf_check *check);
02329 bool xccdf_check_get_multicheck(const struct xccdf_check *check);
02331 bool xccdf_check_get_negate(const struct xccdf_check *check);
02333
02339 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
02340
02342 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
02344 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
02346 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
02348 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
02350 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
02352 const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item);
02354 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
02356 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
02358 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
02359
02361 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
02363 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
02365 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
02367 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
02369 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
02371 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
02373 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
02375 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
02377 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
02379 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
02381 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
02383 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
02385 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
02387 struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
02389 const char *xccdf_value_get_version(const struct xccdf_value *value);
02391 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
02393 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
02395 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
02397 const char *xccdf_value_get_version_time(const struct xccdf_value *value);
02399 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
02401 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
02403 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
02404
02406 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
02408 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
02410 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
02412 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
02414 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
02416 const char *xccdf_item_get_version_time(const struct xccdf_item *item);
02418 float xccdf_item_get_weight(const struct xccdf_item *item);
02420 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
02422 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
02423
02425 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
02427 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
02429 const char *xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
02430
02432 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
02434 const char *xccdf_profile_get_version_time(const struct xccdf_profile *profile);
02436 bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile);
02438 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
02439
02441 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
02443 const char *xccdf_rule_get_version_time(const struct xccdf_rule *rule);
02445 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
02446
02448 const char *xccdf_group_get_version_time(const struct xccdf_group *group);
02450 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
02452 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
02453
02455 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
02457 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
02459 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
02460
02462 bool xccdf_select_get_selected(const struct xccdf_select *select);
02464 const char *xccdf_select_get_item(const struct xccdf_select *select);
02466 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
02467
02469 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
02471 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
02473 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
02475 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
02477 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
02479 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
02481 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
02483 xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
02485 bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item);
02487 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
02489 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
02491 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
02493 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
02495 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
02497 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
02498
02500 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
02502 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
02503
02505 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
02507 const char *xccdf_result_get_id(const struct xccdf_result *item);
02509 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
02511 const char *xccdf_result_get_version(const struct xccdf_result *item);
02513 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
02515 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
02517 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
02519 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
02521 const char *xccdf_result_get_profile(const struct xccdf_result *item);
02523 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
02525 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
02527 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
02529 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
02531 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
02533 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
02535 struct xccdf_target_identifier_iterator *xccdf_result_get_target_id_refs(const struct xccdf_result *item);
02537 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
02539 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
02541 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
02543 const char * xccdf_result_get_start_time(const struct xccdf_result *item);
02545 const char * xccdf_result_get_end_time(const struct xccdf_result *item);
02547 struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result);
02548
02550 const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
02552 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
02554 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
02556 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
02558 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
02560 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
02562 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
02564 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
02566 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
02568 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
02570 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
02572 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
02574 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
02576 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
02578 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
02580 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
02582 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
02584 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
02586 const char *xccdf_score_get_system(const struct xccdf_score *item);
02588 const char *xccdf_override_get_time(const struct xccdf_override *item);
02590 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
02592 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
02594 const char *xccdf_override_get_authority(const struct xccdf_override *item);
02596 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
02598 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
02600 const char *xccdf_message_get_content(const struct xccdf_message *item);
02602 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
02604 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
02606 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
02608 void* xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item);
02610 const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item);
02612 const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item);
02614 const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item);
02616 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
02618 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
02620 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
02622 struct xccdf_tailoring *xccdf_tailoring_import(const char *file, struct xccdf_benchmark *benchmark);
02624 const char *xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring);
02626 const char *xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring);
02628 const char *xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring);
02630 struct oscap_string_iterator *xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring);
02632 struct xccdf_profile_iterator *xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring);
02634 struct xccdf_status_iterator *xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring);
02636 struct oscap_reference_iterator *xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring);
02644 struct xccdf_profile *xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id);
02645
02646
02647
02648
02649
02657
02658 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
02660 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
02662 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
02664 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
02666 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
02668 bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval);
02670 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
02672 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
02674 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
02676 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
02678 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
02679
02681 bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata);
02682
02684 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
02685
02687 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
02689 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
02691 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
02693 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
02695 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval);
02697 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
02699 bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval);
02701 bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata);
02703 bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list);
02705 bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark* item, struct cpe_lang_model* cpe_lang_model);
02707 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
02709 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
02711 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
02713 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
02715 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
02717 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
02719 bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval);
02721 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
02723 bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring);
02725 bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata);
02726
02728 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
02730 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
02732 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
02734 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
02736 bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval);
02738 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
02740 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
02742 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
02744 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
02746 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
02748 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
02750
02752 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
02754 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
02756 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
02758 bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata);
02759
02761 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
02763 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
02765 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
02767 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
02769 bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval);
02771 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
02773 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
02775 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
02777 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
02779 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
02781 bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata);
02782
02784 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
02786 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
02788 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
02790 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
02792 bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval);
02794 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
02796 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
02798 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
02800 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
02802 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
02804 bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
02806 bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
02808 bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata);
02809
02811 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
02813 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
02814
02816 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
02818 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
02819
02821 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
02822
02824 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
02826 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
02828 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
02830 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
02832 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
02834 bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval);
02836 bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval);
02837
02839 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
02841 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
02842
02844 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
02846 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
02847
02849 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
02851 bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval);
02853 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
02854
02856 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
02858 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
02859
02861 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
02863 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
02865 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
02867 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
02869 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
02871 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
02873 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
02875 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
02876
02878 bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
02880 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
02882 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
02884 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
02886 bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
02888 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
02889
02891 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
02893 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
02894
02896 bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
02898 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
02900 struct xccdf_refine_rule *xccdf_refine_rule_new(void);
02901
02903 struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
02905 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
02907 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
02909 bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
02911 bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
02913 bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
02914
02916 struct xccdf_refine_value *xccdf_refine_value_new(void);
02918 struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
02920 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
02922 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
02924 bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
02925
02927 struct xccdf_setvalue *xccdf_setvalue_new(void);
02929 struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
02931 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
02933 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
02935 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
02937 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
02938
02940 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
02942 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
02944 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
02946 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
02948 bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval);
02950 bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval);
02952 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
02954 bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata);
02955
02957 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval);
02959 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
02961 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
02963 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
02965 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
02967 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
02969 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
02970
02972 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
02974 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
02976 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
02977
02979 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
02981 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
02983 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
02984
02986 bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval);
02988 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02990 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02992 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
02994 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
02995
02997 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
02999 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
03000
03002 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
03004 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
03006 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
03008 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
03009
03011 bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void* node);
03013 bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval);
03015 bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval);
03017 bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval);
03018
03020 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
03022 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
03024 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
03025
03026
03027 void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
03028
03029 void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
03030
03032 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
03033
03035 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
03037 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
03039 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
03041 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
03043 bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval);
03045 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
03047 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
03049
03051 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
03053 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
03055 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
03057 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
03059 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
03061 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
03063 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
03065 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
03067 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
03068
03070 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
03072 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
03074 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
03076 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
03077
03079 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
03081 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
03083 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
03085 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
03087 bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval);
03089 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
03090
03092 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
03094 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
03096 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
03098 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
03100 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
03102 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
03104 bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval);
03106 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
03108 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
03110 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
03112 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
03114 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
03116 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
03118 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
03119
03121 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
03123 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
03125 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
03127 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
03129 bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
03131 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
03133 bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval);
03135 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
03137 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
03139 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
03141 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
03143 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
03145 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
03146
03148 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
03150 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
03152 bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
03154 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
03156 bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval);
03158 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
03160 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
03161
03163 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
03165 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
03167 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
03169 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
03171 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
03173 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
03175 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
03177 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
03179 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
03181 bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval);
03183 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
03185 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
03187 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
03189 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
03191 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
03193 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
03195 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
03197 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
03199 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
03201 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
03203 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
03205 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
03207 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
03209 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
03211 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
03213 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
03215 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
03217 bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
03219 bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval);
03221 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
03223 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
03225 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
03227 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
03228
03230 bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
03232 bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
03234 bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
03236 bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
03238 bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
03240 bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
03241
03242
03243
03244
03245
03246
03248 void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it);
03250 void xccdf_model_iterator_remove(struct xccdf_model_iterator *it);
03252 void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it);
03254 void xccdf_item_iterator_remove(struct xccdf_item_iterator *it);
03256 void xccdf_status_iterator_remove(struct xccdf_status_iterator *it);
03258 void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it);
03260 void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it);
03262 void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it);
03264 void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it);
03266 void xccdf_select_iterator_remove(struct xccdf_select_iterator *it);
03268 void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it);
03270 void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it);
03272 void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it);
03274 void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it);
03276 void xccdf_check_iterator_remove(struct xccdf_check_iterator *it);
03278 void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it);
03280 void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it);
03282 void xccdf_value_iterator_remove(struct xccdf_value_iterator *it);
03284 void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it);
03286 void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it);
03288 void xccdf_result_iterator_remove(struct xccdf_result_iterator *it);
03290 void xccdf_override_iterator_remove(struct xccdf_override_iterator *it);
03292 void xccdf_message_iterator_remove(struct xccdf_message_iterator *it);
03294 void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it);
03296 void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it);
03298 void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it);
03300 void xccdf_score_iterator_remove(struct xccdf_score_iterator *it);
03302 void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it);
03304 void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it);
03306 void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it);
03307
03308
03309
03311 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it);
03313 void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it);
03315 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it);
03317 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
03319 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
03321 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
03323 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
03325 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it);
03327 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
03329 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
03331 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it);
03332
03333
03334
03335
03341 typedef enum xccdf_subst_type {
03342 XCCDF_SUBST_NONE,
03343 XCCDF_SUBST_SUB,
03344 XCCDF_SUBST_LINK,
03345 XCCDF_SUBST_INSTANCE
03346 } xccdf_subst_type_t;
03347
03358 typedef char*(*xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg);
03359
03360
03371 OSCAP_DEPRECATED(char* oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg));
03372
03373
03375
03376
03377 #endif