00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00031 #ifndef XCCDF_H_
00032 #define XCCDF_H_
00033
00034 #include <stdbool.h>
00035 #include <time.h>
00036 #include "oscap.h"
00037
00038
00039
00040
00041
00050 typedef enum {
00051 XCCDF_BENCHMARK = 0x0100,
00052 XCCDF_PROFILE = 0x0200,
00053 XCCDF_RESULT = 0x0400,
00054 XCCDF_RULE = 0x1000,
00055 XCCDF_GROUP = 0x2000,
00056 XCCDF_VALUE = 0x4000,
00057
00058 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP,
00060 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE,
00062 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT,
00063 } xccdf_type_t;
00064
00066 typedef enum {
00067 XCCDF_IFACE_HINT_NONE,
00068 XCCDF_IFACE_HINT_CHOICE,
00069 XCCDF_IFACE_HINT_TEXTLINE,
00070 XCCDF_IFACE_HINT_TEXT,
00071 XCCDF_IFACE_HINT_DATE,
00072 XCCDF_IFACE_HINT_DATETIME,
00073 } xccdf_interface_hint_t;
00074
00076 typedef enum {
00077 XCCDF_STATUS_NOT_SPECIFIED,
00078 XCCDF_STATUS_ACCEPTED,
00079 XCCDF_STATUS_DEPRECATED,
00080 XCCDF_STATUS_DRAFT,
00081 XCCDF_STATUS_INCOMPLETE,
00082 XCCDF_STATUS_INTERIM
00083 } xccdf_status_type_t;
00084
00086 typedef enum {
00087 XCCDF_TYPE_NUMBER = 1,
00088 XCCDF_TYPE_STRING,
00089 XCCDF_TYPE_BOOLEAN,
00090 } xccdf_value_type_t;
00091
00093 typedef enum {
00094 XCCDF_OPERATOR_EQUALS = 1,
00095 XCCDF_OPERATOR_NOT_EQUAL,
00096 XCCDF_OPERATOR_GREATER,
00097 XCCDF_OPERATOR_GREATER_EQUAL,
00098 XCCDF_OPERATOR_LESS,
00099 XCCDF_OPERATOR_LESS_EQUAL,
00100 XCCDF_OPERATOR_PATTERN_MATCH
00101 } xccdf_operator_t;
00102
00104 typedef enum {
00105 XCCDF_OPERATOR_AND = 0x0002,
00106 XCCDF_OPERATOR_OR = 0x0003,
00107 XCCDF_OPERATOR_NOT = 0x0100,
00108 XCCDF_OPERATOR_NAND = XCCDF_OPERATOR_AND | XCCDF_OPERATOR_NOT,
00109 XCCDF_OPERATOR_NOR = XCCDF_OPERATOR_OR | XCCDF_OPERATOR_NOT,
00110 XCCDF_OPERATOR_MASK = 0x00ff
00111 } xccdf_bool_operator_t;
00112
00114 typedef enum {
00115 XCCDF_UNKNOWN = 1,
00116 XCCDF_INFO,
00117 XCCDF_LOW,
00118 XCCDF_MEDIUM,
00119 XCCDF_HIGH
00120 } xccdf_level_t;
00121
00123 typedef enum {
00124 XCCDF_MSG_INFO = XCCDF_INFO,
00125 XCCDF_MSG_WARNING = XCCDF_LOW,
00126 XCCDF_MSG_ERROR = XCCDF_HIGH,
00127 } xccdf_message_severity_t;
00128
00130 typedef enum {
00131 XCCDF_ROLE_FULL = 1,
00132 XCCDF_ROLE_UNSCORED,
00133 XCCDF_ROLE_UNCHECKED
00134 } xccdf_role_t;
00135
00137 typedef enum {
00138 XCCDF_WARNING_GENERAL = 1,
00139 XCCDF_WARNING_FUNCTIONALITY,
00140 XCCDF_WARNING_PERFORMANCE,
00141 XCCDF_WARNING_HARDWARE,
00142 XCCDF_WARNING_LEGAL,
00143 XCCDF_WARNING_REGULATORY,
00144 XCCDF_WARNING_MANAGEMENT,
00145 XCCDF_WARNING_AUDIT,
00146 XCCDF_WARNING_DEPENDENCY
00147 } xccdf_warning_category_t;
00148
00150 typedef enum {
00151 XCCDF_STRATEGY_UNKNOWN,
00152 XCCDF_STRATEGY_CONFIGURE,
00153 XCCDF_STRATEGY_DISABLE,
00154 XCCDF_STRATEGY_ENABLE,
00155 XCCDF_STRATEGY_PATCH,
00156 XCCDF_STRATEGY_POLICY,
00157 XCCDF_STRATEGY_RESTRICT,
00158 XCCDF_STRATEGY_UPDATE,
00159 XCCDF_STRATEGY_COMBINATION
00160 } xccdf_strategy_t;
00161
00163 typedef enum {
00164 XCCDF_RESULT_PASS = 1,
00165 XCCDF_RESULT_FAIL,
00166 XCCDF_RESULT_ERROR,
00167 XCCDF_RESULT_UNKNOWN,
00168 XCCDF_RESULT_NOT_APPLICABLE,
00169 XCCDF_RESULT_NOT_CHECKED,
00170 XCCDF_RESULT_NOT_SELECTED,
00171 XCCDF_RESULT_INFORMATIONAL,
00172 XCCDF_RESULT_FIXED
00173 } xccdf_test_result_type_t;
00174
00175
00176
00177
00178
00182 typedef float xccdf_numeric;
00183
00184
00185
00186
00213 struct xccdf_item;
00222 struct xccdf_benchmark;
00223
00232 struct xccdf_profile;
00233
00242 struct xccdf_rule;
00243
00252 struct xccdf_group;
00253
00262 struct xccdf_value;
00263
00272 struct xccdf_result;
00273
00274
00275
00276
00277
00286 struct xccdf_notice;
00287
00296 struct xccdf_status;
00297
00306 struct xccdf_model;
00307
00316 struct xccdf_warning;
00317
00327 struct xccdf_select;
00328
00338 struct xccdf_set_value;
00339
00349 struct xccdf_refine_value;
00359 struct xccdf_refine_rule;
00360
00370 struct xccdf_ident;
00371
00381 struct xccdf_check;
00391 struct xccdf_check_content_ref;
00392
00402 struct xccdf_profile_note;
00403
00413 struct xccdf_check_import;
00414
00424 struct xccdf_check_export;
00434 struct xccdf_fix;
00444 struct xccdf_fixtext;
00445
00446
00447
00448
00449
00459 struct xccdf_item_iterator;
00461 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
00463 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
00465 void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
00475 struct xccdf_notice_iterator;
00477 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
00479 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
00481 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
00491 struct xccdf_status_iterator;
00493 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
00495 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
00497 void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
00507 struct xccdf_reference_iterator;
00509 struct xccdf_reference *xccdf_reference_iterator_next(struct xccdf_reference_iterator *it);
00511 bool xccdf_reference_iterator_has_more(struct xccdf_reference_iterator *it);
00513 void xccdf_reference_iterator_free(struct xccdf_reference_iterator *it);
00523 struct xccdf_model_iterator;
00525 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
00527 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
00529 void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
00539 struct xccdf_profile_iterator;
00541 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it);
00543 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
00545 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
00546
00556 struct xccdf_select_iterator;
00558 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
00560 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
00562 void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
00563
00573 struct xccdf_set_value_iterator;
00575 struct xccdf_set_value *xccdf_set_value_iterator_next(struct xccdf_set_value_iterator *it);
00577 bool xccdf_set_value_iterator_has_more(struct xccdf_set_value_iterator *it);
00579 void xccdf_set_value_iterator_free(struct xccdf_set_value_iterator *it);
00580
00590 struct xccdf_refine_value_iterator;
00592 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it);
00594 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it);
00596 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it);
00597
00607 struct xccdf_refine_rule_iterator;
00609 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it);
00611 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it);
00613 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it);
00614
00624 struct xccdf_ident_iterator;
00626 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
00628 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
00630 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
00631
00641 struct xccdf_check_iterator;
00643 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
00645 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
00647 void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
00657 struct xccdf_check_content_ref_iterator;
00659 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it);
00661 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it);
00663 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it);
00673 struct xccdf_profile_note_iterator;
00675 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it);
00677 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it);
00679 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it);
00689 struct xccdf_check_import_iterator;
00691 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it);
00693 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it);
00695 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it);
00696
00706 struct xccdf_check_export_iterator;
00708 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it);
00710 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it);
00712 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it);
00713
00723 struct xccdf_fix_iterator;
00725 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
00727 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
00729 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
00730
00740 struct xccdf_fixtext_iterator;
00742 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it);
00744 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
00746 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
00751
00752
00753
00754
00759 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
00760
00765 const char *xccdf_item_get_id(const struct xccdf_item *item);
00766
00771 const char *xccdf_item_get_title(const struct xccdf_item *item);
00772
00777 const char *xccdf_item_get_description(const struct xccdf_item *item);
00778
00783 const char *xccdf_item_get_version(const struct xccdf_item *item);
00784
00789 struct xccdf_item *xccdf_item_get_extends(const struct xccdf_item *item);
00790
00796 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
00797
00802 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
00803
00808 struct xccdf_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
00809
00814 xccdf_status_type_t xccdf_item_get_current_status(const struct xccdf_item *item);
00815
00822
00823
00830
00831
00838
00839
00846
00847
00854
00855
00862
00863
00864
00865
00866
00867
00875 struct xccdf_benchmark *xccdf_benchmark_parse_xml(const char *filename);
00876
00881 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
00882
00887 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
00888
00893 const char *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
00894
00899 const char *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
00900
00905 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
00906
00911 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
00912
00917 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
00918
00923 const char *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
00924
00929 const char *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
00930
00935 const char *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
00936
00944 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
00945
00953 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
00954
00959 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
00960
00965 struct xccdf_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
00966
00971 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
00972
00978 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
00979
00985 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
00986
00992 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
00993
01001 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
01002
01007 xccdf_status_type_t xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
01008
01014 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
01015
01016
01017
01018
01019
01024 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01025
01030 const char *xccdf_profile_get_title(const struct xccdf_profile *profile);
01031
01036 const char *xccdf_profile_get_description(const struct xccdf_profile *profile);
01037
01042 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01043
01048 struct xccdf_profile *xccdf_profile_get_extends(const struct xccdf_profile *profile);
01049
01054 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
01055
01060 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01061
01066 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01067
01072 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
01073
01078 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
01079
01084 struct xccdf_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
01085
01090 xccdf_status_type_t xccdf_profile_get_status_current(const struct xccdf_profile *profile);
01091
01096
01097
01102 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
01103
01108 struct xccdf_set_value_iterator *xccdf_profile_get_set_values(const struct xccdf_profile *profile);
01109
01114 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
01115
01120 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
01121
01122
01123
01124
01125
01130 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01131
01136 const char *xccdf_rule_get_title(const struct xccdf_rule *rule);
01137
01142 const char *xccdf_rule_get_description(const struct xccdf_rule *rule);
01143
01148 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
01149
01154 const char *xccdf_rule_get_question(const struct xccdf_rule *rule);
01155
01160 const char *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
01161
01166 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
01167
01172 struct xccdf_check *xccdf_rule_get_check(const struct xccdf_rule *rule);
01173
01178 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
01179
01184 struct xccdf_rule *xccdf_rule_get_extends(const struct xccdf_rule *rule);
01185
01191 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
01192
01197 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
01198
01203 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
01204
01209 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
01210
01215 bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
01216
01221 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
01222
01227 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
01228
01233 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
01234
01239 struct xccdf_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
01240
01245 xccdf_status_type_t xccdf_rule_get_status_current(const struct xccdf_rule *rule);
01246
01251 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
01252
01257 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
01258
01263 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
01264
01269 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
01270
01275 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
01276
01281 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
01282
01287 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
01288
01293 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
01294
01295
01296
01297
01298
01303 const char *xccdf_group_get_id(const struct xccdf_group *group);
01304
01309 const char *xccdf_group_get_title(const struct xccdf_group *group);
01310
01315 const char *xccdf_group_get_description(const struct xccdf_group *group);
01316
01321 const char *xccdf_group_get_version(const struct xccdf_group *group);
01322
01327 const char *xccdf_group_get_question(const struct xccdf_group *group);
01328
01333 const char *xccdf_group_get_rationale(const struct xccdf_group *group);
01334
01339 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
01340
01345 float xccdf_group_get_weight(const struct xccdf_group *group);
01346
01351 struct xccdf_group *xccdf_group_get_extends(const struct xccdf_group *group);
01352
01358 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
01359
01364 bool xccdf_group_get_abstract(const struct xccdf_group *group);
01365
01370 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
01371
01376 bool xccdf_group_get_hidden(const struct xccdf_group *group);
01377
01382 bool xccdf_group_get_selected(const struct xccdf_group *group);
01383
01388 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
01389
01394 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
01395
01400 struct xccdf_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
01401
01409 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *benchmark);
01410
01415 xccdf_status_type_t xccdf_group_get_status_current(const struct xccdf_group *group);
01416
01417
01418
01419
01420
01425 const char *xccdf_value_get_id(const struct xccdf_value *value);
01426
01431 const char *xccdf_value_get_title(const struct xccdf_value *value);
01432
01437 const char *xccdf_value_get_description(const struct xccdf_value *value);
01438
01443 struct xccdf_value *xccdf_value_get_extends(const struct xccdf_value *value);
01444
01450 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
01451
01456 bool xccdf_value_get_abstract(const struct xccdf_value *value);
01457
01462 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
01463
01468 bool xccdf_value_get_hidden(const struct xccdf_value *value);
01469
01474 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
01475
01480 struct xccdf_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
01481
01486 xccdf_status_type_t xccdf_value_get_status_current(const struct xccdf_value *value);
01487
01492 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
01493
01498 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value);
01499
01504 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
01505
01510 const char *xccdf_value_get_selector(const struct xccdf_value *value);
01511
01518 bool xccdf_value_get_set_selector(struct xccdf_item *value, const char *selector);
01519
01526 const char *xccdf_value_get_value_string(const struct xccdf_value *value);
01527
01534 xccdf_numeric xccdf_value_get_value_number(const struct xccdf_value *value);
01535
01543 bool xccdf_value_get_value_boolean(const struct xccdf_value *value);
01544
01551 const char *xccdf_value_get_defval_string(const struct xccdf_value *value);
01552
01559 xccdf_numeric xccdf_value_get_defval_number(const struct xccdf_value *value);
01560
01568 bool xccdf_value_get_defval_boolean(const struct xccdf_value *value);
01569
01575 xccdf_numeric xccdf_value_get_lower_bound(const struct xccdf_value *value);
01576
01582 xccdf_numeric xccdf_value_get_upper_bound(const struct xccdf_value *value);
01583
01589 const char *xccdf_value_get_match(const struct xccdf_value *value);
01590
01597 bool xccdf_value_get_must_match(const struct xccdf_value *value);
01598
01599
01600
01601
01602
01603
01604
01605
01610
01611
01612
01613
01614
01615
01620 time_t xccdf_status_get_date(const struct xccdf_status *status);
01621
01626 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
01627
01632 const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
01633
01638 const char *xccdf_notice_get_text(const struct xccdf_notice *notice);
01639
01644 const char *xccdf_model_get_system(const struct xccdf_model *model);
01645
01650
01651
01656 const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
01657
01662 const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
01663
01668 const char *xccdf_check_get_id(const struct xccdf_check *check);
01669
01675 bool xccdf_check_get_complex(const struct xccdf_check *check);
01676
01682 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
01683
01688 const char *xccdf_check_get_system(const struct xccdf_check *check);
01689
01694 const char *xccdf_check_get_selector(const struct xccdf_check *check);
01695
01700 const char *xccdf_check_get_content(const struct xccdf_check *check);
01701
01706 struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check);
01707
01713
01714
01720
01721
01727
01728
01734 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
01735
01740 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
01741
01746 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
01747
01752 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
01753
01758 const char *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
01759
01764 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
01765
01770 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
01771
01776 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
01777
01782 struct xccdf_value *xccdf_check_export_get_value(const struct xccdf_check_export *item);
01783
01788 const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
01789
01794 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
01795
01800 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
01801
01806 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
01807
01812 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
01813
01818 const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
01819
01824 const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
01825
01830 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
01831
01836 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
01837
01842 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
01843
01848 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
01849
01854 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
01855
01860 struct xccdf_fix *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
01861
01862
01863 const char *xccdf_value_get_id(const struct xccdf_value *value);
01864 const char *xccdf_value_get_title(const struct xccdf_value *value);
01865 const char *xccdf_value_get_version(const struct xccdf_value *value);
01866 const char *xccdf_value_get_question(const struct xccdf_value *value);
01867 const char *xccdf_value_get_rationale(const struct xccdf_value *value);
01868 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
01869 const char *xccdf_value_get_description(const struct xccdf_value *value);
01870 const char *xccdf_value_get_version_update(const struct xccdf_value *value);
01871 time_t xccdf_value_get_version_time(const struct xccdf_value *value);
01872 float xccdf_value_get_weight(const struct xccdf_value *value);
01873 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
01874 struct oscap_string_iterator *xccdf_value_get_platforms(const struct xccdf_value *value);
01875 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
01876
01877 bool xccdf_value_get_resolved(const struct xccdf_value *value);
01878 bool xccdf_value_get_hidden(const struct xccdf_value *value);
01879 bool xccdf_value_get_selected(const struct xccdf_value *value);
01880 bool xccdf_value_get_multiple(const struct xccdf_value *value);
01881 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
01882 bool xccdf_value_get_abstract(const struct xccdf_value *value);
01883 bool xccdf_value_get_interactive(const struct xccdf_value *value);
01884
01885 const char *xccdf_item_get_id(const struct xccdf_item *item);
01886 const char *xccdf_item_get_title(const struct xccdf_item *item);
01887 const char *xccdf_item_get_version(const struct xccdf_item *item);
01888 const char *xccdf_item_get_question(const struct xccdf_item *item);
01889 const char *xccdf_item_get_rationale(const struct xccdf_item *item);
01890 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
01891 const char *xccdf_item_get_description(const struct xccdf_item *item);
01892 const char *xccdf_item_get_version_update(const struct xccdf_item *item);
01893 time_t xccdf_item_get_version_time(const struct xccdf_item *item);
01894 float xccdf_item_get_weight(const struct xccdf_item *item);
01895 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
01896 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
01897
01898 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
01899 bool xccdf_benchmark_get_hidden(const struct xccdf_benchmark *benchmark);
01900 bool xccdf_benchmark_get_selected(const struct xccdf_benchmark *benchmark);
01901 bool xccdf_benchmark_get_multiple(const struct xccdf_benchmark *benchmark);
01902 bool xccdf_benchmark_get_prohibit_changes(const struct xccdf_benchmark *benchmark);
01903 bool xccdf_benchmark_get_abstract(const struct xccdf_benchmark *benchmark);
01904 bool xccdf_benchmark_get_interactive(const struct xccdf_benchmark *benchmark);
01905
01906
01907 const char *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
01908 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
01909 const char *xccdf_benchmark_get_question(const struct xccdf_benchmark *benchmark);
01910 const char *xccdf_benchmark_get_rationale(const struct xccdf_benchmark *benchmark);
01911 const char *xccdf_benchmark_get_cluster_id(const struct xccdf_benchmark *benchmark);
01912 const char *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
01913 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
01914 time_t xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
01915 float xccdf_benchmark_get_weight(const struct xccdf_benchmark *benchmark);
01916 struct xccdf_benchmark *xccdf_benchmark_get_benchmark(const struct xccdf_benchmark *benchmark);
01917 struct xccdf_item *xccdf_benchmark_get_parent(const struct xccdf_benchmark *benchmark);
01918
01919 const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
01920 const char *xccdf_profile_get_title(const struct xccdf_profile *profile);
01921 const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
01922 const char *xccdf_profile_get_question(const struct xccdf_profile *profile);
01923 const char *xccdf_profile_get_rationale(const struct xccdf_profile *profile);
01924 const char *xccdf_profile_get_cluster_id(const struct xccdf_profile *profile);
01925 const char *xccdf_profile_get_description(const struct xccdf_profile *profile);
01926 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
01927 time_t xccdf_profile_get_version_time(const struct xccdf_profile *profile);
01928 float xccdf_profile_get_weight(const struct xccdf_profile *profile);
01929 struct xccdf_item *xccdf_profile_get_parent(const struct xccdf_profile *profile);
01930 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
01931
01932 bool xccdf_profile_get_resolved(const struct xccdf_profile *profile);
01933 bool xccdf_profile_get_hidden(const struct xccdf_profile *profile);
01934 bool xccdf_profile_get_selected(const struct xccdf_profile *profile);
01935 bool xccdf_profile_get_multiple(const struct xccdf_profile *profile);
01936 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
01937 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
01938 bool xccdf_profile_get_interactive(const struct xccdf_profile *profile);
01939
01940 const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
01941 const char *xccdf_rule_get_title(const struct xccdf_rule *rule);
01942 const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
01943 const char *xccdf_rule_get_question(const struct xccdf_rule *rule);
01944 const char *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
01945 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
01946 const char *xccdf_rule_get_description(const struct xccdf_rule *rule);
01947 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
01948 time_t xccdf_rule_get_version_time(const struct xccdf_rule *rule);
01949 float xccdf_rule_get_weight(const struct xccdf_rule *rule);
01950 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
01951 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
01952 bool xccdf_rule_get_resolved(const struct xccdf_rule *rule);
01953 bool xccdf_rule_get_interactive(const struct xccdf_rule *rule);
01954
01955 bool xccdf_group_get_resolved(const struct xccdf_group *group);
01956 bool xccdf_group_get_hidden(const struct xccdf_group *group);
01957 bool xccdf_group_get_selected(const struct xccdf_group *group);
01958 bool xccdf_group_get_multiple(const struct xccdf_group *group);
01959 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
01960 bool xccdf_group_get_abstract(const struct xccdf_group *group);
01961 bool xccdf_group_get_interactive(const struct xccdf_group *group);
01962 time_t xccdf_group_get_version_time(const struct xccdf_group *group);
01963 const char *xccdf_group_get_version_update(const struct xccdf_group *group);
01964 float xccdf_group_get_weight(const struct xccdf_group *group);
01965 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
01966
01967 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
01968 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
01969 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
01970 const char *xccdf_fixtext_get_content(const struct xccdf_fixtext *fixtext);
01971
01976 void xccdf_cleanup(void);
01977
01978 #endif