00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00033 #ifndef XCCDF_H_
00034 #define XCCDF_H_
00035
00036 #include <stdbool.h>
00037 #include <time.h>
00038 #include "oscap.h"
00039
00040
00041
00042
00043
00044
00053 typedef enum {
00054 XCCDF_BENCHMARK = 0x0100,
00055 XCCDF_PROFILE = 0x0200,
00056 XCCDF_RESULT = 0x0400,
00057 XCCDF_RULE = 0x1000,
00058 XCCDF_GROUP = 0x2000,
00059 XCCDF_VALUE = 0x4000,
00060
00061 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00063 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00065 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00066 } xccdf_type_t;
00067
00069 typedef enum {
00070 XCCDF_IFACE_HINT_NONE,
00071 XCCDF_IFACE_HINT_CHOICE,
00072 XCCDF_IFACE_HINT_TEXTLINE,
00073 XCCDF_IFACE_HINT_TEXT,
00074 XCCDF_IFACE_HINT_DATE,
00075 XCCDF_IFACE_HINT_DATETIME,
00076 } xccdf_interface_hint_t;
00077
00079 typedef enum {
00080 XCCDF_STATUS_NOT_SPECIFIED,
00081 XCCDF_STATUS_ACCEPTED,
00082 XCCDF_STATUS_DEPRECATED,
00083 XCCDF_STATUS_DRAFT,
00084 XCCDF_STATUS_INCOMPLETE,
00085 XCCDF_STATUS_INTERIM
00086 } xccdf_status_type_t;
00087
00089 typedef enum {
00090 XCCDF_TYPE_NUMBER = 1,
00091 XCCDF_TYPE_STRING,
00092 XCCDF_TYPE_BOOLEAN,
00093 } xccdf_value_type_t;
00094
00096 typedef enum {
00097 XCCDF_OPERATOR_EQUALS = 1,
00098 XCCDF_OPERATOR_NOT_EQUAL,
00099 XCCDF_OPERATOR_GREATER,
00100 XCCDF_OPERATOR_GREATER_EQUAL,
00101 XCCDF_OPERATOR_LESS,
00102 XCCDF_OPERATOR_LESS_EQUAL,
00103 XCCDF_OPERATOR_PATTERN_MATCH
00104 } xccdf_operator_t;
00105
00107 typedef enum {
00108 XCCDF_OPERATOR_AND = 0x0002,
00109 XCCDF_OPERATOR_OR = 0x0003,
00110 XCCDF_OPERATOR_NOT = 0x0100,
00111 XCCDF_OPERATOR_NAND = XCCDF_OPERATOR_AND | XCCDF_OPERATOR_NOT,
00112 XCCDF_OPERATOR_NOR = XCCDF_OPERATOR_OR | XCCDF_OPERATOR_NOT,
00113 XCCDF_OPERATOR_MASK = 0x00ff
00114 } xccdf_bool_operator_t;
00115
00117 typedef enum {
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_GENERAL = 1,
00142 XCCDF_WARNING_FUNCTIONALITY,
00143 XCCDF_WARNING_PERFORMANCE,
00144 XCCDF_WARNING_HARDWARE,
00145 XCCDF_WARNING_LEGAL,
00146 XCCDF_WARNING_REGULATORY,
00147 XCCDF_WARNING_MANAGEMENT,
00148 XCCDF_WARNING_AUDIT,
00149 XCCDF_WARNING_DEPENDENCY
00150 } xccdf_warning_category_t;
00151
00153 typedef enum {
00154 XCCDF_STRATEGY_UNKNOWN,
00155 XCCDF_STRATEGY_CONFIGURE,
00156 XCCDF_STRATEGY_DISABLE,
00157 XCCDF_STRATEGY_ENABLE,
00158 XCCDF_STRATEGY_PATCH,
00159 XCCDF_STRATEGY_POLICY,
00160 XCCDF_STRATEGY_RESTRICT,
00161 XCCDF_STRATEGY_UPDATE,
00162 XCCDF_STRATEGY_COMBINATION
00163 } xccdf_strategy_t;
00164
00166 typedef enum {
00167 XCCDF_RESULT_PASS = 1,
00168 XCCDF_RESULT_FAIL,
00169 XCCDF_RESULT_ERROR,
00170 XCCDF_RESULT_UNKNOWN,
00171 XCCDF_RESULT_NOT_APPLICABLE,
00172 XCCDF_RESULT_NOT_CHECKED,
00173 XCCDF_RESULT_NOT_SELECTED,
00174 XCCDF_RESULT_INFORMATIONAL,
00175 XCCDF_RESULT_FIXED
00176 } xccdf_test_result_type_t;
00177
00178
00179
00180
00181
00185 typedef float xccdf_numeric;
00186
00187
00188
00189
00190
00194 struct xccdf_item;
00195
00199 struct xccdf_benchmark;
00200
00204 struct xccdf_profile;
00205
00209 struct xccdf_rule;
00210
00214 struct xccdf_group;
00215
00219 struct xccdf_value;
00220
00224 struct xccdf_result;
00225
00226
00227
00228
00229
00230
00234 struct xccdf_notice;
00235
00239 struct xccdf_status;
00240
00244 struct xccdf_model;
00245
00249 struct xccdf_warning;
00250
00255 struct xccdf_select;
00256
00261 struct xccdf_set_value;
00262
00267 struct xccdf_refine_value;
00268
00273 struct xccdf_refine_rule;
00274
00279 struct xccdf_ident;
00280
00285 struct xccdf_check;
00286
00291 struct xccdf_check_content_ref;
00292
00297 struct xccdf_profile_note;
00298
00303 struct xccdf_check_import;
00304
00309 struct xccdf_check_export;
00310
00315 struct xccdf_fix;
00316
00321 struct xccdf_fixtext;
00322
00323
00324
00325
00326
00327
00328
00333 struct xccdf_item_iterator;
00335 struct xccdf_item* xccdf_item_iterator_next(struct xccdf_item_iterator* it);
00337 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator* it);
00339 void xccdf_item_iterator_free(struct xccdf_item_iterator* it);
00340
00345 struct xccdf_notice_iterator;
00347 struct xccdf_notice* xccdf_notice_iterator_next(struct xccdf_notice_iterator* it);
00349 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator* it);
00351 void xccdf_notice_iterator_free(struct xccdf_notice_iterator* it);
00352
00357 struct xccdf_status_iterator;
00359 struct xccdf_status* xccdf_status_iterator_next(struct xccdf_status_iterator* it);
00361 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator* it);
00363 void xccdf_status_iterator_free(struct xccdf_status_iterator* it);
00364
00369 struct xccdf_reference_iterator;
00371 struct xccdf_reference* xccdf_reference_iterator_next(struct xccdf_reference_iterator* it);
00373 bool xccdf_reference_iterator_has_more(struct xccdf_reference_iterator* it);
00375 void xccdf_reference_iterator_free(struct xccdf_reference_iterator* it);
00376
00381 struct xccdf_model_iterator;
00383 struct xccdf_model* xccdf_model_iterator_next(struct xccdf_model_iterator* it);
00385 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator* it);
00387 void xccdf_model_iterator_free(struct xccdf_model_iterator* it);
00388
00393 struct xccdf_profile_iterator;
00395 struct xccdf_profile* xccdf_profile_iterator_next(struct xccdf_profile_iterator* it);
00397 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator* it);
00399 void xccdf_profile_iterator_free(struct xccdf_profile_iterator* it);
00400
00405 struct xccdf_select_iterator;
00407 struct xccdf_select* xccdf_select_iterator_next(struct xccdf_select_iterator* it);
00409 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator* it);
00411 void xccdf_select_iterator_free(struct xccdf_select_iterator* it);
00412
00417 struct xccdf_set_value_iterator;
00419 struct xccdf_set_value* xccdf_set_value_iterator_next(struct xccdf_set_value_iterator* it);
00421 bool xccdf_set_value_iterator_has_more(struct xccdf_set_value_iterator* it);
00423 void xccdf_set_value_iterator_free(struct xccdf_set_value_iterator* it);
00424
00429 struct xccdf_refine_value_iterator;
00431 struct xccdf_refine_value* xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator* it);
00433 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator* it);
00435 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator* it);
00436
00441 struct xccdf_refine_rule_iterator;
00443 struct xccdf_refine_rule* xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator* it);
00445 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator* it);
00447 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator* it);
00448
00453 struct xccdf_ident_iterator;
00455 struct xccdf_ident* xccdf_ident_iterator_next(struct xccdf_ident_iterator* it);
00457 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator* it);
00459 void xccdf_ident_iterator_free(struct xccdf_ident_iterator* it);
00460
00465 struct xccdf_check_iterator;
00467 struct xccdf_check* xccdf_check_iterator_next(struct xccdf_check_iterator* it);
00469 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator* it);
00471 void xccdf_check_iterator_free(struct xccdf_check_iterator* it);
00472
00477 struct xccdf_check_content_ref_iterator;
00479 struct xccdf_check_content_ref* xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator* it);
00481 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator* it);
00483 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator* it);
00484
00489 struct xccdf_profile_note_iterator;
00491 struct xccdf_profile_note* xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator* it);
00493 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator* it);
00495 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator* it);
00496
00501 struct xccdf_check_import_iterator;
00503 struct xccdf_check_import* xccdf_check_import_iterator_next(struct xccdf_check_import_iterator* it);
00505 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator* it);
00507 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator* it);
00508
00513 struct xccdf_check_export_iterator;
00515 struct xccdf_check_export* xccdf_check_export_iterator_next(struct xccdf_check_export_iterator* it);
00517 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator* it);
00519 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator* it);
00520
00525 struct xccdf_fix_iterator;
00527 struct xccdf_fix* xccdf_fix_iterator_next(struct xccdf_fix_iterator* it);
00529 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator* it);
00531 void xccdf_fix_iterator_free(struct xccdf_fix_iterator* it);
00532
00537 struct xccdf_fixtext_iterator;
00539 struct xccdf_fixtext* xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator* it);
00541 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator* it);
00543 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator* it);
00544
00545
00546
00547
00548
00549
00554 xccdf_type_t xccdf_item_get_type(const struct xccdf_item* item);
00555
00560 const char* xccdf_item_get_id(const struct xccdf_item* item);
00561
00566 const char* xccdf_item_get_title(const struct xccdf_item* item);
00567
00572 const char* xccdf_item_get_description(const struct xccdf_item* item);
00573
00578 const char* xccdf_item_get_version(const struct xccdf_item* item);
00579
00584 struct xccdf_item* xccdf_item_get_extends(const struct xccdf_item* item);
00585
00591 struct xccdf_item* xccdf_item_get_parent(const struct xccdf_item* item);
00592
00597 struct xccdf_status_iterator* xccdf_item_get_statuses(const struct xccdf_item* item);
00598
00603 struct xccdf_reference_iterator* xccdf_item_get_references(const struct xccdf_item* item);
00604
00609 xccdf_status_type_t xccdf_item_get_status_current(const struct xccdf_item* item);
00610
00617
00618
00625
00626
00633
00634
00641
00642
00649
00650
00657
00658
00659
00660
00661
00662
00670 struct xccdf_benchmark* xccdf_benchmark_new_from_file(const char* filename);
00671
00676 const char* xccdf_benchmark_get_id(const struct xccdf_benchmark* benchmark);
00677
00682 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark* benchmark);
00683
00688 const char* xccdf_benchmark_get_title(const struct xccdf_benchmark* benchmark);
00689
00694 const char* xccdf_benchmark_get_description(const struct xccdf_benchmark* benchmark);
00695
00700 const char* xccdf_benchmark_get_version(const struct xccdf_benchmark* benchmark);
00701
00706 const char* xccdf_benchmark_get_style(const struct xccdf_benchmark* benchmark);
00707
00712 const char* xccdf_benchmark_get_style_href(const struct xccdf_benchmark* benchmark);
00713
00718 const char* xccdf_benchmark_get_front_matter(const struct xccdf_benchmark* benchmark);
00719
00724 const char* xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark* benchmark);
00725
00730 const char* xccdf_benchmark_get_metadata(const struct xccdf_benchmark* benchmark);
00731
00739 const char* xccdf_benchmark_get_plain_text(const struct xccdf_benchmark* benchmark, const char* id);
00740
00748 struct xccdf_item* xccdf_benchmark_get_item(const struct xccdf_benchmark* benchmark, const char* id);
00749
00754 struct xccdf_status_iterator* xccdf_benchmark_get_statuses(const struct xccdf_benchmark* benchmark);
00755
00760 struct xccdf_reference_iterator* xccdf_benchmark_get_references(const struct xccdf_benchmark* benchmark);
00761
00766 struct oscap_string_iterator* xccdf_benchmark_get_platforms(const struct xccdf_benchmark* benchmark);
00767
00773 struct xccdf_notice_iterator* xccdf_benchmark_get_notices(const struct xccdf_benchmark* benchmark);
00774
00780 struct xccdf_model_iterator* xccdf_benchmark_get_models(const struct xccdf_benchmark* benchmark);
00781
00787 struct xccdf_profile_iterator* xccdf_benchmark_get_profiles(const struct xccdf_benchmark* benchmark);
00788
00796 struct xccdf_item_iterator* xccdf_benchmark_get_content(const struct xccdf_benchmark* benchmark);
00797
00802 xccdf_status_type_t xccdf_benchmark_get_status_current(const struct xccdf_benchmark* benchmark);
00803
00809 void xccdf_benchmark_free(struct xccdf_benchmark* benchmark);
00810
00811
00812
00813
00814
00815
00816
00821 const char* xccdf_profile_get_id(const struct xccdf_profile* profile);
00822
00827 const char* xccdf_profile_get_title(const struct xccdf_profile* profile);
00828
00833 const char* xccdf_profile_get_description(const struct xccdf_profile* profile);
00834
00839 const char* xccdf_profile_get_version(const struct xccdf_profile* profile);
00840
00845 struct xccdf_profile* xccdf_profile_get_extends(const struct xccdf_profile* profile);
00846
00851 struct xccdf_benchmark* xccdf_profile_get_benchmark(const struct xccdf_profile* profile);
00852
00857 bool xccdf_profile_get_abstract(const struct xccdf_profile* profile);
00858
00863 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile* profile);
00864
00869 struct oscap_string_iterator* xccdf_profile_get_platforms(const struct xccdf_profile* profile);
00870
00875 struct xccdf_status_iterator* xccdf_profile_get_statuses(const struct xccdf_profile* profile);
00876
00881 struct xccdf_reference_iterator* xccdf_profile_get_references(const struct xccdf_profile* profile);
00882
00887 xccdf_status_type_t xccdf_profile_get_status_current(const struct xccdf_profile* profile);
00888
00893
00894
00899 struct xccdf_select_iterator* xccdf_profile_get_selects(const struct xccdf_profile* profile);
00900
00905 struct xccdf_set_value_iterator* xccdf_profile_get_set_values(const struct xccdf_profile* profile);
00906
00911 struct xccdf_refine_value_iterator* xccdf_profile_get_refine_values(const struct xccdf_profile* profile);
00912
00917 struct xccdf_refine_rule_iterator* xccdf_profile_get_refine_rules(const struct xccdf_profile* profile);
00918
00919
00920
00921
00922
00923
00924
00929 const char* xccdf_rule_get_id(const struct xccdf_rule* rule);
00930
00935 const char* xccdf_rule_get_title(const struct xccdf_rule* rule);
00936
00941 const char* xccdf_rule_get_description(const struct xccdf_rule* rule);
00942
00947 const char* xccdf_rule_get_version(const struct xccdf_rule* rule);
00948
00953 const char* xccdf_rule_get_question(const struct xccdf_rule* rule);
00954
00959 const char* xccdf_rule_get_rationale(const struct xccdf_rule* rule);
00960
00965 const char* xccdf_rule_get_cluster_id(const struct xccdf_rule* rule);
00966
00971 struct xccdf_check* xccdf_rule_get_check(const struct xccdf_rule* rule);
00972
00977 float xccdf_rule_get_weight(const struct xccdf_rule* rule);
00978
00983 struct xccdf_rule* xccdf_rule_get_extends(const struct xccdf_rule* rule);
00984
00990 struct xccdf_item* xccdf_rule_get_parent(const struct xccdf_rule* rule);
00991
00996 bool xccdf_rule_get_abstract(const struct xccdf_rule* rule);
00997
01002 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule* rule);
01003
01008 bool xccdf_rule_get_hidden(const struct xccdf_rule* rule);
01009
01014 bool xccdf_rule_get_selected(const struct xccdf_rule* rule);
01015
01020 bool xccdf_rule_get_multiple(const struct xccdf_rule* rule);
01021
01026 struct oscap_string_iterator* xccdf_rule_get_platforms(const struct xccdf_rule* rule);
01027
01032 struct xccdf_status_iterator* xccdf_rule_get_statuses(const struct xccdf_rule* rule);
01033
01038 struct xccdf_reference_iterator* xccdf_rule_get_references(const struct xccdf_rule* rule);
01039
01044 xccdf_status_type_t xccdf_rule_get_status_current(const struct xccdf_rule* rule);
01045
01050 const char* xccdf_rule_get_impact_metric(const struct xccdf_rule* rule);
01051
01056 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule* rule);
01057
01062 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule* rule);
01063
01068 struct xccdf_ident_iterator* xccdf_rule_get_idents(const struct xccdf_rule* rule);
01069
01074 struct xccdf_check_iterator* xccdf_rule_get_checks(const struct xccdf_rule* rule);
01075
01080 struct xccdf_profile_note_iterator* xccdf_rule_get_profile_notes(const struct xccdf_rule* rule);
01081
01086 struct xccdf_fix_iterator* xccdf_rule_get_fixes(const struct xccdf_rule* rule);
01087
01092 struct xccdf_fixtext_iterator* xccdf_rule_get_fixtexts(const struct xccdf_rule* rule);
01093
01094
01095
01096
01097
01098
01099
01104 const char* xccdf_group_get_id(const struct xccdf_group* group);
01105
01110 const char* xccdf_group_get_title(const struct xccdf_group* group);
01111
01116 const char* xccdf_group_get_description(const struct xccdf_group* group);
01117
01122 const char* xccdf_group_get_version(const struct xccdf_group* group);
01123
01128 const char* xccdf_group_get_question(const struct xccdf_group* group);
01129
01134 const char* xccdf_group_get_rationale(const struct xccdf_group* group);
01135
01140 const char* xccdf_group_get_cluster_id(const struct xccdf_group* group);
01141
01146 float xccdf_group_get_weight(const struct xccdf_group* group);
01147
01152 struct xccdf_group* xccdf_group_get_extends(const struct xccdf_group* group);
01153
01159 struct xccdf_item* xccdf_group_get_parent(const struct xccdf_group* group);
01160
01165 bool xccdf_group_get_abstract(const struct xccdf_group* group);
01166
01171 bool xccdf_group_get_prohibit_changes(const struct xccdf_group* group);
01172
01177 bool xccdf_group_get_hidden(const struct xccdf_group* group);
01178
01183 bool xccdf_group_get_selected(const struct xccdf_group* group);
01184
01189 struct oscap_string_iterator* xccdf_group_get_platforms(const struct xccdf_group* group);
01190
01195 struct xccdf_status_iterator* xccdf_group_get_statuses(const struct xccdf_group* group);
01196
01201 struct xccdf_reference_iterator* xccdf_group_get_references(const struct xccdf_group* group);
01202
01210 struct xccdf_item_iterator* xccdf_group_get_content(const struct xccdf_group* benchmark);
01211
01216 xccdf_status_type_t xccdf_group_get_status_current(const struct xccdf_group* group);
01217
01218
01219
01220
01221
01222
01227 const char* xccdf_value_get_id(const struct xccdf_value* value);
01228
01233 const char* xccdf_value_get_title(const struct xccdf_value* value);
01234
01239 const char* xccdf_value_get_description(const struct xccdf_value* value);
01240
01245 struct xccdf_value* xccdf_value_get_extends(const struct xccdf_value* value);
01246
01252 struct xccdf_item* xccdf_value_get_parent(const struct xccdf_value* value);
01253
01258 bool xccdf_value_get_abstract(const struct xccdf_value* value);
01259
01264 bool xccdf_value_get_prohibit_changes(const struct xccdf_value* value);
01265
01270 bool xccdf_value_get_hidden(const struct xccdf_value* value);
01271
01276 struct xccdf_status_iterator* xccdf_value_get_statuses(const struct xccdf_value* value);
01277
01282 struct xccdf_reference_iterator* xccdf_value_get_references(const struct xccdf_value* value);
01283
01288 xccdf_status_type_t xccdf_value_get_status_current(const struct xccdf_value* value);
01289
01294 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value* value);
01295
01300 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value* value);
01301
01306 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value* value);
01307
01312 const char* xccdf_value_get_selector(const struct xccdf_value* value);
01313
01320 bool xccdf_value_get_set_selector(struct xccdf_item* value, const char* selector);
01321
01328 const char* xccdf_value_get_value_string(const struct xccdf_value* value);
01329
01336 xccdf_numeric xccdf_value_get_value_number(const struct xccdf_value* value);
01337
01345 bool xccdf_value_get_value_boolean(const struct xccdf_value* value);
01346
01353 const char* xccdf_value_get_defval_string(const struct xccdf_value* value);
01354
01361 xccdf_numeric xccdf_value_get_defval_number(const struct xccdf_value* value);
01362
01370 bool xccdf_value_get_defval_boolean(const struct xccdf_value* value);
01371
01377 xccdf_numeric xccdf_value_get_lower_bound(const struct xccdf_value* value);
01378
01384 xccdf_numeric xccdf_value_get_upper_bound(const struct xccdf_value* value);
01385
01391 const char* xccdf_value_get_match(const struct xccdf_value* value);
01392
01399 bool xccdf_value_get_must_match(const struct xccdf_value* value);
01400
01401
01402
01403
01404
01405
01406
01407
01412
01413
01414
01415
01416
01417
01418
01419
01420
01425 time_t xccdf_status_get_date(const struct xccdf_status* status);
01426
01431 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status* status);
01432
01433
01438 const char* xccdf_notice_get_id(const struct xccdf_notice* notice);
01439
01444 const char* xccdf_notice_get_text(const struct xccdf_notice* notice);
01445
01446
01451 const char* xccdf_model_get_system(const struct xccdf_model* model);
01452
01457
01458
01459
01464 const char* xccdf_ident_get_id(const struct xccdf_ident* ident);
01465
01470 const char* xccdf_ident_get_system(const struct xccdf_ident* ident);
01471
01472
01473
01478 const char* xccdf_check_get_id(const struct xccdf_check* check);
01479
01485 bool xccdf_check_get_complex(const struct xccdf_check* check);
01486
01492 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check* check);
01493
01498 const char* xccdf_check_get_system(const struct xccdf_check* check);
01499
01504 const char* xccdf_check_get_selector(const struct xccdf_check* check);
01505
01510 const char* xccdf_check_get_content(const struct xccdf_check* check);
01511
01516 struct xccdf_rule* xccdf_check_get_parent(const struct xccdf_check* check);
01517
01523
01524
01530
01531
01537
01538
01544 struct xccdf_check_iterator* xccdf_check_get_children(const struct xccdf_check* check);
01545
01550 const char* xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref* ref);
01551
01556 const char* xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref* ref);
01557
01562 const char* xccdf_profile_note_get_reftag(const struct xccdf_profile_note* note);
01563
01568 const char* xccdf_profile_note_get_text(const struct xccdf_profile_note* note);
01569
01574 const char* xccdf_check_import_get_name(const struct xccdf_check_import* item);
01575
01580 const char* xccdf_check_import_get_content(const struct xccdf_check_import* item);
01581
01586 const char* xccdf_check_export_get_name(const struct xccdf_check_export* item);
01587
01592 struct xccdf_value* xccdf_check_export_get_value(const struct xccdf_check_export* item);
01593
01594
01599 const char* xccdf_fix_get_content(const struct xccdf_fix* fix);
01600
01605 bool xccdf_fix_get_reboot(const struct xccdf_fix* fix);
01606
01611 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix* fix);
01612
01617 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix* fix);
01618
01623 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix* fix);
01624
01629 const char* xccdf_fix_get_id(const struct xccdf_fix* fix);
01630
01635 const char* xccdf_fix_get_system(const struct xccdf_fix* fix);
01636
01641 const char* xccdf_fix_get_platform(const struct xccdf_fix* fix);
01642
01643
01648 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext* fixtext);
01649
01654 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext* fixtext);
01655
01660 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext* fixtext);
01661
01666 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext* fixtext);
01667
01672 struct xccdf_fix* xccdf_fixtext_get_fixref(const struct xccdf_fixtext* fixtext);
01673
01674
01675
01680 void xccdf_cleanup(void);
01681
01682 #endif
01683
01684