00001
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef XCCDF_H_
00033 #define XCCDF_H_
00034
00035 #include <stdbool.h>
00036 #include <time.h>
00037 #include "oscap.h"
00038
00039
00040
00041
00042
00051 typedef enum {
00052 XCCDF_BENCHMARK = 0x0100,
00053 XCCDF_PROFILE = 0x0200,
00054 XCCDF_RESULT = 0x0400,
00055 XCCDF_RULE = 0x1000,
00056 XCCDF_GROUP = 0x2000,
00057 XCCDF_VALUE = 0x4000,
00058
00060 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00062 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00064 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00065 } xccdf_type_t;
00066
00068 typedef enum {
00069 XCCDF_IFACE_HINT_NONE,
00070 XCCDF_IFACE_HINT_CHOICE,
00071 XCCDF_IFACE_HINT_TEXTLINE,
00072 XCCDF_IFACE_HINT_TEXT,
00073 XCCDF_IFACE_HINT_DATE,
00074 XCCDF_IFACE_HINT_DATETIME,
00075 } xccdf_interface_hint_t;
00076
00078 typedef enum {
00079 XCCDF_STATUS_NOT_SPECIFIED,
00080 XCCDF_STATUS_ACCEPTED,
00081 XCCDF_STATUS_DEPRECATED,
00082 XCCDF_STATUS_DRAFT,
00083 XCCDF_STATUS_INCOMPLETE,
00084 XCCDF_STATUS_INTERIM
00085 } xccdf_status_type_t;
00086
00088 typedef enum {
00089 XCCDF_TYPE_NUMBER = 1,
00090 XCCDF_TYPE_STRING,
00091 XCCDF_TYPE_BOOLEAN,
00092 } xccdf_value_type_t;
00093
00095 typedef enum {
00096 XCCDF_OPERATOR_EQUALS = 1,
00097 XCCDF_OPERATOR_NOT_EQUAL,
00098 XCCDF_OPERATOR_GREATER,
00099 XCCDF_OPERATOR_GREATER_EQUAL,
00100 XCCDF_OPERATOR_LESS,
00101 XCCDF_OPERATOR_LESS_EQUAL,
00102 XCCDF_OPERATOR_PATTERN_MATCH
00103 } xccdf_operator_t;
00104
00106 typedef enum {
00107 XCCDF_OPERATOR_AND = 0x0002,
00108 XCCDF_OPERATOR_OR = 0x0003,
00109 XCCDF_OPERATOR_NOT = 0x0100,
00110 XCCDF_OPERATOR_NAND = XCCDF_OPERATOR_AND | XCCDF_OPERATOR_NOT,
00111 XCCDF_OPERATOR_NOR = XCCDF_OPERATOR_OR | XCCDF_OPERATOR_NOT,
00112 XCCDF_OPERATOR_MASK = 0x00ff
00113 } xccdf_bool_operator_t;
00114
00116 typedef enum {
00117 XCCDF_UNKNOWN = 1,
00118 XCCDF_INFO,
00119 XCCDF_LOW,
00120 XCCDF_MEDIUM,
00121 XCCDF_HIGH
00122 } xccdf_level_t;
00123
00125 typedef enum {
00126 XCCDF_MSG_INFO = XCCDF_INFO,
00127 XCCDF_MSG_WARNING = XCCDF_LOW,
00128 XCCDF_MSG_ERROR = XCCDF_HIGH,
00129 } xccdf_message_severity_t;
00130
00132 typedef enum {
00133 XCCDF_ROLE_FULL = 1,
00134 XCCDF_ROLE_UNSCORED,
00135 XCCDF_ROLE_UNCHECKED
00136 } xccdf_role_t;
00137
00139 typedef enum {
00140 XCCDF_WARNING_GENERAL = 1,
00141 XCCDF_WARNING_FUNCTIONALITY,
00142 XCCDF_WARNING_PERFORMANCE,
00143 XCCDF_WARNING_HARDWARE,
00144 XCCDF_WARNING_LEGAL,
00145 XCCDF_WARNING_REGULATORY,
00146 XCCDF_WARNING_MANAGEMENT,
00147 XCCDF_WARNING_AUDIT,
00148 XCCDF_WARNING_DEPENDENCY
00149 } xccdf_warning_category_t;
00150
00152 typedef enum {
00153 XCCDF_STRATEGY_UNKNOWN,
00154 XCCDF_STRATEGY_CONFIGURE,
00155 XCCDF_STRATEGY_DISABLE,
00156 XCCDF_STRATEGY_ENABLE,
00157 XCCDF_STRATEGY_PATCH,
00158 XCCDF_STRATEGY_POLICY,
00159 XCCDF_STRATEGY_RESTRICT,
00160 XCCDF_STRATEGY_UPDATE,
00161 XCCDF_STRATEGY_COMBINATION
00162 } xccdf_strategy_t;
00163
00165 typedef enum {
00166 XCCDF_RESULT_PASS = 1,
00167 XCCDF_RESULT_FAIL,
00168 XCCDF_RESULT_ERROR,
00169 XCCDF_RESULT_UNKNOWN,
00170 XCCDF_RESULT_NOT_APPLICABLE,
00171 XCCDF_RESULT_NOT_CHECKED,
00172 XCCDF_RESULT_NOT_SELECTED,
00173 XCCDF_RESULT_INFORMATIONAL,
00174 XCCDF_RESULT_FIXED
00175 } xccdf_test_result_type_t;
00176
00177
00178
00179
00180
00184 typedef float xccdf_numeric;
00185
00190 struct xccdf_benchmark;
00191
00196 struct xccdf_profile;
00197
00202 struct xccdf_item;
00203
00208 struct xccdf_rule;
00209
00214 struct xccdf_group;
00215
00220 struct xccdf_value;
00221
00226 struct xccdf_result;
00227
00228
00229
00230
00231
00236 struct xccdf_notice;
00237
00242 struct xccdf_status;
00243
00248 struct xccdf_model;
00249
00254 struct xccdf_warning;
00255
00260 struct xccdf_select;
00261
00266 struct xccdf_setvalue;
00267
00272 struct xccdf_refine_value;
00273
00278 struct xccdf_refine_rule;
00279
00284 struct xccdf_ident;
00285
00290 struct xccdf_check;
00295 struct xccdf_check_content_ref;
00296
00301 struct xccdf_profile_note;
00302
00308 struct xccdf_check_import;
00309
00315 struct xccdf_check_export;
00316
00322 struct xccdf_fix;
00323
00329 struct xccdf_fixtext;
00330
00336 struct xccdf_reference;
00337
00338
00344 struct xccdf_identity;
00345
00351 struct xccdf_instance;
00352
00358 struct xccdf_message;
00359
00365 struct xccdf_override;
00366
00372 struct xccdf_rule_result;
00373
00379 struct xccdf_score;
00380
00386 struct xccdf_target_fact;
00387
00393 struct xccdf_plain_text;
00394
00400 struct xccdf_item_iterator;
00401
00407 struct xccdf_notice_iterator;
00408
00414 struct xccdf_status_iterator;
00415
00421 struct xccdf_reference_iterator;
00422
00428 struct xccdf_model_iterator;
00429
00435 struct xccdf_result_iterator;
00436
00442 struct xccdf_profile_iterator;
00443
00449 struct xccdf_select_iterator;
00450
00456 struct xccdf_value_iterator;
00457
00463 struct xccdf_setvalue_iterator;
00464
00469 struct xccdf_refine_value_iterator;
00470
00476 struct xccdf_refine_rule_iterator;
00477
00483 struct xccdf_ident_iterator;
00484
00490 struct xccdf_check_iterator;
00491
00497 struct xccdf_profile_note_iterator;
00498
00504 struct xccdf_fixtext_iterator;
00505
00511 struct xccdf_check_content_ref_iterator;
00512
00518 struct xccdf_check_import_iterator;
00519
00525 struct xccdf_fix_iterator;
00526
00532 struct xccdf_check_export_iterator;
00533
00539 struct xccdf_warning_iterator;
00540
00546 struct xccdf_instance_iterator;
00547
00553 struct xccdf_message_iterator;
00554
00560 struct xccdf_override_iterator;
00561
00567 struct xccdf_plain_text_iterator;
00568
00569
00570
00572 void xccdf_item_free(struct xccdf_item *item);
00573
00580 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
00581
00588 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
00589
00596 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
00597
00604 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
00605
00612 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
00613
00620 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
00621
00629 struct xccdf_benchmark *xccdf_benchmark_parse_xml(const char *filename);
00630
00632 struct xccdf_benchmark *xccdf_benchmark_new(void);
00634 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
00636 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
00637
00638
00644 const char * xccdf_benchmark_supported(void);
00645
00647 struct xccdf_profile *xccdf_profile_new(void);
00649 void xccdf_profile_free(struct xccdf_item *prof);
00651 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
00652
00654 struct xccdf_rule *xccdf_rule_new(void);
00656 void xccdf_rule_free(struct xccdf_item *rule);
00658 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
00659
00661 struct xccdf_group *xccdf_group_new(void);
00663 void xccdf_group_free(struct xccdf_item *group);
00665 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
00666
00668 struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
00670 void xccdf_value_free(struct xccdf_item *val);
00672 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
00673
00675 struct xccdf_status *xccdf_status_new(void);
00677 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
00679 void xccdf_status_free(struct xccdf_status *status);
00681 struct xccdf_notice *xccdf_notice_new(void);
00683 void xccdf_notice_free(struct xccdf_notice *notice);
00684
00686 struct xccdf_model *xccdf_model_new(void);
00688 void xccdf_model_free(struct xccdf_model *model);
00689
00691 struct xccdf_ident *xccdf_ident_new(void);
00693 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
00695 void xccdf_ident_free(struct xccdf_ident *ident);
00696
00697
00699 struct xccdf_check *xccdf_check_new(void);
00701 void xccdf_check_free(struct xccdf_check *check);
00702
00704 struct xccdf_check_content_ref *xccdf_check_content_ref_new(void);
00706 void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
00707
00709 struct xccdf_profile_note *xccdf_profile_note_new(void);
00711 void xccdf_profile_note_free(struct xccdf_profile_note *note);
00712
00714 struct xccdf_check_import *xccdf_check_import_new(void);
00716 void xccdf_check_import_free(struct xccdf_check_import *item);
00717
00719 struct xccdf_check_export *xccdf_check_export_new(void);
00721 void xccdf_check_export_free(struct xccdf_check_export *item);
00722
00724 struct xccdf_fix *xccdf_fix_new(void);
00726 void xccdf_fix_free(struct xccdf_fix *item);
00727
00729 struct xccdf_fixtext *xccdf_fixtext_new(void);
00731 void xccdf_fixtext_free(struct xccdf_fixtext *item);
00732
00734 void xccdf_select_free(struct xccdf_select *sel);
00736 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
00738 struct xccdf_select *xccdf_select_new(void);
00739
00741 struct xccdf_warning *xccdf_warning_new(void);
00743 void xccdf_warning_free(struct xccdf_warning * warn);
00744
00746 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
00747
00749 void xccdf_refine_value_free(struct xccdf_refine_value *rv);
00750
00751 void xccdf_setvalue_free(struct xccdf_setvalue *sv);
00752
00757 void xccdf_cleanup(void);
00758
00765 struct xccdf_benchmark *xccdf_benchmark_create(const char *id);
00766
00772 struct xccdf_group *xccdf_benchmark_append_new_group(const struct xccdf_benchmark *, const char *id);
00773
00779 struct xccdf_value *xccdf_benchmark_append_new_value(const struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
00780
00786 struct xccdf_rule *xccdf_benchmark_append_new_rule(const struct xccdf_benchmark *, const char *id);
00787
00789 struct xccdf_plain_text *xccdf_plain_text_new(void);
00791 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
00793 void xccdf_plain_text_free(struct xccdf_plain_text *plain);
00794
00796 struct xccdf_result *xccdf_result_new(void);
00798 void xccdf_result_free(struct xccdf_result *item);
00800 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
00801
00803 struct xccdf_rule_result *xccdf_rule_result_new(void);
00805 void xccdf_rule_result_free(struct xccdf_rule_result *rr);
00806
00808 struct xccdf_identity *xccdf_identity_new(void);
00810 void xccdf_identity_free(struct xccdf_identity *identity);
00811
00813 struct xccdf_score *xccdf_score_new(void);
00815 void xccdf_score_free(struct xccdf_score *score);
00816
00818 struct xccdf_override *xccdf_override_new(void);
00820 void xccdf_override_free(struct xccdf_override *oride);
00821
00823 struct xccdf_message *xccdf_message_new(void);
00825 void xccdf_message_free(struct xccdf_message *msg);
00826
00828 struct xccdf_target_fact *xccdf_target_fact_new(void);
00830 void xccdf_target_fact_free(struct xccdf_target_fact *fact);
00831
00833 struct xccdf_instance *xccdf_instance_new(void);
00835 void xccdf_instance_free(struct xccdf_instance *inst);
00836
00837
00838
00839
00840
00841
00842
00843
00848
00849
00850
00851
00852
00862 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
00867 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
00872 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
00873
00874
00879 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
00884 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
00889 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
00890
00891
00896 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
00901 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
00906 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
00907
00908
00913 struct xccdf_reference *xccdf_reference_iterator_next(struct xccdf_reference_iterator *it);
00918 bool xccdf_reference_iterator_has_more(struct xccdf_reference_iterator *it);
00923 void xccdf_reference_iterator_free(struct xccdf_reference_iterator *it);
00924
00925
00930 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
00935 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
00940 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
00941
00942
00947 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
00952 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
00957 void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
00958
00959
00964 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
00969 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
00974 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
00975
00976
00981 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
00986 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
00991 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
00992
00993
00998 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it);
01003 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it);
01008 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
01009
01010
01015 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
01020 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
01025 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
01026
01027
01032 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
01037 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
01042 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
01043
01044
01049 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
01054 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
01059 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
01060
01061
01066 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
01071 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
01076 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
01077
01078
01083 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
01088 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
01093 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
01094
01095
01100 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
01105 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
01110 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
01111
01112
01117 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
01122 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
01127 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
01128
01129
01134 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
01139 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
01144 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
01145
01146
01151 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
01156 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
01161 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
01162
01163
01168 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
01173 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
01178 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
01179
01180
01185 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it);
01190 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
01195 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
01196
01197
01202 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it);
01207 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it);
01212 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
01213
01214
01219 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it);
01224 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
01229 void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
01230
01231
01236 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it);
01241 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it);
01246 void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
01247
01248
01253 struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it);
01258 bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it);
01263 void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it);
01264
01265
01270 struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
01275 bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
01280 void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
01281
01282
01283
01284
01285
01296 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
01300 const char *xccdf_item_get_id(const struct xccdf_item *item);
01304 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
01308 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
01312 const char *xccdf_item_get_version(const struct xccdf_item *item);
01316 const char *xccdf_item_get_extends(const struct xccdf_item *item);
01320 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
01324 struct xccdf_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
01328 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
01332 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
01336 xccdf_status_type_t xccdf_item_get_current_status(const struct xccdf_item *item);
01340 bool xccdf_item_get_hidden(const struct xccdf_item *item);
01344 bool xccdf_item_get_selected(const struct xccdf_item *item);
01348 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
01352 bool xccdf_item_get_abstract(const struct xccdf_item *item);
01356 bool xccdf_item_get_interactive(const struct xccdf_item *item);
01360 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
01361
01367 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
01368
01372 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
01376 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
01380 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
01384 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
01388 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
01392 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
01396 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
01400 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
01404 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
01408 const char *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
01412 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
01416 struct xccdf_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
01420 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
01424 xccdf_status_type_t xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
01428 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
01432 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
01436 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
01437
01445 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
01446
01454 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
01455
01461 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
01462
01468 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
01469
01475 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
01476
01484 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
01485
01489 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01493 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
01497 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
01501 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01505 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
01509 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
01513 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01517 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01521 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
01525 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
01529 struct xccdf_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
01533 xccdf_status_type_t xccdf_profile_get_status_current(const struct xccdf_profile *profile);
01537
01541 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
01545 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
01549 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
01553 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
01554
01560 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01561
01565 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01569 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
01573 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
01577 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
01581 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
01585 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
01589 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
01593 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
01597 struct xccdf_check *xccdf_rule_get_check(const struct xccdf_rule *rule);
01601 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
01605 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
01609 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
01613 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
01617 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
01621 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
01625 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
01629 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
01633 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
01637 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
01641 struct xccdf_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
01645 xccdf_status_type_t xccdf_rule_get_status_current(const struct xccdf_rule *rule);
01649 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
01653 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
01657 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
01661 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
01665 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
01669 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
01673 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
01677 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
01681 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
01685 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
01686
01687
01688
01689
01690
01691
01692 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
01693
01701 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *benchmark);
01702
01704 const char *xccdf_group_get_id(const struct xccdf_group *group);
01706 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
01708 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
01710 const char *xccdf_group_get_version(const struct xccdf_group *group);
01712 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
01714 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
01716 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
01718 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
01720 float xccdf_group_get_weight(const struct xccdf_group *group);
01722 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
01724 const char *xccdf_group_get_extends(const struct xccdf_group *group);
01726 bool xccdf_group_get_abstract(const struct xccdf_group *group);
01728 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
01730 bool xccdf_group_get_hidden(const struct xccdf_group *group);
01732 bool xccdf_group_get_selected(const struct xccdf_group *group);
01734 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
01736 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
01738 struct xccdf_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
01740 xccdf_status_type_t xccdf_group_get_status_current(const struct xccdf_group *group);
01742 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
01744 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
01745
01747 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
01749 const char *xccdf_value_get_id(const struct xccdf_value *value);
01751 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
01753 const char *xccdf_value_get_extends(const struct xccdf_value *value);
01755 bool xccdf_value_get_abstract(const struct xccdf_value *value);
01757 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
01759 bool xccdf_value_get_hidden(const struct xccdf_value *value);
01761 bool xccdf_value_get_interactive(const struct xccdf_value *value);
01763 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
01765 struct xccdf_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
01767 xccdf_status_type_t xccdf_value_get_status_current(const struct xccdf_value *value);
01769 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
01771 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
01773 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
01775 const char *xccdf_value_get_selector(const struct xccdf_value *value);
01776
01782 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
01783
01790 bool xccdf_value_get_set_selector(struct xccdf_item *value, const char *selector);
01791
01798 const char *xccdf_value_get_value_string(const struct xccdf_value *value);
01799
01806 xccdf_numeric xccdf_value_get_value_number(const struct xccdf_value *value);
01807
01815 bool xccdf_value_get_value_boolean(const struct xccdf_value *value);
01816
01823 const char *xccdf_value_get_defval_string(const struct xccdf_value *value);
01824
01831 xccdf_numeric xccdf_value_get_defval_number(const struct xccdf_value *value);
01832
01840 bool xccdf_value_get_defval_boolean(const struct xccdf_value *value);
01841
01847 xccdf_numeric xccdf_value_get_lower_bound(const struct xccdf_value *value);
01848
01854 xccdf_numeric xccdf_value_get_upper_bound(const struct xccdf_value *value);
01855
01861 const char *xccdf_value_get_match(const struct xccdf_value *value);
01862
01869 bool xccdf_value_get_must_match(const struct xccdf_value *value);
01870
01872 time_t xccdf_status_get_date(const struct xccdf_status *status);
01874 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
01876 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
01878 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
01880 const char *xccdf_model_get_system(const struct xccdf_model *model);
01882
01884 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
01886 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
01888 const char *xccdf_check_get_id(const struct xccdf_check *check);
01889
01895 bool xccdf_check_get_complex(const struct xccdf_check *check);
01896
01902 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
01904 const char *xccdf_check_get_system(const struct xccdf_check *check);
01906 const char *xccdf_check_get_selector(const struct xccdf_check *check);
01908 const char *xccdf_check_get_content(const struct xccdf_check *check);
01910
01916 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
01917
01919 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
01921 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
01923 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
01925 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
01927 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
01929 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
01931 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
01933 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
01934
01936 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
01938 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
01940 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
01942 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
01944 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
01946 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
01948 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
01950 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
01952 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
01954 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
01956 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
01958 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
01960 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
01962 const char *xccdf_value_get_version(const struct xccdf_value *value);
01964 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
01966 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
01968 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
01970 time_t xccdf_value_get_version_time(const struct xccdf_value *value);
01972 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
01974 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
01976 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
01977
01979 char * xccdf_value_get_selected_value(const struct xccdf_value * value);
01980
01982 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
01984 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
01986 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
01988 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
01990 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
01992 time_t xccdf_item_get_version_time(const struct xccdf_item *item);
01994 float xccdf_item_get_weight(const struct xccdf_item *item);
01996 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
01998 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
01999
02001 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
02003 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
02005 time_t xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
02006
02008 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
02010 time_t xccdf_profile_get_version_time(const struct xccdf_profile *profile);
02012 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
02013
02015 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
02017 time_t xccdf_rule_get_version_time(const struct xccdf_rule *rule);
02019 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
02020
02022 time_t xccdf_group_get_version_time(const struct xccdf_group *group);
02024 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
02026 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
02027
02029 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
02031 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
02033 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
02035 const char *xccdf_fixtext_get_content(const struct xccdf_fixtext *fixtext);
02036
02038 struct xccdf_reference *xccdf_reference_new(void);
02040 void xccdf_reference_free(struct xccdf_reference * ref);
02042 bool xccdf_reference_get_override(const struct xccdf_reference *reference);
02044 const char *xccdf_reference_get_href(const struct xccdf_reference *reference);
02046 const char *xccdf_reference_get_content(const struct xccdf_reference *reference);
02048 const char *xccdf_reference_get_lang(const struct xccdf_reference *reference);
02049
02051 bool xccdf_select_get_selected(const struct xccdf_select *select);
02053 const char *xccdf_select_get_item(const struct xccdf_select *select);
02055 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
02056
02058 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
02060 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
02062 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
02064 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
02066 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
02068 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr);
02070 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
02072 xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
02073 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
02075 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
02077 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv);
02079 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
02081 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
02083 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
02084
02086 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
02088 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
02089
02091 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
02093 const char *xccdf_result_get_id(const struct xccdf_result *item);
02095 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
02097 const char *xccdf_result_get_version(const struct xccdf_result *item);
02099 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
02101 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
02103 const char *xccdf_result_get_test_system(const struct xccdf_result *item);
02105 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
02107 const char *xccdf_result_get_profile(const struct xccdf_result *item);
02109 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
02111 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
02113 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
02115 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
02117 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
02119 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
02121 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
02123 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
02125 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
02126
02128 time_t xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
02130 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
02132 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
02134 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
02136 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item);
02138 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
02140 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
02142 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
02144 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
02146 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
02148 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
02150 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
02152 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
02154 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
02156 bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
02158 const char *xccdf_identity_get_name(const struct xccdf_identity *item);
02160 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
02162 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
02164 const char *xccdf_score_get_system(const struct xccdf_score *item);
02166 time_t xccdf_override_get_time(const struct xccdf_override *item);
02168 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item);
02170 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item);
02172 const char *xccdf_override_get_authority(const struct xccdf_override *item);
02174 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
02176 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item);
02178 const char *xccdf_message_get_content(const struct xccdf_message *item);
02180 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item);
02182 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
02184 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
02186 const char *xccdf_instance_get_context(const struct xccdf_instance *item);
02188 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
02190 const char *xccdf_instance_get_content(const struct xccdf_instance *item);
02192 char * xccdf_value_get_selected_value(const struct xccdf_value * value);
02193
02194
02195
02196
02197
02198
02206
02207 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
02209 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
02211 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
02213 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
02215 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
02217 bool xccdf_item_set_version_time(struct xccdf_item *item, time_t newval);
02219 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
02221 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
02223 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
02225 bool xccdf_item_set_interactive(struct xccdf_item *item, bool newval);
02227 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
02229 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
02230
02232 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
02233
02235 bool xccdf_benchmark_set_metadata(struct xccdf_benchmark *item, const char *newval);
02237 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
02239 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
02241 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
02243 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
02245 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, time_t newval);
02247 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
02248
02250 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
02252 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
02254 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
02256 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
02258 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
02260 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
02262 bool xccdf_profile_set_version_time(struct xccdf_profile *item, time_t newval);
02264 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
02265
02267 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
02269 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
02271 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
02273 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
02275 bool xccdf_rule_set_version_time(struct xccdf_rule *item, time_t newval);
02277 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
02279 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
02281 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
02283 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
02285 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
02287 bool xccdf_rule_set_interactive(struct xccdf_rule *item, bool newval);
02289 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
02291
02293 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
02295 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
02297 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
02299 bool xccdf_rule_set_check(struct xccdf_rule *item, struct xccdf_check *newval);
02300
02302 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
02304 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
02306 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
02308 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
02310 bool xccdf_group_set_version_time(struct xccdf_group *item, time_t newval);
02312 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
02314 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
02316 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
02318 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
02320 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
02321
02323 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
02325 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
02327 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
02329 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
02331 bool xccdf_value_set_version_time(struct xccdf_value *item, time_t newval);
02333 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
02335 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
02337 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
02339 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
02341 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
02343 bool xccdf_value_set_oper(struct xccdf_item * item, xccdf_operator_t oper);
02344
02346 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
02348 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
02349
02351 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
02353 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
02354
02356 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
02357
02359 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
02361 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
02363 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
02365 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
02367 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
02368
02370 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
02372 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
02373
02375 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
02377 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
02378
02380 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
02382 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
02383
02385 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
02387 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
02388
02390 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
02392 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
02394 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
02396 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
02398 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
02400 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
02402 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
02404 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
02405
02407 bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
02409 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
02411 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
02413 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
02415 bool xccdf_fixtext_set_content(struct xccdf_fixtext *obj, const char *newval);
02417 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
02418
02420 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
02422 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
02423
02425 bool xccdf_reference_set_lang(struct xccdf_reference *obj, const char *newval);
02427 bool xccdf_reference_set_href(struct xccdf_reference *obj, const char *newval);
02429 bool xccdf_reference_set_content(struct xccdf_reference *obj, const char *newval);
02431 bool xccdf_reference_set_override(struct xccdf_reference *obj, bool newval);
02432
02434 bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
02436 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
02438 struct xccdf_refine_rule *xccdf_refine_rule_new(void);
02439
02441 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
02443 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
02445 bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
02447 bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
02449 bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
02450
02452 struct xccdf_refine_value *xccdf_refine_value_new(void);
02454 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
02456 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
02458 bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
02459
02461 struct xccdf_setvalue *xccdf_setvalue_new(void);
02463 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
02465 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
02467 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
02469 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
02470
02472 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
02474 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
02476 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
02478 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
02480 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
02482 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, time_t newval);
02484 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
02486 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
02488 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
02490 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
02492 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
02494 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
02495
02497 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
02499 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
02501 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
02502
02504 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
02506 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
02508 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
02509
02511 bool xccdf_override_set_time(struct xccdf_override *obj, time_t newval);
02513 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02515 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
02517 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
02519 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
02520
02522 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
02524 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
02525
02527 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
02529 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
02531 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
02533 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
02534
02536 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
02538 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
02540 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
02541
02543 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
02544
02546 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
02548 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
02550 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct xccdf_reference *newval);
02552 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
02554 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
02556 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
02558
02560 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
02562 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
02564 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
02566 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
02568 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
02570 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
02572 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
02574 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
02576 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
02577
02579 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
02581 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
02583 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
02585 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
02586
02588 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
02590 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
02592 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct xccdf_reference *newval);
02594 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
02596 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
02597
02599 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
02601 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
02603 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
02605 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
02607 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct xccdf_reference *newval);
02609 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
02611 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
02613 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
02615 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
02617 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
02619 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
02621 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
02623 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
02624
02626 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
02628 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
02630 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
02632 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
02634 bool xccdf_group_add_reference(struct xccdf_group *item, struct xccdf_reference *newval);
02636 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
02638 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
02640 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
02642 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
02644 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
02646 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
02648 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
02649
02651 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
02653 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
02655 bool xccdf_value_add_reference(struct xccdf_value *item, struct xccdf_reference *newval);
02657 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
02659 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
02661 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
02662
02664 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
02666 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
02668 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
02670 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
02672 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
02674 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
02676 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
02678 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
02680 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
02682 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
02684 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
02686 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
02688 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
02690 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
02692 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
02694 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
02696 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
02698 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
02700
02702 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
02704 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
02706 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
02708 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
02710 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
02712 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
02714 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
02716 bool xccdf_item_add_reference(struct xccdf_item *item, struct xccdf_reference *newval);
02718 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
02720 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
02722 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
02724 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
02725
02726
02727
02728
02729
02730
02731
02732
02733 #endif