|
Open SCAP Library
|
00001 00010 /* 00011 * Copyright 2009--2014 Red Hat Inc., Durham, North Carolina. 00012 * Copyright (C) 2010 Tresys Technology, LLC 00013 * All Rights Reserved. 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Lesser General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2.1 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Lesser General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Lesser General Public 00026 * License along with this library; if not, write to the Free Software 00027 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00028 * 00029 * Authors: 00030 * Lukas Kuklinek <lkuklinek@redhat.com> 00031 * Josh Adams <jadams@tresys.com> 00032 */ 00033 00034 #ifndef XCCDF_H_ 00035 #define XCCDF_H_ 00036 00037 #include <stdbool.h> 00038 #include <time.h> 00039 #include <oscap_reference.h> 00040 #include <oscap_source.h> 00041 #include <oscap.h> 00042 #include "cpe_dict.h" 00043 00044 /*--------------------*\ 00045 | Enumerations | 00046 \*--------------------*/ 00047 00056 typedef enum { 00057 XCCDF_BENCHMARK = 0x0100, 00058 XCCDF_PROFILE = 0x0200, 00059 XCCDF_RESULT = 0x0400, 00060 XCCDF_RULE = 0x1000, 00061 XCCDF_GROUP = 0x2000, 00062 XCCDF_VALUE = 0x4000, 00063 00065 XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP, 00067 XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE, 00069 XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT, 00070 } xccdf_type_t; 00071 00073 typedef enum { 00074 XCCDF_IFACE_HINT_NONE, 00075 XCCDF_IFACE_HINT_CHOICE, 00076 XCCDF_IFACE_HINT_TEXTLINE, 00077 XCCDF_IFACE_HINT_TEXT, 00078 XCCDF_IFACE_HINT_DATE, 00079 XCCDF_IFACE_HINT_DATETIME, 00080 } xccdf_interface_hint_t; 00081 00083 typedef enum { 00084 XCCDF_STATUS_NOT_SPECIFIED, 00085 XCCDF_STATUS_ACCEPTED, 00086 XCCDF_STATUS_DEPRECATED, 00087 XCCDF_STATUS_DRAFT, 00088 XCCDF_STATUS_INCOMPLETE, 00089 XCCDF_STATUS_INTERIM 00090 } xccdf_status_type_t; 00091 00093 typedef enum { 00094 XCCDF_TYPE_NUMBER = 1, 00095 XCCDF_TYPE_STRING, 00096 XCCDF_TYPE_BOOLEAN, 00097 } xccdf_value_type_t; 00098 00100 typedef enum { 00101 XCCDF_OPERATOR_EQUALS = 1, 00102 XCCDF_OPERATOR_NOT_EQUAL, 00103 XCCDF_OPERATOR_GREATER, 00104 XCCDF_OPERATOR_GREATER_EQUAL, 00105 XCCDF_OPERATOR_LESS, 00106 XCCDF_OPERATOR_LESS_EQUAL, 00107 XCCDF_OPERATOR_PATTERN_MATCH 00108 } xccdf_operator_t; 00109 00111 typedef enum { 00112 XCCDF_OPERATOR_AND = 0x0002, 00113 XCCDF_OPERATOR_OR = 0x0003, 00114 } xccdf_bool_operator_t; 00115 00117 typedef enum { 00118 XCCDF_LEVEL_NOT_DEFINED = 0, 00119 XCCDF_UNKNOWN = 1, 00120 XCCDF_INFO, 00121 XCCDF_LOW, 00122 XCCDF_MEDIUM, 00123 XCCDF_HIGH 00124 } xccdf_level_t; 00125 00127 typedef enum { 00128 XCCDF_MSG_INFO = XCCDF_INFO, 00129 XCCDF_MSG_WARNING = XCCDF_LOW, 00130 XCCDF_MSG_ERROR = XCCDF_HIGH, 00131 } xccdf_message_severity_t; 00132 00134 typedef enum { 00135 XCCDF_ROLE_FULL = 1, 00136 XCCDF_ROLE_UNSCORED, 00137 XCCDF_ROLE_UNCHECKED 00138 } xccdf_role_t; 00139 00141 typedef enum { 00142 XCCDF_WARNING_NOT_SPECIFIED, 00143 XCCDF_WARNING_GENERAL = 1, 00144 XCCDF_WARNING_FUNCTIONALITY, 00145 XCCDF_WARNING_PERFORMANCE, 00146 XCCDF_WARNING_HARDWARE, 00147 XCCDF_WARNING_LEGAL, 00148 XCCDF_WARNING_REGULATORY, 00149 XCCDF_WARNING_MANAGEMENT, 00150 XCCDF_WARNING_AUDIT, 00151 XCCDF_WARNING_DEPENDENCY 00152 } xccdf_warning_category_t; 00153 00155 typedef enum { 00156 XCCDF_STRATEGY_UNKNOWN = 0, 00157 XCCDF_STRATEGY_CONFIGURE, 00158 XCCDF_STRATEGY_DISABLE, 00159 XCCDF_STRATEGY_ENABLE, 00160 XCCDF_STRATEGY_PATCH, 00161 XCCDF_STRATEGY_POLICY, 00162 XCCDF_STRATEGY_RESTRICT, 00163 XCCDF_STRATEGY_UPDATE, 00164 XCCDF_STRATEGY_COMBINATION 00165 } xccdf_strategy_t; 00166 00168 typedef enum { 00169 XCCDF_RESULT_PASS = 1, 00170 XCCDF_RESULT_FAIL, 00171 XCCDF_RESULT_ERROR, 00172 XCCDF_RESULT_UNKNOWN, 00173 XCCDF_RESULT_NOT_APPLICABLE, 00174 XCCDF_RESULT_NOT_CHECKED, 00175 XCCDF_RESULT_NOT_SELECTED, 00176 XCCDF_RESULT_INFORMATIONAL, 00177 XCCDF_RESULT_FIXED 00178 } xccdf_test_result_type_t; 00179 00183 enum { 00184 OSCAP_PROFILE_MATCH_OK = 0, // successful profile ID match 00185 OSCAP_PROFILE_NO_MATCH = 1, // no profile ID was matched 00186 OSCAP_PROFILE_MULTIPLE_MATCHES = 2, // multiple profile IDs were matched 00187 }; 00188 00189 /*--------------------*\ 00190 | Typedefs | 00191 \*--------------------*/ 00192 00196 typedef float xccdf_numeric; 00197 00202 struct xccdf_benchmark; 00203 00208 struct xccdf_profile; 00209 00214 struct xccdf_item; 00215 00220 struct xccdf_rule; 00221 00226 struct xccdf_group; 00227 00232 struct xccdf_value; 00233 00238 struct xccdf_result; 00239 00245 struct xccdf_tailoring; 00246 00247 /*--------------------*\ 00248 | Support structures | 00249 \*--------------------*/ 00250 00255 struct xccdf_notice; 00256 00261 struct xccdf_status; 00262 00267 struct xccdf_model; 00268 00273 struct xccdf_warning; 00274 00279 struct xccdf_select; 00280 00285 struct xccdf_setvalue; 00286 00291 struct xccdf_refine_value; 00292 00297 struct xccdf_refine_rule; 00298 00303 struct xccdf_ident; 00304 00309 struct xccdf_check; 00314 struct xccdf_check_content_ref; 00315 00320 struct xccdf_profile_note; 00321 00327 struct xccdf_check_import; 00328 00334 struct xccdf_check_export; 00335 00341 struct xccdf_fix; 00342 00348 struct xccdf_fixtext; 00349 00357 struct xccdf_value_instance; 00358 00364 struct xccdf_identity; 00365 00371 struct xccdf_instance; 00372 00378 struct xccdf_message; 00379 00385 struct xccdf_override; 00386 00392 struct xccdf_rule_result; 00393 00399 struct xccdf_score; 00400 00406 struct xccdf_target_fact; 00407 00414 struct xccdf_target_identifier; 00415 00421 struct xccdf_plain_text; 00422 00428 struct xccdf_item_iterator; 00429 00435 struct xccdf_notice_iterator; 00436 00442 struct xccdf_status_iterator; 00443 00449 struct xccdf_identity_iterator; 00450 00456 struct xccdf_model_iterator; 00457 00463 struct xccdf_result_iterator; 00464 00470 struct xccdf_profile_iterator; 00471 00477 struct xccdf_select_iterator; 00478 00484 struct xccdf_value_iterator; 00485 00491 struct xccdf_setvalue_iterator; 00492 00497 struct xccdf_refine_value_iterator; 00498 00504 struct xccdf_refine_rule_iterator; 00505 00511 struct xccdf_ident_iterator; 00512 00518 struct xccdf_check_iterator; 00519 00525 struct xccdf_profile_note_iterator; 00526 00532 struct xccdf_fixtext_iterator; 00533 00539 struct xccdf_check_content_ref_iterator; 00540 00546 struct xccdf_check_import_iterator; 00547 00553 struct xccdf_fix_iterator; 00554 00560 struct xccdf_check_export_iterator; 00561 00567 struct xccdf_warning_iterator; 00568 00574 struct xccdf_instance_iterator; 00575 00581 struct xccdf_message_iterator; 00582 00588 struct xccdf_override_iterator; 00589 00595 struct xccdf_rule_result_iterator; 00596 00602 struct xccdf_value_instance_iterator; 00603 00609 struct xccdf_score_iterator; 00610 00616 struct xccdf_target_fact_iterator; 00617 00623 struct xccdf_target_identifier_iterator; 00624 00630 struct xccdf_plain_text_iterator; 00631 00635 struct xccdf_version_info; 00636 00638 const char* xccdf_version_info_get_version(const struct xccdf_version_info* v); 00640 const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v); 00642 const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v); 00643 00652 OSCAP_DEPRECATED(char * xccdf_detect_version(const char* file)); 00653 00654 /************************************************************/ 00655 00657 void xccdf_item_free(struct xccdf_item *item); 00658 00660 struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item); 00661 00668 struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item); 00669 00676 struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item); 00677 00684 struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item); 00685 00692 struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item); 00693 00700 struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item); 00701 00708 struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item); 00709 00719 OSCAP_DEPRECATED(struct xccdf_benchmark* xccdf_benchmark_import(const char *file)); 00720 00727 struct xccdf_benchmark* xccdf_benchmark_import_source(struct oscap_source *source); 00728 00735 int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file); 00736 00742 struct oscap_source *xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename); 00743 00750 struct xccdf_result *xccdf_result_import_source(struct oscap_source *source); 00751 00756 void xccdf_result_fill_sysinfo(struct xccdf_result *result); 00757 00766 OSCAP_DEPRECATED(int xccdf_result_export(struct xccdf_result *result, const char *file)); 00767 00773 struct oscap_source *xccdf_result_export_source(struct xccdf_result *result, const char *filepath); 00774 00780 struct oscap_source *xccdf_result_stig_viewer_export_source(struct xccdf_result *result, const char *filepath); 00781 00788 bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark); 00789 00791 struct xccdf_benchmark *xccdf_benchmark_new(void); 00793 void xccdf_benchmark_free(struct xccdf_benchmark *benchmark); 00795 struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item); 00797 struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark ); 00798 00804 const char * xccdf_benchmark_supported(void); 00805 00807 const struct xccdf_version_info *xccdf_benchmark_supported_schema_version(void); 00808 00810 struct xccdf_profile *xccdf_profile_new(void); 00812 void xccdf_profile_free(struct xccdf_item *prof); 00814 struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item); 00816 struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile); 00817 00819 struct xccdf_rule *xccdf_rule_new(void); 00821 void xccdf_rule_free(struct xccdf_item *rule); 00823 struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item); 00825 struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule); 00826 00828 struct xccdf_group *xccdf_group_new(void); 00830 void xccdf_group_free(struct xccdf_item *group); 00832 struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item); 00834 struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group); 00835 00837 struct xccdf_value *xccdf_value_new(xccdf_value_type_t type); 00839 void xccdf_value_free(struct xccdf_item *val); 00841 struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item); 00843 struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value); 00844 00846 struct xccdf_status *xccdf_status_new(void); 00848 struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status); 00850 struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date); 00852 void xccdf_status_free(struct xccdf_status *status); 00854 struct xccdf_notice *xccdf_notice_new(void); 00856 void xccdf_notice_free(struct xccdf_notice *notice); 00858 struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice); 00859 00861 struct xccdf_model *xccdf_model_new(void); 00863 struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model); 00865 void xccdf_model_free(struct xccdf_model *model); 00866 00868 struct xccdf_ident *xccdf_ident_new(void); 00870 struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys); 00872 struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident); 00874 void xccdf_ident_free(struct xccdf_ident *ident); 00875 00876 00878 struct xccdf_check *xccdf_check_new(void); 00880 void xccdf_check_free(struct xccdf_check *check); 00881 00883 struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check); 00885 struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import); 00887 struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export); 00889 struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref); 00890 00892 struct xccdf_check_content_ref *xccdf_check_content_ref_new(void); 00894 void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref); 00895 00897 struct xccdf_profile_note *xccdf_profile_note_new(void); 00899 void xccdf_profile_note_free(struct xccdf_profile_note *note); 00900 00902 struct xccdf_check_import *xccdf_check_import_new(void); 00904 void xccdf_check_import_free(struct xccdf_check_import *item); 00905 00907 struct xccdf_check_export *xccdf_check_export_new(void); 00909 void xccdf_check_export_free(struct xccdf_check_export *item); 00910 00912 struct xccdf_fix *xccdf_fix_new(void); 00914 struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix); 00916 void xccdf_fix_free(struct xccdf_fix *item); 00917 00919 struct xccdf_fixtext *xccdf_fixtext_new(void); 00921 struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext); 00923 void xccdf_fixtext_free(struct xccdf_fixtext *item); 00924 00926 void xccdf_select_free(struct xccdf_select *sel); 00928 struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select); 00930 struct xccdf_select *xccdf_select_new(void); 00931 00933 struct xccdf_warning *xccdf_warning_new(void); 00935 struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning); 00937 void xccdf_warning_free(struct xccdf_warning * warn); 00938 00940 void xccdf_refine_rule_free(struct xccdf_refine_rule *obj); 00941 00943 void xccdf_refine_value_free(struct xccdf_refine_value *rv); 00944 00945 void xccdf_setvalue_free(struct xccdf_setvalue *sv); 00946 00948 struct xccdf_tailoring *xccdf_tailoring_new(void); 00950 void xccdf_tailoring_free(struct xccdf_tailoring *tailoring); 00952 int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info); 00953 00958 OSCAP_DEPRECATED(void xccdf_cleanup(void)); 00959 00965 struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id); 00966 00972 struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type); 00973 00979 struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id); 00980 00990 const char *xccdf_benchmark_match_profile_id(struct xccdf_benchmark *bench, const char *profile_suffix, int *match_status); 00991 01001 const char *xccdf_tailoring_match_profile_id(struct xccdf_tailoring *tailoring, const char *profile_suffix, int *match_status); 01002 01004 struct xccdf_plain_text *xccdf_plain_text_new(void); 01006 struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text); 01008 void xccdf_plain_text_free(struct xccdf_plain_text *plain); 01010 struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt); 01011 01013 struct xccdf_result *xccdf_result_new(void); 01015 void xccdf_result_free(struct xccdf_result *item); 01017 struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item); 01019 struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result); 01020 01022 struct xccdf_rule_result *xccdf_rule_result_new(void); 01024 struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result); 01026 void xccdf_rule_result_free(struct xccdf_rule_result *rr); 01027 01029 struct xccdf_identity *xccdf_identity_new(void); 01031 struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity); 01033 void xccdf_identity_free(struct xccdf_identity *identity); 01034 01036 struct xccdf_score *xccdf_score_new(void); 01038 struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score); 01040 void xccdf_score_free(struct xccdf_score *score); 01041 01043 struct xccdf_override *xccdf_override_new(void); 01045 struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override); 01047 void xccdf_override_free(struct xccdf_override *oride); 01048 01050 struct xccdf_message *xccdf_message_new(void); 01052 struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message); 01054 void xccdf_message_free(struct xccdf_message *msg); 01055 01057 struct xccdf_target_fact *xccdf_target_fact_new(void); 01059 struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf); 01061 void xccdf_target_fact_free(struct xccdf_target_fact *fact); 01062 01064 struct xccdf_target_identifier *xccdf_target_identifier_new(void); 01066 struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier * ti); 01068 void xccdf_target_identifier_free(struct xccdf_target_identifier *ti); 01069 01071 struct xccdf_instance *xccdf_instance_new(void); 01073 struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance); 01075 void xccdf_instance_free(struct xccdf_instance *inst); 01076 01078 struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item); 01079 01080 /************************************************************/ 01090 struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it); 01095 bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it); 01100 void xccdf_item_iterator_free(struct xccdf_item_iterator *it); 01105 void xccdf_item_iterator_reset(struct xccdf_item_iterator *it); 01106 01107 01112 struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it); 01117 bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it); 01122 void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it); 01127 void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it); 01128 01129 01134 struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it); 01139 bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it); 01144 void xccdf_status_iterator_free(struct xccdf_status_iterator *it); 01149 void xccdf_status_iterator_reset(struct xccdf_status_iterator *it); 01150 01151 01156 struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it); 01161 bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it); 01166 void xccdf_model_iterator_free(struct xccdf_model_iterator *it); 01171 void xccdf_model_iterator_reset(struct xccdf_model_iterator *it); 01172 01173 01178 struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it); 01183 bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it); 01188 void xccdf_result_iterator_free(struct xccdf_result_iterator *it); 01193 void xccdf_result_iterator_reset(struct xccdf_result_iterator *it); 01194 01195 01200 struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it); 01205 bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it); 01210 void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it); 01215 void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it); 01216 01217 01222 struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it); 01227 bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it); 01232 void xccdf_select_iterator_free(struct xccdf_select_iterator *it); 01237 void xccdf_select_iterator_reset(struct xccdf_select_iterator *it); 01238 01239 01244 struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it); 01249 bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it); 01254 void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it); 01259 void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it); 01260 01261 01266 struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it); 01271 bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it); 01276 void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it); 01281 void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it); 01282 01283 01288 struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it); 01293 bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it); 01298 void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it); 01303 void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it); 01304 01305 01310 struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it); 01315 bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it); 01320 void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it); 01325 void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it); 01326 01327 01332 struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it); 01337 bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it); 01342 void xccdf_check_iterator_free(struct xccdf_check_iterator *it); 01347 void xccdf_check_iterator_reset(struct xccdf_check_iterator *it); 01348 01349 01354 struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it); 01359 bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it); 01364 void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it); 01369 void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it); 01370 01371 01376 struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it); 01381 bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it); 01386 void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it); 01391 void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it); 01392 01393 01398 struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it); 01403 bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it); 01408 void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it); 01413 void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it); 01414 01415 01420 struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it); 01425 bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it); 01430 void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it); 01435 void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it); 01436 01437 01442 struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it); 01447 bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it); 01452 void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it); 01457 void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it); 01458 01459 01464 struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it); 01469 bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it); 01474 void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it); 01479 void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it); 01480 01481 01486 struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it); 01491 bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it); 01496 void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it); 01501 void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it); 01502 01503 01508 struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it); 01513 bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it); 01518 void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it); 01523 void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it); 01524 01525 01530 struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it); 01535 bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it); 01540 void xccdf_message_iterator_free(struct xccdf_message_iterator *it); 01545 void xccdf_message_iterator_reset(struct xccdf_message_iterator *it); 01546 01547 01552 struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it); 01557 bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it); 01562 void xccdf_override_iterator_free(struct xccdf_override_iterator *it); 01567 void xccdf_override_iterator_reset(struct xccdf_override_iterator *it); 01568 01569 01574 struct xccdf_identity *xccdf_identity_iterator_next(struct xccdf_identity_iterator *it); 01579 bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it); 01584 void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it); 01589 void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it); 01590 01591 01596 struct xccdf_rule_result *xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it); 01601 bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it); 01606 void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it); 01611 void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it); 01612 01613 01618 struct xccdf_value_instance *xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it); 01623 bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it); 01628 void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it); 01633 void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it); 01634 01635 01640 struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it); 01645 bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it); 01650 void xccdf_score_iterator_free(struct xccdf_score_iterator *it); 01655 void xccdf_score_iterator_reset(struct xccdf_score_iterator *it); 01656 01657 01662 struct xccdf_target_fact *xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it); 01667 bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it); 01672 void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it); 01677 void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it); 01678 01683 struct xccdf_target_identifier *xccdf_target_identifier_iterator_next(struct xccdf_target_identifier_iterator *it); 01688 bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it); 01693 void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it); 01698 void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it); 01699 01700 01705 struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it); 01710 bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it); 01715 void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it); 01720 void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it); 01721 01722 01727 struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it); 01732 bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it); 01737 void xccdf_value_iterator_free(struct xccdf_value_iterator *it); 01742 void xccdf_value_iterator_reset(struct xccdf_value_iterator *it); 01743 01744 /************************************************************ 01745 ** @} End of Iterators group */ 01746 01747 /************************************************************/ 01758 xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item); 01762 const char *xccdf_item_get_id(const struct xccdf_item *item); 01766 struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item); 01770 struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item); 01774 const char *xccdf_item_get_version(const struct xccdf_item *item); 01778 const char *xccdf_item_get_extends(const struct xccdf_item *item); 01782 struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item); 01786 struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item); 01790 struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item); 01794 struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item); 01798 struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item); 01802 struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item); 01806 bool xccdf_item_get_hidden(const struct xccdf_item *item); 01810 bool xccdf_item_get_selected(const struct xccdf_item *item); 01814 bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item); 01818 bool xccdf_item_get_abstract(const struct xccdf_item *item); 01822 struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item); 01826 const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id); 01830 struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id); 01831 01837 struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item); 01838 01848 const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item); 01849 01853 struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item); 01854 01858 struct xccdf_profile *xccdf_benchmark_get_profile_by_id(struct xccdf_benchmark *benchmark, const char *profile_id); 01862 const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark); 01866 bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark); 01870 struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark); 01874 struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark); 01878 const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark); 01882 const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item); 01886 const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark); 01890 const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark); 01894 struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark); 01898 struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark); 01902 struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark); 01906 struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark); 01910 struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark); 01914 struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark); 01918 struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark); 01922 struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item); 01926 struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench); 01930 struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item); 01932 bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval); 01934 const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item); 01935 01943 const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id); 01944 01952 struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id); 01953 01961 struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key); 01962 01968 struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark); 01969 01975 struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark); 01976 01982 struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark); 01983 01991 struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark); 01992 01996 struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark); 01997 02001 struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark); 02002 02006 struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark); 02007 02011 const char *xccdf_profile_get_id(const struct xccdf_profile *profile); 02015 struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile); 02019 struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile); 02023 const char *xccdf_profile_get_version(const struct xccdf_profile *profile); 02027 const char *xccdf_profile_get_extends(const struct xccdf_profile *profile); 02031 struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile); 02035 bool xccdf_profile_get_abstract(const struct xccdf_profile *profile); 02039 bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile); 02043 struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile); 02047 struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile); 02051 struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile); 02055 struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile); 02059 struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile); 02063 struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile); 02067 struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile); 02071 struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile); 02075 struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile); 02079 struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile); 02080 02086 struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule); 02087 02091 const char *xccdf_rule_get_id(const struct xccdf_rule *rule); 02095 struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule); 02099 struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule); 02103 const char *xccdf_rule_get_version(const struct xccdf_rule *rule); 02107 struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule); 02111 struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule); 02115 struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule); 02119 const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule); 02123 float xccdf_rule_get_weight(const struct xccdf_rule *rule); 02127 bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval); 02131 const char *xccdf_rule_get_extends(const struct xccdf_rule *rule); 02135 bool xccdf_rule_get_abstract(const struct xccdf_rule *rule); 02139 bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule); 02143 bool xccdf_rule_get_hidden(const struct xccdf_rule *rule); 02147 bool xccdf_rule_get_selected(const struct xccdf_rule *rule); 02151 bool xccdf_rule_get_multiple(const struct xccdf_rule *rule); 02155 struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule); 02159 struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule); 02163 struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule); 02167 struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule); 02171 struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule); 02175 const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule); 02179 xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule); 02183 xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule); 02187 struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule); 02191 struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule); 02195 struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule); 02199 struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule); 02203 struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule); 02207 struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule); 02211 struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule); 02215 struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule); 02216 02217 /* 02218 * Return group's parent in the grouping hierarchy. 02219 * Returned item will be either a group or a benchmark. 02220 * @memberof xccdf_group 02221 */ 02222 struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group); 02223 02231 struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group); 02232 02234 struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group); 02235 02237 const char *xccdf_group_get_id(const struct xccdf_group *group); 02239 struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group); 02241 struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group); 02243 const char *xccdf_group_get_version(const struct xccdf_group *group); 02245 struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group); 02247 struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group); 02249 struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group); 02251 const char *xccdf_group_get_cluster_id(const struct xccdf_group *group); 02253 float xccdf_group_get_weight(const struct xccdf_group *group); 02255 bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval); 02257 const char *xccdf_group_get_extends(const struct xccdf_group *group); 02259 bool xccdf_group_get_abstract(const struct xccdf_group *group); 02261 bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group); 02263 bool xccdf_group_get_hidden(const struct xccdf_group *group); 02265 bool xccdf_group_get_selected(const struct xccdf_group *group); 02267 struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group); 02269 struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group); 02271 struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group); 02273 struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group); 02275 struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group); 02277 struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group); 02279 struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group); 02281 struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group); 02282 02284 struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value); 02286 const char *xccdf_value_get_id(const struct xccdf_value *value); 02288 struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value); 02290 const char *xccdf_value_get_extends(const struct xccdf_value *value); 02292 bool xccdf_value_get_abstract(const struct xccdf_value *value); 02294 bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value); 02296 bool xccdf_value_get_hidden(const struct xccdf_value *value); 02298 bool xccdf_value_get_interactive(const struct xccdf_value *value); 02300 struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value); 02302 struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value); 02304 struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value); 02306 struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value); 02308 xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value); 02310 xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value); 02312 xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value); 02314 struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector); 02316 bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance); 02318 struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item); 02320 struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value); 02321 02323 void xccdf_value_instance_free(struct xccdf_value_instance *inst); 02325 struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val); 02327 const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item); 02329 bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval); 02331 xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item); 02333 bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item); 02335 bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval); 02337 bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst); 02339 bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval); 02341 xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst); 02343 bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval); 02345 const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst); 02347 bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval); 02349 bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst); 02351 bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval); 02353 xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst); 02355 bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval); 02357 const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst); 02359 bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval); 02361 xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst); 02363 bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval); 02365 xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst); 02367 bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval); 02369 const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst); 02371 bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval); 02373 const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val); 02374 02380 struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value); 02381 02382 02384 time_t xccdf_status_get_date(const struct xccdf_status *status); 02386 xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status); 02388 const char *xccdf_status_type_to_text(xccdf_status_type_t id); 02389 02391 const char *xccdf_notice_get_id(const struct xccdf_notice *notice); 02393 struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice); 02395 const char *xccdf_model_get_system(const struct xccdf_model *model); 02397 const char *xccdf_ident_get_id(const struct xccdf_ident *ident); 02399 const char *xccdf_ident_get_system(const struct xccdf_ident *ident); 02401 const char *xccdf_check_get_id(const struct xccdf_check *check); 02402 02408 bool xccdf_check_get_complex(const struct xccdf_check *check); 02409 02415 xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check); 02417 const char *xccdf_check_get_system(const struct xccdf_check *check); 02419 const char *xccdf_check_get_selector(const struct xccdf_check *check); 02421 const char *xccdf_check_get_content(const struct xccdf_check *check); 02423 bool xccdf_check_get_multicheck(const struct xccdf_check *check); 02425 bool xccdf_check_get_negate(const struct xccdf_check *check); 02427 //struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check); 02433 struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check); 02434 02436 const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref); 02438 const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref); 02440 const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note); 02442 struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note); 02444 const char *xccdf_check_import_get_name(const struct xccdf_check_import *item); 02446 const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item); 02448 const char *xccdf_check_import_get_content(const struct xccdf_check_import *item); 02450 const char *xccdf_check_export_get_value(const struct xccdf_check_export *item); 02452 const char *xccdf_check_export_get_name(const struct xccdf_check_export *item); 02453 02455 const char *xccdf_fix_get_content(const struct xccdf_fix *fix); 02457 bool xccdf_fix_get_reboot(const struct xccdf_fix *fix); 02459 xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix); 02461 xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix); 02463 xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix); 02465 const char *xccdf_fix_get_id(const struct xccdf_fix *fix); 02467 const char *xccdf_fix_get_system(const struct xccdf_fix *fix); 02469 const char *xccdf_fix_get_platform(const struct xccdf_fix *fix); 02471 bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext); 02473 xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext); 02475 xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext); 02477 xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext); 02479 const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext); 02481 struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext); 02483 const char *xccdf_value_get_version(const struct xccdf_value *value); 02485 struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value); 02487 struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value); 02489 const char *xccdf_value_get_version_update(const struct xccdf_value *value); 02491 const char *xccdf_value_get_version_time(const struct xccdf_value *value); 02493 struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value); 02495 struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value); 02497 const char *xccdf_value_get_cluster_id(const struct xccdf_value *value); 02498 02500 struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item); 02502 struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item); 02504 struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item); 02506 const char *xccdf_item_get_cluster_id(const struct xccdf_item *item); 02508 const char *xccdf_item_get_version_update(const struct xccdf_item *item); 02510 const char *xccdf_item_get_version_time(const struct xccdf_item *item); 02512 float xccdf_item_get_weight(const struct xccdf_item *item); 02514 struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item); 02516 struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item); 02517 02519 struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark); 02521 const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark); 02523 const char *xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark); 02524 02526 const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile); 02528 const char *xccdf_profile_get_version_time(const struct xccdf_profile *profile); 02530 bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile); 02532 const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile); 02533 02535 const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule); 02537 const char *xccdf_rule_get_version_time(const struct xccdf_rule *rule); 02539 struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule); 02540 02542 const char *xccdf_group_get_version_time(const struct xccdf_group *group); 02544 const char *xccdf_group_get_version_update(const struct xccdf_group *group); 02546 struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group); 02547 02549 struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check); 02551 struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check); 02553 struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check); 02554 02556 bool xccdf_select_get_selected(const struct xccdf_select *select); 02558 const char *xccdf_select_get_item(const struct xccdf_select *select); 02560 struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select); 02561 02563 xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning); 02565 struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning); 02567 const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr); 02569 const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr); 02571 xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr); 02573 xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr); 02575 struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr); 02577 xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item); 02579 bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item); 02581 const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv); 02583 const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv); 02585 xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv); 02587 struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv); 02589 const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv); 02591 const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv); 02592 02594 const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item); 02596 const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item); 02597 02599 struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item); 02601 const char *xccdf_result_get_id(const struct xccdf_result *item); 02603 struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item); 02605 const char *xccdf_result_get_version(const struct xccdf_result *item); 02607 struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item); 02609 struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item); 02611 const char *xccdf_result_get_test_system(const struct xccdf_result *item); 02613 const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item); 02615 const char *xccdf_result_get_profile(const struct xccdf_result *item); 02617 struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item); 02619 struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item); 02621 struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item); 02623 struct oscap_string_iterator *xccdf_result_get_applicable_platforms(const struct xccdf_result *item); 02625 struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item); 02627 struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item); 02629 struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item); 02631 struct xccdf_target_identifier_iterator *xccdf_result_get_target_id_refs(const struct xccdf_result *item); 02633 struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item); 02635 struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item); 02637 struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item); 02639 const char * xccdf_result_get_start_time(const struct xccdf_result *item); 02641 const char * xccdf_result_get_end_time(const struct xccdf_result *item); 02643 struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result); 02644 02655 bool xccdf_rule_result_override(struct xccdf_rule_result *rule_result, xccdf_test_result_type_t new_result, const char *time, const char *authority, struct oscap_text *remark); 02656 02658 const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item); 02660 xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item); 02662 float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item); 02664 xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item); 02666 xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item); 02668 const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item); 02670 const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item); 02672 struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item); 02674 struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item); 02676 struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item); 02678 struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item); 02680 struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item); 02682 struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item); 02684 bool xccdf_identity_get_authenticated(const struct xccdf_identity *item); 02686 bool xccdf_identity_get_privileged(const struct xccdf_identity *item); 02688 const char *xccdf_identity_get_name(const struct xccdf_identity *item); 02690 xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item); 02692 xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item); 02694 const char *xccdf_score_get_system(const struct xccdf_score *item); 02696 const char *xccdf_override_get_time(const struct xccdf_override *item); 02698 xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item); 02700 xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item); 02702 const char *xccdf_override_get_authority(const struct xccdf_override *item); 02704 struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item); 02706 xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item); 02708 const char *xccdf_message_get_content(const struct xccdf_message *item); 02710 xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item); 02712 const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item); 02714 const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item); 02716 void* xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item); 02718 const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item); 02720 const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item); 02722 const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item); 02724 const char *xccdf_instance_get_context(const struct xccdf_instance *item); 02726 const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item); 02728 const char *xccdf_instance_get_content(const struct xccdf_instance *item); 02730 struct xccdf_tailoring *xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark); 02731 /* 02732 * @memberof xccdf_tailoring 02733 * @deprecated This function has been deprecated by @ref xccdf_tailoring_import_source. 02734 * This function may be dropped from later versions of the library. 02735 */ 02736 OSCAP_DEPRECATED(struct xccdf_tailoring *xccdf_tailoring_import(const char *file, struct xccdf_benchmark *benchmark)); 02737 02739 const char *xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring); 02741 const char *xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring); 02743 const char *xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring); 02745 const char *xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring); 02747 const char *xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring); 02749 const char *xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring); 02751 struct oscap_string_iterator *xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring); 02753 struct xccdf_profile_iterator *xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring); 02755 struct xccdf_status_iterator *xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring); 02757 struct oscap_reference_iterator *xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring); 02765 struct xccdf_profile *xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id); 02766 02767 /************************************************************ 02768 ** @} End of Getters group */ 02769 02770 /************************************************************/ 02778 02779 bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval); 02781 bool xccdf_item_set_id(struct xccdf_item *item, const char *newval); 02783 bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval); 02785 bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval); 02787 bool xccdf_item_set_version(struct xccdf_item *item, const char *newval); 02789 bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval); 02791 bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval); 02793 bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval); 02795 bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval); 02797 bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval); 02799 bool xccdf_item_set_selected(struct xccdf_item *item, bool newval); 02800 02802 bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata); 02803 02805 bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval); 02806 02808 bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval); 02810 bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval); 02812 bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval); 02814 bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval); 02816 bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval); 02818 bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval); 02820 bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval); 02822 bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata); 02824 bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list); 02826 bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark* item, struct cpe_lang_model* cpe_lang_model); 02828 bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval); 02830 bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval); 02832 bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval); 02834 bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval); 02836 bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval); 02838 bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval); 02840 bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval); 02842 bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval); 02844 bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring); 02846 bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata); 02847 02849 bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval); 02851 bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval); 02853 bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval); 02855 bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval); 02857 bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval); 02859 bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval); 02861 bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval); 02863 bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval); 02865 bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval); 02867 bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval); 02869 bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval); 02871 //bool xccdf_rule_set_selector(struct xccdf_rule *item, const char * selector); 02873 bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval); 02875 bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval); 02877 bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval); 02879 bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata); 02880 02882 bool xccdf_group_set_id(struct xccdf_group *item, const char *newval); 02884 bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval); 02886 bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval); 02888 bool xccdf_group_set_version(struct xccdf_group *item, const char *newval); 02890 bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval); 02892 bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval); 02894 bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval); 02896 bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval); 02898 bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval); 02900 bool xccdf_group_set_selected(struct xccdf_group *item, bool newval); 02902 bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata); 02903 02905 bool xccdf_value_set_id(struct xccdf_value *item, const char *newval); 02907 bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval); 02909 bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval); 02911 bool xccdf_value_set_version(struct xccdf_value *item, const char *newval); 02913 bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval); 02915 bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval); 02917 bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval); 02919 bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval); 02921 bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval); 02923 bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval); 02925 bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper); 02927 bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval); 02929 bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata); 02930 02932 bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval); 02934 bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval); 02935 02937 bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval); 02939 bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval); 02940 02942 bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval); 02943 02945 bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval); 02947 bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval); 02949 bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval); 02951 bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval); 02953 bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval); 02955 bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval); 02957 bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval); 02958 02960 bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval); 02962 bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval); 02963 02965 bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval); 02967 bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval); 02968 02970 bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval); 02972 bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval); 02974 bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval); 02975 02977 bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval); 02979 bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval); 02980 02982 bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval); 02984 bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval); 02986 bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval); 02988 bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval); 02990 bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval); 02992 bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval); 02994 bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval); 02996 bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval); 02997 02999 bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval); 03001 bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval); 03003 bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval); 03005 bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval); 03007 bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval); 03009 bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval); 03010 03012 bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval); 03014 bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval); 03015 03017 bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval); 03019 bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval); 03021 struct xccdf_refine_rule *xccdf_refine_rule_new(void); 03022 03024 struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule); 03026 bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval); 03028 bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval); 03030 bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval); 03032 bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval); 03034 bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval); 03035 03037 struct xccdf_refine_value *xccdf_refine_value_new(void); 03039 struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value); 03041 bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval); 03043 bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval); 03045 bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval); 03046 03048 struct xccdf_setvalue *xccdf_setvalue_new(void); 03050 struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value); 03052 bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval); 03054 bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval); 03056 bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval); 03058 bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval); 03059 03061 bool xccdf_result_set_id(struct xccdf_result *item, const char *newval); 03063 bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval); 03065 bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval); 03067 bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval); 03069 bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval); 03071 bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval); 03073 bool xccdf_result_set_version(struct xccdf_result *item, const char *newval); 03075 bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata); 03076 03078 bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval); 03080 bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval); 03082 bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval); 03084 bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval); 03086 bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval); 03088 bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval); 03090 bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval); 03091 03093 bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval); 03095 bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval); 03097 bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval); 03098 03100 bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval); 03102 bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval); 03104 bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval); 03105 03107 bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval); 03109 bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval); 03111 bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval); 03113 bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval); 03115 bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval); 03116 03118 bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval); 03120 bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval); 03121 03123 bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str); 03125 bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val); 03127 bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val); 03129 bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval); 03130 03132 bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void* node); 03134 bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval); 03136 bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval); 03138 bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval); 03139 03141 bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval); 03143 bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval); 03145 bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval); 03146 03148 bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char* newval); 03150 bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char* newval); 03152 bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval); 03154 bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval); 03156 bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval); 03158 bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval); 03159 03161 bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile); 03174 bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile); 03176 bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark); 03177 03178 // @memberof xccdf_ident 03179 void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id); 03180 // @memberof xccdf_ident 03181 void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys); 03182 03184 bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result); 03185 03187 bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval); 03189 bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval); 03191 bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval); 03193 bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval); 03195 bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval); 03197 bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval); 03199 bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval); 03201 //bool xccdf_benchmark_add_item(struct xccdf_benchmark *item, struct xccdf_item *newval); 03203 bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval); 03205 bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval); 03207 bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval); 03209 bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval); 03211 bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval); 03213 bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule); 03215 bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group); 03217 bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value); 03219 bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item); 03220 03222 bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval); 03224 bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval); 03226 bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval); 03228 bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval); 03229 03231 bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval); 03233 bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval); 03235 bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval); 03237 bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval); 03239 bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval); 03241 bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval); 03242 03244 bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval); 03246 bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval); 03248 bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval); 03250 bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval); 03252 bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval); 03254 bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval); 03256 bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval); 03258 bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval); 03260 bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval); 03262 bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval); 03264 bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval); 03266 bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval); 03268 bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval); 03270 bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval); 03271 03273 bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval); 03275 bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval); 03277 bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval); 03279 bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval); 03281 bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval); 03283 bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval); 03285 bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval); 03287 bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval); 03289 bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval); 03291 bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item); 03293 bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item); 03295 bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item); 03297 bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item); 03298 03300 bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval); 03302 bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval); 03304 bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval); 03306 bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval); 03308 bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval); 03310 bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval); 03312 bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval); 03313 03315 bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item); 03317 bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item); 03319 bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item); 03321 bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item); 03323 bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item); 03325 bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item); 03327 bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval); 03329 bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval); 03331 bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval); 03333 bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval); 03335 bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval); 03337 bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval); 03339 bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval); 03341 bool xccdf_result_add_target(struct xccdf_result *item, const char *newval); 03343 bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval); 03345 bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval); 03347 bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval); 03349 bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval); 03351 bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval); 03353 int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark); 03355 bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item); 03357 bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item); 03359 bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item); 03361 bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item); 03363 bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item); 03365 bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item); 03367 bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval); 03369 bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval); 03371 bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval); 03373 bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval); 03375 bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval); 03377 bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval); 03379 bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval); 03381 bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval); 03383 bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval); 03385 bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item); 03386 03388 bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires); 03390 bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires); 03392 bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires); 03394 bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts); 03396 bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts); 03398 bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts); 03399 03400 /************************************************************ 03401 ** @} End of Setters group */ 03402 03403 // remove operations 03404 03406 void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it); 03408 void xccdf_model_iterator_remove(struct xccdf_model_iterator *it); 03410 void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it); 03412 void xccdf_item_iterator_remove(struct xccdf_item_iterator *it); 03414 void xccdf_status_iterator_remove(struct xccdf_status_iterator *it); 03416 void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it); 03418 void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it); 03420 void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it); 03422 void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it); 03424 void xccdf_select_iterator_remove(struct xccdf_select_iterator *it); 03426 void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it); 03428 void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it); 03430 void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it); 03432 void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it); 03434 void xccdf_check_iterator_remove(struct xccdf_check_iterator *it); 03436 void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it); 03438 void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it); 03440 void xccdf_value_iterator_remove(struct xccdf_value_iterator *it); 03442 void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it); 03444 void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it); 03446 void xccdf_result_iterator_remove(struct xccdf_result_iterator *it); 03448 void xccdf_override_iterator_remove(struct xccdf_override_iterator *it); 03450 void xccdf_message_iterator_remove(struct xccdf_message_iterator *it); 03452 void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it); 03454 void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it); 03456 void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it); 03458 void xccdf_score_iterator_remove(struct xccdf_score_iterator *it); 03460 void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it); 03462 void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it); 03464 void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it); 03465 03466 03467 // textual substitution interface 03468 03474 typedef enum xccdf_subst_type { 03475 XCCDF_SUBST_NONE, 03476 XCCDF_SUBST_SUB, 03477 XCCDF_SUBST_LINK, 03478 XCCDF_SUBST_INSTANCE 03479 } xccdf_subst_type_t; 03480 03491 typedef char*(*xccdf_substitution_func)(xccdf_subst_type_t type, const char *id, void *arg); 03492 03493 03504 OSCAP_DEPRECATED(char* oscap_text_xccdf_substitute(const char *text, xccdf_substitution_func cb, void *arg)); 03505 03506 /************************************************************/ 03508 03509 03510 #endif
1.7.3