Open SCAP Library
xccdf_benchmark.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright 2009--2014 Red Hat Inc., Durham, North Carolina.
12  * Copyright (C) 2010 Tresys Technology, LLC
13  * All Rights Reserved.
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28  *
29  * Authors:
30  * Lukas Kuklinek <lkuklinek@redhat.com>
31  * Josh Adams <jadams@tresys.com>
32  */
33 
34 #ifndef XCCDF_H_
35 #define XCCDF_H_
36 
37 #include <stdbool.h>
38 #include <time.h>
39 #include <oscap_reference.h>
40 #include <oscap_source.h>
41 #include <oscap.h>
42 #include "cpe_dict.h"
43 #include "oscap_export.h"
44 
45 /*--------------------*\
46 | Enumerations |
47 \*--------------------*/
48 
57 typedef enum {
58  XCCDF_BENCHMARK = 0x0100,
59  XCCDF_PROFILE = 0x0200,
60  XCCDF_RESULT = 0x0400,
61  XCCDF_RULE = 0x1000,
62  XCCDF_GROUP = 0x2000,
63  XCCDF_VALUE = 0x4000,
64 
71 } xccdf_type_t;
72 
74 typedef enum {
82 
84 typedef enum {
92 
94 typedef enum {
99 
101 typedef enum {
110 
112 typedef enum {
114  XCCDF_OPERATOR_OR = 0x0003,
116 
118 typedef enum {
119  XCCDF_LEVEL_NOT_DEFINED = 0,
125 } xccdf_level_t;
126 
128 typedef enum {
129  XCCDF_MSG_NOT_DEFINED = 0,
134 
136 typedef enum {
140 } xccdf_role_t;
141 
143 typedef enum {
144  XCCDF_WARNING_NOT_SPECIFIED,
155 
157 typedef enum {
168 
170 typedef enum {
181 
185 enum {
186  OSCAP_PROFILE_MATCH_OK = 0, // successful profile ID match
187  OSCAP_PROFILE_NO_MATCH = 1, // no profile ID was matched
188  OSCAP_PROFILE_MULTIPLE_MATCHES = 2, // multiple profile IDs were matched
189 };
190 
191 /*--------------------*\
192 | Typedefs |
193 \*--------------------*/
194 
198 typedef float xccdf_numeric;
199 
205 
210 struct xccdf_profile;
211 
216 struct xccdf_item;
217 
222 struct xccdf_rule;
223 
228 struct xccdf_group;
229 
234 struct xccdf_value;
235 
240 struct xccdf_result;
241 
247 struct xccdf_tailoring;
248 
249 /*--------------------*\
250 | Support structures |
251 \*--------------------*/
252 
257 struct xccdf_notice;
258 
263 struct xccdf_status;
264 
269 struct xccdf_model;
270 
275 struct xccdf_warning;
276 
281 struct xccdf_select;
282 
287 struct xccdf_setvalue;
288 
293 struct xccdf_refine_value;
294 
299 struct xccdf_refine_rule;
300 
305 struct xccdf_ident;
306 
311 struct xccdf_check;
317 
322 struct xccdf_profile_note;
323 
329 struct xccdf_check_import;
330 
336 struct xccdf_check_export;
337 
343 struct xccdf_fix;
344 
350 struct xccdf_fixtext;
351 
359 struct xccdf_value_instance;
360 
366 struct xccdf_identity;
367 
373 struct xccdf_instance;
374 
380 struct xccdf_message;
381 
387 struct xccdf_override;
388 
394 struct xccdf_rule_result;
395 
401 struct xccdf_score;
402 
408 struct xccdf_target_fact;
409 
417 
424 
431 
438 
445 
452 
459 
466 
473 
480 
487 
494 
500 
507 
514 
521 
528 
535 
542 
549 
556 
563 
570 
577 
584 
591 
598 
605 
612 
619 
626 
633 
637 struct xccdf_version_info;
638 
640 OSCAP_API const char* xccdf_version_info_get_version(const struct xccdf_version_info* v);
642 OSCAP_API const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v);
644 OSCAP_API const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v);
645 
646 /************************************************************/
647 
649 OSCAP_API void xccdf_item_free(struct xccdf_item *item);
650 
652 OSCAP_API struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item);
653 
660 OSCAP_API struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item);
661 
668 OSCAP_API struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item);
669 
676 OSCAP_API struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item);
677 
684 OSCAP_API struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item);
685 
692 OSCAP_API struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item);
693 
700 OSCAP_API struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item);
701 
708 OSCAP_API struct xccdf_benchmark* xccdf_benchmark_import_source(struct oscap_source *source);
709 
716 OSCAP_API int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file);
717 
723 OSCAP_API struct oscap_source *xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename);
724 
731 OSCAP_API struct xccdf_result *xccdf_result_import_source(struct oscap_source *source);
732 
737 OSCAP_API void xccdf_result_fill_sysinfo(struct xccdf_result *result);
738 
744 OSCAP_API struct oscap_source *xccdf_result_export_source(struct xccdf_result *result, const char *filepath);
745 
751 OSCAP_API struct oscap_source *xccdf_result_stig_viewer_export_source(struct xccdf_result *result, const char *filepath);
752 
759 OSCAP_API bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark);
760 
762 OSCAP_API struct xccdf_benchmark *xccdf_benchmark_new(void);
764 OSCAP_API void xccdf_benchmark_free(struct xccdf_benchmark *benchmark);
766 OSCAP_API struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item);
768 OSCAP_API struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark );
769 
775 OSCAP_API const char * xccdf_benchmark_supported(void);
776 
779 
781 OSCAP_API struct xccdf_profile *xccdf_profile_new(void);
783 OSCAP_API void xccdf_profile_free(struct xccdf_item *prof);
785 OSCAP_API struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item);
787 OSCAP_API struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile);
788 
790 OSCAP_API struct xccdf_rule *xccdf_rule_new(void);
792 OSCAP_API void xccdf_rule_free(struct xccdf_item *rule);
794 OSCAP_API struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item);
796 OSCAP_API struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule);
797 
799 OSCAP_API struct xccdf_group *xccdf_group_new(void);
801 OSCAP_API void xccdf_group_free(struct xccdf_item *group);
803 OSCAP_API struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item);
805 OSCAP_API struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group);
806 
808 OSCAP_API struct xccdf_value *xccdf_value_new(xccdf_value_type_t type);
810 OSCAP_API void xccdf_value_free(struct xccdf_item *val);
812 OSCAP_API struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item);
814 OSCAP_API struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value);
815 
817 OSCAP_API struct xccdf_status *xccdf_status_new(void);
819 OSCAP_API struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status);
821 OSCAP_API struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date);
823 OSCAP_API void xccdf_status_free(struct xccdf_status *status);
825 OSCAP_API struct xccdf_notice *xccdf_notice_new(void);
827 OSCAP_API void xccdf_notice_free(struct xccdf_notice *notice);
829 OSCAP_API struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice);
830 
832 OSCAP_API struct xccdf_model *xccdf_model_new(void);
834 OSCAP_API struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model);
836 OSCAP_API void xccdf_model_free(struct xccdf_model *model);
837 
839 OSCAP_API struct xccdf_ident *xccdf_ident_new(void);
841 OSCAP_API struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys);
843 OSCAP_API struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident);
845 OSCAP_API void xccdf_ident_free(struct xccdf_ident *ident);
846 
847 
849 OSCAP_API struct xccdf_check *xccdf_check_new(void);
851 OSCAP_API void xccdf_check_free(struct xccdf_check *check);
852 
854 OSCAP_API struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check);
856 OSCAP_API struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import);
858 OSCAP_API struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export);
860 OSCAP_API struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref);
861 
865 OSCAP_API void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref);
866 
868 OSCAP_API struct xccdf_profile_note *xccdf_profile_note_new(void);
870 OSCAP_API void xccdf_profile_note_free(struct xccdf_profile_note *note);
871 
873 OSCAP_API struct xccdf_check_import *xccdf_check_import_new(void);
875 OSCAP_API void xccdf_check_import_free(struct xccdf_check_import *item);
876 
878 OSCAP_API struct xccdf_check_export *xccdf_check_export_new(void);
880 OSCAP_API void xccdf_check_export_free(struct xccdf_check_export *item);
881 
883 OSCAP_API struct xccdf_fix *xccdf_fix_new(void);
885 OSCAP_API struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix);
887 OSCAP_API void xccdf_fix_free(struct xccdf_fix *item);
888 
890 OSCAP_API struct xccdf_fixtext *xccdf_fixtext_new(void);
892 OSCAP_API struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext);
894 OSCAP_API void xccdf_fixtext_free(struct xccdf_fixtext *item);
895 
897 OSCAP_API void xccdf_select_free(struct xccdf_select *sel);
899 OSCAP_API struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select);
901 OSCAP_API struct xccdf_select *xccdf_select_new(void);
902 
904 OSCAP_API struct xccdf_warning *xccdf_warning_new(void);
906 OSCAP_API struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning);
908 OSCAP_API void xccdf_warning_free(struct xccdf_warning * warn);
909 
911 OSCAP_API void xccdf_refine_rule_free(struct xccdf_refine_rule *obj);
912 
914 OSCAP_API void xccdf_refine_value_free(struct xccdf_refine_value *rv);
915 
916 OSCAP_API void xccdf_setvalue_free(struct xccdf_setvalue *sv);
917 
919 OSCAP_API struct xccdf_tailoring *xccdf_tailoring_new(void);
921 OSCAP_API void xccdf_tailoring_free(struct xccdf_tailoring *tailoring);
923 OSCAP_API int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info);
924 
930 OSCAP_API struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id);
931 
937 OSCAP_API struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type);
938 
944 OSCAP_API struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id);
945 
955 OSCAP_API const char *xccdf_benchmark_match_profile_id(struct xccdf_benchmark *bench, const char *profile_suffix, int *match_status);
956 
966 OSCAP_API const char *xccdf_tailoring_match_profile_id(struct xccdf_tailoring *tailoring, const char *profile_suffix, int *match_status);
967 
969 OSCAP_API struct xccdf_plain_text *xccdf_plain_text_new(void);
971 OSCAP_API struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text);
973 OSCAP_API void xccdf_plain_text_free(struct xccdf_plain_text *plain);
975 OSCAP_API struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt);
976 
978 OSCAP_API struct xccdf_result *xccdf_result_new(void);
980 OSCAP_API void xccdf_result_free(struct xccdf_result *item);
982 OSCAP_API struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item);
984 OSCAP_API struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result);
985 
987 OSCAP_API struct xccdf_rule_result *xccdf_rule_result_new(void);
989 OSCAP_API struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result);
991 OSCAP_API void xccdf_rule_result_free(struct xccdf_rule_result *rr);
992 
994 OSCAP_API struct xccdf_identity *xccdf_identity_new(void);
996 OSCAP_API struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity);
998 OSCAP_API void xccdf_identity_free(struct xccdf_identity *identity);
999 
1001 OSCAP_API struct xccdf_score *xccdf_score_new(void);
1003 OSCAP_API struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score);
1005 OSCAP_API void xccdf_score_free(struct xccdf_score *score);
1006 
1008 OSCAP_API struct xccdf_override *xccdf_override_new(void);
1010 OSCAP_API struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override);
1012 OSCAP_API void xccdf_override_free(struct xccdf_override *oride);
1013 
1015 OSCAP_API struct xccdf_message *xccdf_message_new(void);
1017 OSCAP_API struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message);
1019 OSCAP_API void xccdf_message_free(struct xccdf_message *msg);
1020 
1022 OSCAP_API struct xccdf_target_fact *xccdf_target_fact_new(void);
1024 OSCAP_API struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf);
1026 OSCAP_API void xccdf_target_fact_free(struct xccdf_target_fact *fact);
1027 
1033 OSCAP_API void xccdf_target_identifier_free(struct xccdf_target_identifier *ti);
1034 
1036 OSCAP_API struct xccdf_instance *xccdf_instance_new(void);
1038 OSCAP_API struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance);
1040 OSCAP_API void xccdf_instance_free(struct xccdf_instance *inst);
1041 
1044 
1045 /************************************************************/
1055 OSCAP_API struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it);
1060 OSCAP_API bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it);
1065 OSCAP_API void xccdf_item_iterator_free(struct xccdf_item_iterator *it);
1070 OSCAP_API void xccdf_item_iterator_reset(struct xccdf_item_iterator *it);
1071 
1072 
1077 OSCAP_API struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it);
1082 OSCAP_API bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it);
1087 OSCAP_API void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it);
1092 OSCAP_API void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it);
1093 
1094 
1099 OSCAP_API struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it);
1104 OSCAP_API bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it);
1109 OSCAP_API void xccdf_status_iterator_free(struct xccdf_status_iterator *it);
1114 OSCAP_API void xccdf_status_iterator_reset(struct xccdf_status_iterator *it);
1115 
1116 
1121 OSCAP_API struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it);
1126 OSCAP_API bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it);
1131 OSCAP_API void xccdf_model_iterator_free(struct xccdf_model_iterator *it);
1136 OSCAP_API void xccdf_model_iterator_reset(struct xccdf_model_iterator *it);
1137 
1138 
1143 OSCAP_API struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it);
1148 OSCAP_API bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it);
1153 OSCAP_API void xccdf_result_iterator_free(struct xccdf_result_iterator *it);
1158 OSCAP_API void xccdf_result_iterator_reset(struct xccdf_result_iterator *it);
1159 
1160 
1170 OSCAP_API bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it);
1175 OSCAP_API void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it);
1180 OSCAP_API void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it);
1181 
1182 
1187 OSCAP_API struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it);
1192 OSCAP_API bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it);
1197 OSCAP_API void xccdf_select_iterator_free(struct xccdf_select_iterator *it);
1202 OSCAP_API void xccdf_select_iterator_reset(struct xccdf_select_iterator *it);
1203 
1204 
1219 OSCAP_API void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it);
1224 OSCAP_API void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it);
1225 
1226 
1247 
1248 
1269 
1270 
1275 OSCAP_API struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it);
1280 OSCAP_API bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it);
1285 OSCAP_API void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it);
1290 OSCAP_API void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it);
1291 
1292 
1297 OSCAP_API struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it);
1302 OSCAP_API bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it);
1307 OSCAP_API void xccdf_check_iterator_free(struct xccdf_check_iterator *it);
1312 OSCAP_API void xccdf_check_iterator_reset(struct xccdf_check_iterator *it);
1313 
1314 
1335 
1336 
1357 
1358 
1379 
1380 
1401 
1402 
1407 OSCAP_API struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it);
1412 OSCAP_API bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it);
1417 OSCAP_API void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it);
1422 OSCAP_API void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it);
1423 
1424 
1434 OSCAP_API bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it);
1439 OSCAP_API void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it);
1444 OSCAP_API void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it);
1445 
1446 
1456 OSCAP_API bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it);
1461 OSCAP_API void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it);
1466 OSCAP_API void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it);
1467 
1468 
1483 OSCAP_API void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it);
1488 OSCAP_API void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it);
1489 
1490 
1500 OSCAP_API bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it);
1505 OSCAP_API void xccdf_message_iterator_free(struct xccdf_message_iterator *it);
1510 OSCAP_API void xccdf_message_iterator_reset(struct xccdf_message_iterator *it);
1511 
1512 
1527 OSCAP_API void xccdf_override_iterator_free(struct xccdf_override_iterator *it);
1532 OSCAP_API void xccdf_override_iterator_reset(struct xccdf_override_iterator *it);
1533 
1534 
1549 OSCAP_API void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it);
1554 OSCAP_API void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it);
1555 
1556 
1577 
1578 
1599 
1600 
1605 OSCAP_API struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it);
1610 OSCAP_API bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it);
1615 OSCAP_API void xccdf_score_iterator_free(struct xccdf_score_iterator *it);
1620 OSCAP_API void xccdf_score_iterator_reset(struct xccdf_score_iterator *it);
1621 
1622 
1643 
1664 
1665 
1686 
1687 
1692 OSCAP_API struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it);
1697 OSCAP_API bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it);
1702 OSCAP_API void xccdf_value_iterator_free(struct xccdf_value_iterator *it);
1707 OSCAP_API void xccdf_value_iterator_reset(struct xccdf_value_iterator *it);
1708 
1709 /************************************************************
1710  ** @} End of Iterators group */
1711 
1712 /************************************************************/
1723 OSCAP_API xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item);
1727 OSCAP_API const char *xccdf_item_get_id(const struct xccdf_item *item);
1731 OSCAP_API struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item);
1735 OSCAP_API struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item);
1739 OSCAP_API const char *xccdf_item_get_version(const struct xccdf_item *item);
1743 OSCAP_API const char *xccdf_item_get_extends(const struct xccdf_item *item);
1747 OSCAP_API struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item);
1751 OSCAP_API struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item);
1755 OSCAP_API struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item);
1759 OSCAP_API struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item);
1763 OSCAP_API struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item);
1767 OSCAP_API struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item);
1771 OSCAP_API bool xccdf_item_get_hidden(const struct xccdf_item *item);
1775 OSCAP_API bool xccdf_item_get_selected(const struct xccdf_item *item);
1779 OSCAP_API bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item);
1783 OSCAP_API bool xccdf_item_get_abstract(const struct xccdf_item *item);
1787 OSCAP_API struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item);
1791 OSCAP_API const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id);
1795 OSCAP_API struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id);
1796 
1802 OSCAP_API struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item);
1803 
1813 OSCAP_API const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item);
1814 
1818 OSCAP_API struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item);
1819 
1823 OSCAP_API struct xccdf_profile *xccdf_benchmark_get_profile_by_id(struct xccdf_benchmark *benchmark, const char *profile_id);
1827 OSCAP_API const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark);
1831 OSCAP_API bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark);
1835 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark);
1839 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark);
1843 OSCAP_API const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark);
1847 OSCAP_API const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item);
1851 OSCAP_API const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark);
1855 OSCAP_API const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark);
1859 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark);
1863 OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark);
1867 OSCAP_API struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark);
1871 OSCAP_API struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark);
1875 OSCAP_API struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark);
1879 OSCAP_API struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark);
1883 OSCAP_API struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark);
1887 OSCAP_API struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item);
1891 OSCAP_API struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench);
1895 OSCAP_API struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item);
1897 OSCAP_API bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval);
1899 OSCAP_API const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item);
1900 
1908 OSCAP_API const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id);
1909 
1917 OSCAP_API struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id);
1918 
1926 OSCAP_API struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key);
1927 
1933 OSCAP_API struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark);
1934 
1940 OSCAP_API struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark);
1941 
1947 OSCAP_API struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark);
1948 
1956 OSCAP_API struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark);
1957 
1961 OSCAP_API struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark);
1962 
1966 OSCAP_API struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark);
1967 
1971 OSCAP_API struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark);
1972 
1976 OSCAP_API const char *xccdf_profile_get_id(const struct xccdf_profile *profile);
1980 OSCAP_API struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile);
1984 OSCAP_API struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile);
1988 OSCAP_API const char *xccdf_profile_get_version(const struct xccdf_profile *profile);
1992 OSCAP_API const char *xccdf_profile_get_extends(const struct xccdf_profile *profile);
1996 OSCAP_API struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile);
2000 OSCAP_API bool xccdf_profile_get_abstract(const struct xccdf_profile *profile);
2004 OSCAP_API bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile);
2008 OSCAP_API struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile);
2012 OSCAP_API struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile);
2016 OSCAP_API struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile);
2020 OSCAP_API struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile);
2024 OSCAP_API struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile);
2028 OSCAP_API struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile);
2032 OSCAP_API struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile);
2036 OSCAP_API struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile);
2040 OSCAP_API struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile);
2044 OSCAP_API struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile);
2045 
2051 OSCAP_API struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule);
2052 
2056 OSCAP_API const char *xccdf_rule_get_id(const struct xccdf_rule *rule);
2060 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule);
2064 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule);
2068 OSCAP_API const char *xccdf_rule_get_version(const struct xccdf_rule *rule);
2072 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule);
2076 OSCAP_API struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule);
2080 OSCAP_API struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule);
2084 OSCAP_API const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule);
2088 OSCAP_API float xccdf_rule_get_weight(const struct xccdf_rule *rule);
2092 OSCAP_API bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval);
2096 OSCAP_API const char *xccdf_rule_get_extends(const struct xccdf_rule *rule);
2100 OSCAP_API bool xccdf_rule_get_abstract(const struct xccdf_rule *rule);
2104 OSCAP_API bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule);
2108 OSCAP_API bool xccdf_rule_get_hidden(const struct xccdf_rule *rule);
2112 OSCAP_API bool xccdf_rule_get_selected(const struct xccdf_rule *rule);
2116 OSCAP_API bool xccdf_rule_get_multiple(const struct xccdf_rule *rule);
2120 OSCAP_API struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule);
2124 OSCAP_API struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule);
2128 OSCAP_API struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule);
2132 OSCAP_API struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule);
2136 OSCAP_API struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule);
2140 OSCAP_API const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule);
2144 OSCAP_API xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule);
2148 OSCAP_API xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule);
2152 OSCAP_API struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule);
2156 OSCAP_API struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule);
2160 OSCAP_API struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule);
2164 OSCAP_API struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule);
2168 OSCAP_API struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule);
2172 OSCAP_API struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule);
2176 OSCAP_API struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule);
2180 OSCAP_API struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule);
2181 
2182 /*
2183  * Return group's parent in the grouping hierarchy.
2184  * Returned item will be either a group or a benchmark.
2185  * @memberof xccdf_group
2186  */
2187 OSCAP_API struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group);
2188 
2196 OSCAP_API struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group);
2197 
2199 OSCAP_API struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group);
2200 
2202 OSCAP_API const char *xccdf_group_get_id(const struct xccdf_group *group);
2204 OSCAP_API struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group);
2206 OSCAP_API struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group);
2208 OSCAP_API const char *xccdf_group_get_version(const struct xccdf_group *group);
2210 OSCAP_API struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group);
2212 OSCAP_API struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group);
2214 OSCAP_API struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group);
2216 OSCAP_API const char *xccdf_group_get_cluster_id(const struct xccdf_group *group);
2218 OSCAP_API float xccdf_group_get_weight(const struct xccdf_group *group);
2220 OSCAP_API bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval);
2222 OSCAP_API const char *xccdf_group_get_extends(const struct xccdf_group *group);
2224 OSCAP_API bool xccdf_group_get_abstract(const struct xccdf_group *group);
2226 OSCAP_API bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group);
2228 OSCAP_API bool xccdf_group_get_hidden(const struct xccdf_group *group);
2230 OSCAP_API bool xccdf_group_get_selected(const struct xccdf_group *group);
2232 OSCAP_API struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group);
2234 OSCAP_API struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group);
2236 OSCAP_API struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group);
2238 OSCAP_API struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group);
2240 OSCAP_API struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group);
2242 OSCAP_API struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group);
2244 OSCAP_API struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group);
2246 OSCAP_API struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group);
2247 
2249 OSCAP_API struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value);
2251 OSCAP_API const char *xccdf_value_get_id(const struct xccdf_value *value);
2253 OSCAP_API struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value);
2255 OSCAP_API const char *xccdf_value_get_extends(const struct xccdf_value *value);
2257 OSCAP_API bool xccdf_value_get_abstract(const struct xccdf_value *value);
2259 OSCAP_API bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value);
2261 OSCAP_API bool xccdf_value_get_hidden(const struct xccdf_value *value);
2263 OSCAP_API bool xccdf_value_get_interactive(const struct xccdf_value *value);
2265 OSCAP_API struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value);
2267 OSCAP_API struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value);
2269 OSCAP_API struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value);
2271 OSCAP_API struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value);
2273 OSCAP_API xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value);
2277 OSCAP_API xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value);
2279 OSCAP_API struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector);
2281 OSCAP_API bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance);
2283 OSCAP_API struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item);
2285 OSCAP_API struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value);
2286 
2288 OSCAP_API void xccdf_value_instance_free(struct xccdf_value_instance *inst);
2290 OSCAP_API struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val);
2292 OSCAP_API const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item);
2294 OSCAP_API bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval);
2298 OSCAP_API bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item);
2300 OSCAP_API bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval);
2302 OSCAP_API bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst);
2304 OSCAP_API bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval);
2308 OSCAP_API bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval);
2310 OSCAP_API const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst);
2312 OSCAP_API bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval);
2314 OSCAP_API bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst);
2316 OSCAP_API bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval);
2322 OSCAP_API const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst);
2324 OSCAP_API bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval);
2328 OSCAP_API bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
2332 OSCAP_API bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval);
2334 OSCAP_API const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst);
2336 OSCAP_API bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval);
2338 OSCAP_API const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val);
2339 
2345 OSCAP_API struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value);
2346 
2347 
2349 OSCAP_API time_t xccdf_status_get_date(const struct xccdf_status *status);
2351 OSCAP_API xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status);
2353 OSCAP_API const char *xccdf_status_type_to_text(xccdf_status_type_t id);
2354 
2356 OSCAP_API const char *xccdf_notice_get_id(const struct xccdf_notice *notice);
2358 OSCAP_API struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice);
2360 OSCAP_API const char *xccdf_model_get_system(const struct xccdf_model *model);
2362 OSCAP_API const char *xccdf_ident_get_id(const struct xccdf_ident *ident);
2364 OSCAP_API const char *xccdf_ident_get_system(const struct xccdf_ident *ident);
2366 OSCAP_API const char *xccdf_check_get_id(const struct xccdf_check *check);
2367 
2373 OSCAP_API bool xccdf_check_get_complex(const struct xccdf_check *check);
2374 
2380 OSCAP_API xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check);
2382 OSCAP_API const char *xccdf_check_get_system(const struct xccdf_check *check);
2384 OSCAP_API const char *xccdf_check_get_selector(const struct xccdf_check *check);
2386 OSCAP_API const char *xccdf_check_get_content(const struct xccdf_check *check);
2388 OSCAP_API bool xccdf_check_get_multicheck(const struct xccdf_check *check);
2390 OSCAP_API bool xccdf_check_get_negate(const struct xccdf_check *check);
2392 //struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check);
2398 OSCAP_API struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check);
2399 
2401 OSCAP_API const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref);
2403 OSCAP_API const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref);
2405 OSCAP_API const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note);
2407 OSCAP_API struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note);
2409 OSCAP_API const char *xccdf_check_import_get_name(const struct xccdf_check_import *item);
2411 OSCAP_API const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item);
2413 OSCAP_API const char *xccdf_check_import_get_content(const struct xccdf_check_import *item);
2415 OSCAP_API const char *xccdf_check_export_get_value(const struct xccdf_check_export *item);
2417 OSCAP_API const char *xccdf_check_export_get_name(const struct xccdf_check_export *item);
2418 
2420 OSCAP_API const char *xccdf_fix_get_content(const struct xccdf_fix *fix);
2422 OSCAP_API bool xccdf_fix_get_reboot(const struct xccdf_fix *fix);
2424 OSCAP_API xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix);
2426 OSCAP_API xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix);
2428 OSCAP_API xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix);
2430 OSCAP_API const char *xccdf_fix_get_id(const struct xccdf_fix *fix);
2432 OSCAP_API const char *xccdf_fix_get_system(const struct xccdf_fix *fix);
2434 OSCAP_API const char *xccdf_fix_get_platform(const struct xccdf_fix *fix);
2436 OSCAP_API bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext);
2438 OSCAP_API xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext);
2440 OSCAP_API xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext);
2442 OSCAP_API xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext);
2444 OSCAP_API const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext);
2446 OSCAP_API struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext);
2448 OSCAP_API const char *xccdf_value_get_version(const struct xccdf_value *value);
2450 OSCAP_API struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value);
2452 OSCAP_API struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value);
2454 OSCAP_API const char *xccdf_value_get_version_update(const struct xccdf_value *value);
2456 OSCAP_API const char *xccdf_value_get_version_time(const struct xccdf_value *value);
2458 OSCAP_API struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value);
2460 OSCAP_API struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value);
2462 OSCAP_API const char *xccdf_value_get_cluster_id(const struct xccdf_value *value);
2463 
2465 OSCAP_API struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item);
2467 OSCAP_API struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item);
2469 OSCAP_API struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item);
2471 OSCAP_API const char *xccdf_item_get_cluster_id(const struct xccdf_item *item);
2473 OSCAP_API const char *xccdf_item_get_version_update(const struct xccdf_item *item);
2475 OSCAP_API const char *xccdf_item_get_version_time(const struct xccdf_item *item);
2477 OSCAP_API float xccdf_item_get_weight(const struct xccdf_item *item);
2479 OSCAP_API struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item);
2481 OSCAP_API struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item);
2482 
2484 OSCAP_API struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark);
2486 OSCAP_API const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark);
2488 OSCAP_API const char *xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark);
2489 
2491 OSCAP_API const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile);
2493 OSCAP_API const char *xccdf_profile_get_version_time(const struct xccdf_profile *profile);
2495 OSCAP_API bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile);
2497 OSCAP_API const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile);
2498 
2500 OSCAP_API const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule);
2502 OSCAP_API const char *xccdf_rule_get_version_time(const struct xccdf_rule *rule);
2504 OSCAP_API struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule);
2505 
2507 OSCAP_API const char *xccdf_group_get_version_time(const struct xccdf_group *group);
2509 OSCAP_API const char *xccdf_group_get_version_update(const struct xccdf_group *group);
2511 OSCAP_API struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group);
2512 
2514 OSCAP_API struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check);
2516 OSCAP_API struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check);
2518 OSCAP_API struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check);
2519 
2521 OSCAP_API bool xccdf_select_get_selected(const struct xccdf_select *select);
2523 OSCAP_API const char *xccdf_select_get_item(const struct xccdf_select *select);
2525 OSCAP_API struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select);
2526 
2528 OSCAP_API xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning);
2530 OSCAP_API struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning);
2532 OSCAP_API const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr);
2534 OSCAP_API const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr);
2536 OSCAP_API xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr);
2540 OSCAP_API struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr);
2542 OSCAP_API xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item);
2544 OSCAP_API bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item);
2546 OSCAP_API const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv);
2548 OSCAP_API const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv);
2552 OSCAP_API struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv);
2554 OSCAP_API const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv);
2556 OSCAP_API const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv);
2557 
2559 OSCAP_API const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item);
2561 OSCAP_API const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item);
2562 
2564 OSCAP_API struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item);
2566 OSCAP_API const char *xccdf_result_get_id(const struct xccdf_result *item);
2568 OSCAP_API struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item);
2570 OSCAP_API const char *xccdf_result_get_version(const struct xccdf_result *item);
2572 OSCAP_API struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item);
2574 OSCAP_API struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item);
2576 OSCAP_API const char *xccdf_result_get_test_system(const struct xccdf_result *item);
2578 OSCAP_API const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item);
2580 OSCAP_API const char *xccdf_result_get_profile(const struct xccdf_result *item);
2582 OSCAP_API struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item);
2584 OSCAP_API struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item);
2586 OSCAP_API struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item);
2588 OSCAP_API struct oscap_string_iterator *xccdf_result_get_applicable_platforms(const struct xccdf_result *item);
2590 OSCAP_API struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item);
2592 OSCAP_API struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item);
2594 OSCAP_API struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item);
2598 OSCAP_API struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item);
2600 OSCAP_API struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item);
2602 OSCAP_API struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item);
2604 OSCAP_API const char * xccdf_result_get_start_time(const struct xccdf_result *item);
2606 OSCAP_API const char * xccdf_result_get_end_time(const struct xccdf_result *item);
2608 OSCAP_API struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result);
2609 
2620 OSCAP_API 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);
2621 
2623 OSCAP_API const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item);
2625 OSCAP_API xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item);
2627 OSCAP_API float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item);
2629 OSCAP_API xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item);
2633 OSCAP_API const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item);
2635 OSCAP_API const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item);
2637 OSCAP_API struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item);
2639 OSCAP_API struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item);
2641 OSCAP_API struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item);
2643 OSCAP_API struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item);
2645 OSCAP_API struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item);
2647 OSCAP_API struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item);
2649 OSCAP_API bool xccdf_identity_get_authenticated(const struct xccdf_identity *item);
2651 OSCAP_API bool xccdf_identity_get_privileged(const struct xccdf_identity *item);
2653 OSCAP_API const char *xccdf_identity_get_name(const struct xccdf_identity *item);
2655 OSCAP_API xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item);
2657 OSCAP_API xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item);
2659 OSCAP_API const char *xccdf_score_get_system(const struct xccdf_score *item);
2661 OSCAP_API const char *xccdf_override_get_time(const struct xccdf_override *item);
2667 OSCAP_API const char *xccdf_override_get_authority(const struct xccdf_override *item);
2669 OSCAP_API struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item);
2673 OSCAP_API const char *xccdf_message_get_content(const struct xccdf_message *item);
2677 OSCAP_API const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item);
2679 OSCAP_API const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item);
2681 OSCAP_API void* xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item);
2683 OSCAP_API const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item);
2685 OSCAP_API const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item);
2687 OSCAP_API const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item);
2689 OSCAP_API const char *xccdf_instance_get_context(const struct xccdf_instance *item);
2691 OSCAP_API const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item);
2693 OSCAP_API const char *xccdf_instance_get_content(const struct xccdf_instance *item);
2695 OSCAP_API struct xccdf_tailoring *xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark);
2697 OSCAP_API const char *xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring);
2699 OSCAP_API const char *xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring);
2701 OSCAP_API const char *xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring);
2703 OSCAP_API const char *xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring);
2705 OSCAP_API const char *xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring);
2707 OSCAP_API const char *xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring);
2709 OSCAP_API struct oscap_string_iterator *xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring);
2711 OSCAP_API struct xccdf_profile_iterator *xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring);
2713 OSCAP_API struct xccdf_status_iterator *xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring);
2715 OSCAP_API struct oscap_reference_iterator *xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring);
2723 OSCAP_API struct xccdf_profile *xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id);
2724 
2725 /************************************************************
2726  ** @} End of Getters group */
2727 
2728 /************************************************************/
2736 OSCAP_API bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval);
2739 OSCAP_API bool xccdf_item_set_id(struct xccdf_item *item, const char *newval);
2741 OSCAP_API bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval);
2743 OSCAP_API bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval);
2745 OSCAP_API bool xccdf_item_set_version(struct xccdf_item *item, const char *newval);
2747 OSCAP_API bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval);
2749 OSCAP_API bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval);
2751 OSCAP_API bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval);
2753 OSCAP_API bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval);
2755 OSCAP_API bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval);
2757 OSCAP_API bool xccdf_item_set_selected(struct xccdf_item *item, bool newval);
2758 
2760 OSCAP_API bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata);
2761 
2763 OSCAP_API bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval);
2764 
2766 OSCAP_API bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval);
2768 OSCAP_API bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval);
2770 OSCAP_API bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval);
2772 OSCAP_API bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval);
2774 OSCAP_API bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval);
2776 OSCAP_API bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval);
2778 OSCAP_API bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval);
2780 OSCAP_API bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata);
2782 OSCAP_API bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list);
2786 OSCAP_API bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval);
2788 OSCAP_API bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval);
2790 OSCAP_API bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval);
2792 OSCAP_API bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval);
2794 OSCAP_API bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval);
2796 OSCAP_API bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval);
2798 OSCAP_API bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval);
2800 OSCAP_API bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval);
2802 OSCAP_API bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring);
2804 OSCAP_API bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata);
2805 
2807 OSCAP_API bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval);
2809 OSCAP_API bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval);
2811 OSCAP_API bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval);
2813 OSCAP_API bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval);
2815 OSCAP_API bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval);
2817 OSCAP_API bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval);
2819 OSCAP_API bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval);
2821 OSCAP_API bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval);
2823 OSCAP_API bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval);
2825 OSCAP_API bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval);
2827 OSCAP_API bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval);
2829 //bool xccdf_rule_set_selector(struct xccdf_rule *item, const char * selector);
2831 OSCAP_API bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval);
2833 OSCAP_API bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval);
2835 OSCAP_API bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval);
2837 OSCAP_API bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata);
2838 
2840 OSCAP_API bool xccdf_group_set_id(struct xccdf_group *item, const char *newval);
2842 OSCAP_API bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval);
2844 OSCAP_API bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval);
2846 OSCAP_API bool xccdf_group_set_version(struct xccdf_group *item, const char *newval);
2848 OSCAP_API bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval);
2850 OSCAP_API bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval);
2852 OSCAP_API bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval);
2854 OSCAP_API bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval);
2856 OSCAP_API bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval);
2858 OSCAP_API bool xccdf_group_set_selected(struct xccdf_group *item, bool newval);
2860 OSCAP_API bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata);
2861 
2863 OSCAP_API bool xccdf_value_set_id(struct xccdf_value *item, const char *newval);
2865 OSCAP_API bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval);
2867 OSCAP_API bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval);
2869 OSCAP_API bool xccdf_value_set_version(struct xccdf_value *item, const char *newval);
2871 OSCAP_API bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval);
2873 OSCAP_API bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval);
2875 OSCAP_API bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval);
2877 OSCAP_API bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval);
2879 OSCAP_API bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval);
2881 OSCAP_API bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval);
2883 OSCAP_API bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper);
2885 OSCAP_API bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval);
2887 OSCAP_API bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata);
2888 
2890 OSCAP_API bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval);
2892 OSCAP_API bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval);
2893 
2895 OSCAP_API bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval);
2897 OSCAP_API bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval);
2898 
2900 OSCAP_API bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval);
2901 
2903 OSCAP_API bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval);
2905 OSCAP_API bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval);
2907 OSCAP_API bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval);
2909 OSCAP_API bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval);
2911 OSCAP_API bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval);
2913 OSCAP_API bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval);
2915 OSCAP_API bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval);
2916 
2918 OSCAP_API bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval);
2920 OSCAP_API bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval);
2921 
2923 OSCAP_API bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval);
2925 OSCAP_API bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval);
2926 
2928 OSCAP_API bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval);
2930 OSCAP_API bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval);
2932 OSCAP_API bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval);
2933 
2935 OSCAP_API bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval);
2937 OSCAP_API bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval);
2938 
2940 OSCAP_API bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval);
2942 OSCAP_API bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval);
2944 OSCAP_API bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval);
2946 OSCAP_API bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval);
2948 OSCAP_API bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval);
2950 OSCAP_API bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval);
2952 OSCAP_API bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval);
2954 OSCAP_API bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval);
2955 
2957 OSCAP_API bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval);
2959 OSCAP_API bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval);
2961 OSCAP_API bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval);
2963 OSCAP_API bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval);
2965 OSCAP_API bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval);
2967 OSCAP_API bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval);
2968 
2970 OSCAP_API bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval);
2972 OSCAP_API bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval);
2973 
2975 OSCAP_API bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval);
2977 OSCAP_API bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval);
2979 OSCAP_API struct xccdf_refine_rule *xccdf_refine_rule_new(void);
2980 
2982 OSCAP_API struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule);
2984 OSCAP_API bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval);
2986 OSCAP_API bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval);
2988 OSCAP_API bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval);
2990 OSCAP_API bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval);
2992 OSCAP_API bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval);
2993 
2995 OSCAP_API struct xccdf_refine_value *xccdf_refine_value_new(void);
2997 OSCAP_API struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value);
2999 OSCAP_API bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval);
3001 OSCAP_API bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval);
3003 OSCAP_API bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval);
3004 
3006 OSCAP_API struct xccdf_setvalue *xccdf_setvalue_new(void);
3008 OSCAP_API struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value);
3010 OSCAP_API bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval);
3012 OSCAP_API bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval);
3014 OSCAP_API bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval);
3016 OSCAP_API bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval);
3017 
3019 OSCAP_API bool xccdf_result_set_id(struct xccdf_result *item, const char *newval);
3021 OSCAP_API bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval);
3023 OSCAP_API bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval);
3025 OSCAP_API bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval);
3027 OSCAP_API bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval);
3029 OSCAP_API bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval);
3031 OSCAP_API bool xccdf_result_set_version(struct xccdf_result *item, const char *newval);
3033 OSCAP_API bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata);
3034 
3036 OSCAP_API bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval);
3038 OSCAP_API bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval);
3040 OSCAP_API bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval);
3042 OSCAP_API bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval);
3044 OSCAP_API bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval);
3046 OSCAP_API bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval);
3048 OSCAP_API bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval);
3049 
3051 OSCAP_API bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval);
3053 OSCAP_API bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval);
3055 OSCAP_API bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval);
3056 
3058 OSCAP_API bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval);
3060 OSCAP_API bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval);
3062 OSCAP_API bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval);
3063 
3065 OSCAP_API bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval);
3067 OSCAP_API bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
3069 OSCAP_API bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval);
3071 OSCAP_API bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval);
3073 OSCAP_API bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval);
3074 
3076 OSCAP_API bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval);
3078 OSCAP_API bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval);
3079 
3081 OSCAP_API bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str);
3083 OSCAP_API bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val);
3085 OSCAP_API bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val);
3087 OSCAP_API bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval);
3088 
3090 OSCAP_API bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void* node);
3092 OSCAP_API bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval);
3094 OSCAP_API bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval);
3096 OSCAP_API bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval);
3097 
3099 OSCAP_API bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval);
3101 OSCAP_API bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval);
3103 OSCAP_API bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval);
3104 
3106 OSCAP_API bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char* newval);
3108 OSCAP_API bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char* newval);
3110 OSCAP_API bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval);
3112 OSCAP_API bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval);
3114 OSCAP_API bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval);
3116 OSCAP_API bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval);
3117 
3119 OSCAP_API bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile);
3132 OSCAP_API bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile);
3134 OSCAP_API bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark);
3135 
3136 // @memberof xccdf_ident
3137 OSCAP_API void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id);
3138 // @memberof xccdf_ident
3139 OSCAP_API void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys);
3140 
3142 OSCAP_API bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result);
3143 
3145 OSCAP_API bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval);
3147 OSCAP_API bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval);
3149 OSCAP_API bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval);
3151 OSCAP_API bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval);
3153 OSCAP_API bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval);
3155 OSCAP_API bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval);
3157 OSCAP_API bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
3159 //bool xccdf_benchmark_add_item(struct xccdf_benchmark *item, struct xccdf_item *newval);
3161 OSCAP_API bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval);
3163 OSCAP_API bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval);
3165 OSCAP_API bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval);
3167 OSCAP_API bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval);
3169 OSCAP_API bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval);
3171 OSCAP_API bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule);
3173 OSCAP_API bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group);
3175 OSCAP_API bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value);
3177 OSCAP_API bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item);
3178 
3180 OSCAP_API bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval);
3182 OSCAP_API bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval);
3184 OSCAP_API bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval);
3186 OSCAP_API bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval);
3187 
3189 OSCAP_API bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval);
3191 OSCAP_API bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval);
3193 OSCAP_API bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval);
3195 OSCAP_API bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval);
3197 OSCAP_API bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval);
3199 OSCAP_API bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval);
3200 
3202 OSCAP_API bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval);
3204 OSCAP_API bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval);
3206 OSCAP_API bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval);
3208 OSCAP_API bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval);
3210 OSCAP_API bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval);
3212 OSCAP_API bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval);
3214 OSCAP_API bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval);
3216 OSCAP_API bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval);
3218 OSCAP_API bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval);
3220 OSCAP_API bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval);
3222 OSCAP_API bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval);
3224 OSCAP_API bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval);
3226 OSCAP_API bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval);
3228 OSCAP_API bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval);
3229 
3231 OSCAP_API bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval);
3233 OSCAP_API bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval);
3235 OSCAP_API bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval);
3237 OSCAP_API bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval);
3239 OSCAP_API bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval);
3241 OSCAP_API bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval);
3243 OSCAP_API bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval);
3245 OSCAP_API bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval);
3247 OSCAP_API bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval);
3249 OSCAP_API bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item);
3251 OSCAP_API bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item);
3253 OSCAP_API bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item);
3255 OSCAP_API bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item);
3256 
3258 OSCAP_API bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval);
3260 OSCAP_API bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval);
3262 OSCAP_API bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval);
3264 OSCAP_API bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval);
3266 OSCAP_API bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval);
3268 OSCAP_API bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval);
3270 OSCAP_API bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval);
3271 
3273 OSCAP_API bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item);
3275 OSCAP_API bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item);
3277 OSCAP_API bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item);
3279 OSCAP_API bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item);
3281 OSCAP_API bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item);
3283 OSCAP_API bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item);
3285 OSCAP_API bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval);
3287 OSCAP_API bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval);
3289 OSCAP_API bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval);
3291 OSCAP_API bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval);
3293 OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval);
3295 OSCAP_API bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval);
3297 OSCAP_API bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval);
3299 OSCAP_API bool xccdf_result_add_target(struct xccdf_result *item, const char *newval);
3301 OSCAP_API bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval);
3303 OSCAP_API bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval);
3305 OSCAP_API bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval);
3307 OSCAP_API bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval);
3309 OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval);
3311 OSCAP_API int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark);
3313 OSCAP_API bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item);
3315 OSCAP_API bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item);
3317 OSCAP_API bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item);
3319 OSCAP_API bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item);
3321 OSCAP_API bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item);
3323 OSCAP_API bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item);
3325 OSCAP_API bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval);
3327 OSCAP_API bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval);
3329 OSCAP_API bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval);
3331 OSCAP_API bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval);
3333 OSCAP_API bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval);
3335 OSCAP_API bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval);
3337 OSCAP_API bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval);
3339 OSCAP_API bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval);
3341 OSCAP_API bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval);
3343 OSCAP_API bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item);
3344 
3346 OSCAP_API bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires);
3348 OSCAP_API bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires);
3350 OSCAP_API bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires);
3352 OSCAP_API bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts);
3354 OSCAP_API bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts);
3356 OSCAP_API bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts);
3357 
3358 /************************************************************
3359  ** @} End of Setters group */
3360 
3361 // remove operations
3362 
3364 OSCAP_API void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it);
3366 OSCAP_API void xccdf_model_iterator_remove(struct xccdf_model_iterator *it);
3368 OSCAP_API void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it);
3370 OSCAP_API void xccdf_item_iterator_remove(struct xccdf_item_iterator *it);
3372 OSCAP_API void xccdf_status_iterator_remove(struct xccdf_status_iterator *it);
3380 OSCAP_API void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it);
3382 OSCAP_API void xccdf_select_iterator_remove(struct xccdf_select_iterator *it);
3384 OSCAP_API void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it);
3392 OSCAP_API void xccdf_check_iterator_remove(struct xccdf_check_iterator *it);
3394 OSCAP_API void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it);
3396 OSCAP_API void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it);
3398 OSCAP_API void xccdf_value_iterator_remove(struct xccdf_value_iterator *it);
3402 OSCAP_API void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it);
3404 OSCAP_API void xccdf_result_iterator_remove(struct xccdf_result_iterator *it);
3406 OSCAP_API void xccdf_override_iterator_remove(struct xccdf_override_iterator *it);
3408 OSCAP_API void xccdf_message_iterator_remove(struct xccdf_message_iterator *it);
3410 OSCAP_API void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it);
3414 OSCAP_API void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it);
3416 OSCAP_API void xccdf_score_iterator_remove(struct xccdf_score_iterator *it);
3423 
3424 
3425 // textual substitution interface
3426 
3432 typedef enum xccdf_subst_type {
3433  XCCDF_SUBST_NONE,
3438 
3439 /************************************************************/
3441 
3443 #endif
OSCAP_API struct xccdf_value_instance_iterator * xccdf_value_get_instances(const struct xccdf_value *item)
OSCAP_API struct xccdf_item * xccdf_item_iterator_next(struct xccdf_item_iterator *it)
Return the next xccdf_item structure from the list and increment the iterator.
OSCAP_API void xccdf_message_iterator_free(struct xccdf_message_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
XCCDF target fact.
Definition: item.h:410
OSCAP_API struct oscap_string_iterator * xccdf_value_instance_get_choices(const struct xccdf_value_instance *item)
OSCAP_API bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval)
OSCAP_API bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval)
OSCAP_API const char * xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item)
Definition: result.c:850
OSCAP_API struct xccdf_value * xccdf_value_new(xccdf_value_type_t type)
Definition: value.c:54
OSCAP_API bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval)
OSCAP_API struct xccdf_benchmark * xccdf_benchmark_import_source(struct oscap_source *source)
Import the content from oscap_source into a benchmark.
Definition: benchmark.c:54
OSCAP_API void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_select_iterator_remove(struct xccdf_select_iterator *it)
OSCAP_API bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval)
OSCAP_API void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_override_iterator_free(struct xccdf_override_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API const char * xccdf_status_type_to_text(xccdf_status_type_t id)
Definition: item.c:1014
Iterator over collections of strings.
OSCAP_API void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it)
Warning about regulatory obligations.
Definition: xccdf_benchmark.h:150
OSCAP_API xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value)
Stores content from xccdf:Tailoring element which can be loaded from a separate file.
Definition: item.h:171
Type constant for xccdf_group.
Definition: xccdf_benchmark.h:62
OSCAP_API void xccdf_rule_free(struct xccdf_item *rule)
Definition: rule.c:388
OSCAP_API const char * xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref)
OSCAP_API bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires)
Definition: rule.c:893
OSCAP_API const char * xccdf_value_instance_get_selector(const struct xccdf_value_instance *item)
OSCAP_API bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item)
OSCAP_API struct xccdf_notice_iterator * xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark legal notices.
Reference iterator.
Definition: xccdf_benchmark.h:444
OSCAP_API struct xccdf_score * xccdf_score_new(void)
Definition: result.c:663
OSCAP_API void xccdf_value_iterator_reset(struct xccdf_value_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_check_iterator_remove(struct xccdf_check_iterator *it)
OSCAP_API struct xccdf_target_identifier * xccdf_target_identifier_new(void)
Definition: result.c:775
OSCAP_API void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it)
OSCAP_API struct xccdf_status * xccdf_status_new(void)
Definition: item.c:1009
OSCAP_API struct xccdf_rule_result * xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it)
Return the next xccdf_rule_result structure from the list and increment the iterator.
OSCAP_API const char * xccdf_result_get_start_time(const struct xccdf_result *item)
OSCAP_API bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval)
CPE platform specification.
Definition: cpelang_priv.c:63
OSCAP_API struct xccdf_status * xccdf_status_clone(const struct xccdf_status *old_status)
Definition: item.c:214
OSCAP_API struct xccdf_plain_text * xccdf_plain_text_new_fill(const char *id, const char *text)
Definition: benchmark.c:888
OSCAP_API struct xccdf_profile_iterator * xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark XCCDF profiles.
OSCAP_API bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval)
OSCAP_API void xccdf_override_free(struct xccdf_override *oride)
Definition: result.c:690
OSCAP_API bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval)
OSCAP_API const char * xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note)
OSCAP_API void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval)
OSCAP_API struct xccdf_status * xccdf_status_new_fill(const char *status, const char *date)
Definition: item.c:995
XCCDF refine rule option used in the profile.
Definition: item.h:259
OSCAP_API struct xccdf_model * xccdf_model_new(void)
Definition: item.c:1063
OSCAP_API xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule *rr)
OSCAP_API struct xccdf_benchmark * xccdf_benchmark_new(void)
Definition: benchmark.c:88
OSCAP_API const char * xccdf_check_get_selector(const struct xccdf_check *check)
OSCAP_API void xccdf_value_free(struct xccdf_item *val)
Definition: value.c:264
OSCAP_API struct oscap_text_iterator * xccdf_group_get_rationale(const struct xccdf_group *group)
OSCAP_API struct xccdf_refine_rule * xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it)
Return the next xccdf_refine_rule structure from the list and increment the iterator.
OSCAP_API void xccdf_select_iterator_reset(struct xccdf_select_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API const char * xccdf_group_get_extends(const struct xccdf_group *group)
xccdf_level_t
XCCDF error, complexity, disruption, or severity level.
Definition: xccdf_benchmark.h:118
XCCDF note for given rule in context of given profile.
Definition: item.h:319
OSCAP_API const char * xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext)
OSCAP_API struct oscap_source * xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename)
Export a benchmark to a source object.
Definition: benchmark.c:218
OSCAP_API bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval)
Less than or equal.
Definition: xccdf_benchmark.h:107
OSCAP_API bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval)
Definition: result.c:836
Less than.
Definition: xccdf_benchmark.h:106
OSCAP_API const char * xccdf_rule_get_version_time(const struct xccdf_rule *rule)
OSCAP_API bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval)
OSCAP_API bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval)
OSCAP_API bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item)
OSCAP_API struct xccdf_profile * xccdf_profile_clone(const struct xccdf_profile *profile)
Definition: profile.c:206
OSCAP_API bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval)
OSCAP_API bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval)
Instance iterator.
Definition: xccdf_benchmark.h:569
OSCAP_API struct xccdf_item * xccdf_result_to_item(struct xccdf_result *item)
OSCAP_API bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval)
OSCAP_API bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item)
OSCAP_API bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval)
OSCAP_API const char * xccdf_fix_get_system(const struct xccdf_fix *fix)
Turn off or deinstall something.
Definition: xccdf_benchmark.h:160
OSCAP_API struct xccdf_group * xccdf_item_to_group(struct xccdf_item *item)
Convert the item to a group.
Interface to Common Platform Enumeration (CPE) Dictionary.
OSCAP_API bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata)
substitute a hyperlink
Definition: xccdf_benchmark.h:3435
OSCAP_API bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval)
OSCAP_API struct xccdf_rule * xccdf_item_to_rule(struct xccdf_item *item)
Convert the item to a rule.
Install upgrade or update the system.
Definition: xccdf_benchmark.h:165
A collection of strings.
Definition: oscap_text.h:60
OSCAP_API struct xccdf_value * xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type)
Create a value and append it to the benchmark.
Definition: benchmark.c:668
OSCAP_API const char * xccdf_check_get_system(const struct xccdf_check *check)
OSCAP_API const char * xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id)
Get a plain text by ID.
Definition: benchmark.c:548
XCCDF instance.
Definition: item.h:404
Adjust target config or settings.
Definition: xccdf_benchmark.h:159
OSCAP_API struct xccdf_setvalue * xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it)
Return the next xccdf_setvalue structure from the list and increment the iterator.
OSCAP_API bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it)
Return true if the list is not empty, false otherwise.
General OpenScap functions and types.
OSCAP_API bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts)
Definition: rule.c:916
OSCAP_API bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval)
OSCAP_API struct xccdf_check_export * xccdf_check_export_clone(const struct xccdf_check_export *old_export)
Definition: rule.c:562
OSCAP_API struct xccdf_override * xccdf_override_new(void)
Definition: result.c:685
OSCAP_API struct xccdf_status * xccdf_status_iterator_next(struct xccdf_status_iterator *it)
Return the next xccdf_status structure from the list and increment the iterator.
OSCAP_API bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval)
OSCAP_API bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile)
Removes given profile from tailoring.
Definition: tailoring.c:93
OSCAP_API struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value)
OSCAP_API bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval)
OSCAP_API void xccdf_profile_free(struct xccdf_item *prof)
Definition: profile.c:475
OSCAP_API struct oscap_text * xccdf_override_get_remark(const struct xccdf_override *item)
OSCAP_API xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext)
OSCAP_API void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it)
Reset the iterator structure (it will point to the first item in the list)
OSCAP_API const char * xccdf_group_get_version_time(const struct xccdf_group *group)
OSCAP_API void xccdf_target_identifier_free(struct xccdf_target_identifier *ti)
Definition: result.c:796
XCCDF scoring model.
Definition: item.h:248
OSCAP_API xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item)
OSCAP_API bool xccdf_group_set_selected(struct xccdf_group *item, bool newval)
OSCAP_API bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval)
OSCAP_API bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance)
Definition: value.c:368
OSCAP_API void xccdf_message_free(struct xccdf_message *msg)
Definition: result.c:710
xccdf_warning_category_t
Category of xccdf_warning.
Definition: xccdf_benchmark.h:143
XCCDF score.
Definition: item.h:369
OSCAP_API struct oscap_text_iterator * xccdf_value_get_question(const struct xccdf_value *value)
OSCAP_API bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item)
OSCAP_API void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_notice * xccdf_notice_iterator_next(struct xccdf_notice_iterator *it)
Return the next xccdf_notice structure from the list and increment the iterator.
OSCAP_API struct xccdf_item * xccdf_rule_get_parent(const struct xccdf_rule *rule)
Return rule&#39;s parent in the grouping hierarchy.
OSCAP_API bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval)
OSCAP_API const char * xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:377
OSCAP_API bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval)
OSCAP_API bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval)
OSCAP_API bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval)
Inequality.
Definition: xccdf_benchmark.h:103
OSCAP_API bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval)
OSCAP_API bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it)
OSCAP_API void xccdf_rule_result_free(struct xccdf_rule_result *rr)
Definition: result.c:606
OSCAP_API bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval)
OSCAP_API bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value)
OSCAP_API xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item)
OSCAP_API struct xccdf_target_identifier * xccdf_target_identifier_iterator_next(struct xccdf_target_identifier_iterator *it)
Return the next xccdf_target_identifier structure from the list and increment the iterator...
OSCAP_API struct xccdf_score_iterator * xccdf_result_get_scores(const struct xccdf_result *item)
OSCAP_API bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval)
OSCAP_API bool xccdf_group_get_hidden(const struct xccdf_group *group)
OSCAP_API xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix)
OSCAP_API struct xccdf_profile * xccdf_profile_new(void)
Definition: profile.c:201
OSCAP_API bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval)
OSCAP_API bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval)
OSCAP_API struct xccdf_status_iterator * xccdf_value_get_statuses(const struct xccdf_value *value)
OSCAP_API struct xccdf_check_export_iterator * xccdf_check_get_exports(const struct xccdf_check *check)
OSCAP_API const char * xccdf_value_get_extends(const struct xccdf_value *value)
xccdf_operator_t
Operator to be applied on an xccdf_value.
Definition: xccdf_benchmark.h:101
OSCAP_API bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item)
OSCAP_API const char * xccdf_version_info_get_cpe_version(const struct xccdf_version_info *v)
Definition: XCCDF/elements.c:64
OSCAP_API const char * xccdf_version_info_get_namespace_uri(const struct xccdf_version_info *v)
Definition: XCCDF/elements.c:56
OSCAP_API bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval)
Override iterator.
Definition: xccdf_benchmark.h:590
OSCAP_API const char * xccdf_group_get_cluster_id(const struct xccdf_group *group)
OSCAP_API bool xccdf_item_set_id(struct xccdf_item *item, const char *newval)
OSCAP_API struct xccdf_target_identifier_iterator * xccdf_result_get_target_id_refs(const struct xccdf_result *item)
Plain text iterator.
Definition: xccdf_benchmark.h:625
OSCAP_API struct xccdf_check_content_ref * xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref)
Definition: rule.c:571
Low.
Definition: xccdf_benchmark.h:122
Definition: XCCDF/elements.c:42
OSCAP_API const char * xccdf_benchmark_get_lang(const struct xccdf_benchmark *item)
OSCAP_API bool xccdf_result_set_version(struct xccdf_result *item, const char *newval)
OSCAP_API xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item)
OSCAP_API bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API struct xccdf_status_iterator * xccdf_result_get_statuses(const struct xccdf_result *item)
OSCAP_API bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item)
OSCAP_API struct xccdf_warning_iterator * xccdf_value_get_warnings(const struct xccdf_value *value)
OSCAP_API struct oscap_text_iterator * xccdf_group_get_question(const struct xccdf_group *group)
OSCAP_API bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval)
OSCAP_API struct xccdf_message * xccdf_message_new(void)
Definition: result.c:705
OSCAP_API void xccdf_plain_text_free(struct xccdf_plain_text *plain)
Definition: benchmark.c:914
xccdf_subst_type
Type of textual substitution.
Definition: xccdf_benchmark.h:3432
OSCAP_API bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval)
OSCAP_API bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval)
OSCAP_API struct xccdf_warning_iterator * xccdf_item_get_warnings(const struct xccdf_item *item)
OSCAP_API bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval)
OSCAP_API bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval)
OSCAP_API void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval)
OSCAP_API bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval)
OSCAP_API void xccdf_fix_free(struct xccdf_fix *item)
Definition: rule.c:850
OSCAP_API bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval)
OSCAP_API bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item)
Definition: benchmark.c:536
OSCAP_API bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval)
OSCAP_API bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval)
OSCAP_API const char * xccdf_check_export_get_value(const struct xccdf_check_export *item)
OSCAP_API void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it)
OSCAP_API bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval)
OSCAP_API bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void *node)
Definition: result.c:812
OSCAP_API struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier *ti)
Definition: result.c:780
OSCAP_API bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval)
Choice from multiple values.
Definition: xccdf_benchmark.h:76
OSCAP_API bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:433
OSCAP_API void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value)
OSCAP_API struct xccdf_override * xccdf_override_clone(const struct xccdf_override *override)
Definition: item.c:1256
OSCAP_API bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval)
OSCAP_API struct xccdf_item * xccdf_rule_to_item(struct xccdf_rule *item)
OSCAP_API struct oscap_text * xccdf_notice_get_text(const struct xccdf_notice *notice)
OSCAP_API const char * xccdf_check_import_get_name(const struct xccdf_check_import *item)
Top level XCCDF structure containing profiles, rules, values and results.
OSCAP_API bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval)
OSCAP_API void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Error.
Definition: xccdf_benchmark.h:132
OSCAP_API const char * xccdf_tailoring_match_profile_id(struct xccdf_tailoring *tailoring, const char *profile_suffix, int *match_status)
Match a profile suffix agains profiles present in the given benchmark.
Definition: xccdf_session.c:577
OSCAP_API void xccdf_model_free(struct xccdf_model *model)
Definition: item.c:1096
OSCAP_API void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval)
OSCAP_API bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it)
Return true if the list is not empty, false otherwise.
Date selection widget.
Definition: xccdf_benchmark.h:79
OSCAP_API bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval)
OSCAP_API struct xccdf_warning * xccdf_warning_clone(const struct xccdf_warning *old_warning)
Definition: item.c:223
OSCAP_API const char * xccdf_item_get_cluster_id(const struct xccdf_item *item)
OSCAP_API const char * xccdf_profile_get_version_update(const struct xccdf_profile *profile)
OSCAP_API bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval)
Override iterator.
Definition: xccdf_benchmark.h:604
Check the rule and include the result in reports, but do not include it into score computations...
Definition: xccdf_benchmark.h:138
XCCDF select option usen in the profile.
Definition: item.h:253
OSCAP_API void xccdf_refine_value_free(struct xccdf_refine_value *rv)
Definition: profile.c:138
OSCAP_API bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val)
Definition: result.c:764
OSCAP_API bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval)
Definition: result.c:880
OSCAP_API struct xccdf_item_iterator * xccdf_group_get_content(const struct xccdf_group *group)
Get an iterator to the group content.
OSCAP_API float xccdf_group_get_weight(const struct xccdf_group *group)
OSCAP_API bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval)
OSCAP_API const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value *rv)
OSCAP_API bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval)
OSCAP_API bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval)
OSCAP_API 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)
Override the result of rule-result.
Definition: result.c:1602
OSCAP_API bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval)
OSCAP_API const char * xccdf_profile_get_version_time(const struct xccdf_profile *profile)
Warning about hardware restrictions or possible impacts to hardware.
Definition: xccdf_benchmark.h:148
OSCAP_API void xccdf_override_iterator_reset(struct xccdf_override_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API const char * xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:372
OSCAP_API void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API const char * xccdf_group_get_id(const struct xccdf_group *group)
OSCAP_API void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it)
Reset the iterator structure (it makes no changes to the underlying list)
OSCAP_API const char * xccdf_check_export_get_name(const struct xccdf_check_export *item)
OSCAP_API struct xccdf_instance * xccdf_instance_new(void)
Definition: result.c:905
OSCAP_API bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API void xccdf_target_fact_free(struct xccdf_target_fact *fact)
Definition: result.c:734
OSCAP_API struct oscap_text_iterator * xccdf_result_get_remarks(const struct xccdf_result *item)
OSCAP_API struct oscap_text_iterator * xccdf_group_get_title(const struct xccdf_group *group)
OSCAP_API struct oscap_string_iterator * xccdf_group_get_platforms(const struct xccdf_group *group)
OSCAP_API bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval)
OSCAP_API bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item)
OSCAP_API const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule *rr)
substitute cdf:instance element
Definition: xccdf_benchmark.h:3436
OSCAP_API bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval)
Definition: result.c:858
OSCAP_API bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval)
OSCAP_API const char * xccdf_check_import_get_content(const struct xccdf_check_import *item)
OSCAP_API bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval)
OSCAP_API struct xccdf_identity_iterator * xccdf_result_get_identities(const struct xccdf_result *item)
Warning about dependencies between this Rule and other parts of the target system.
Definition: xccdf_benchmark.h:153
OSCAP_API int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file)
Export a benchmark to an XML stream.
Definition: benchmark.c:230
OSCAP_API struct oscap_text_iterator * xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr)
OSCAP_API time_t xccdf_status_get_date(const struct xccdf_status *status)
OSCAP_API struct xccdf_item * xccdf_group_to_item(struct xccdf_group *item)
OSCAP_API void xccdf_value_iterator_free(struct xccdf_value_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_instance_iterator * xccdf_rule_result_get_instances(const struct xccdf_rule_result *item)
OSCAP_API void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_message_iterator * xccdf_rule_result_get_messages(const struct xccdf_rule_result *item)
XCCDF message.
Definition: item.h:383
OSCAP_API const char * xccdf_rule_result_get_idref(const struct xccdf_rule_result *item)
OSCAP_API const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item)
OSCAP_API struct xccdf_benchmark * xccdf_value_get_benchmark(const struct xccdf_value *value)
OSCAP_API struct xccdf_model_iterator * xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark)
Get an iterator to the benchmark scoring models.
OSCAP_API bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark *item, const struct xccdf_version_info *newval)
Check import iterator.
Definition: xccdf_benchmark.h:541
OSCAP_API struct xccdf_rule_result_iterator * xccdf_result_get_rule_results(const struct xccdf_result *item)
char * filepath
Filepath (if originated from file)
Definition: oscap_source.c:71
OSCAP_API const char * xccdf_value_instance_get_value(const struct xccdf_value_instance *val)
XCCDF set value option used in the profile.
Definition: item.h:275
OSCAP_API bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval)
Override iterator.
Definition: xccdf_benchmark.h:611
OSCAP_API struct xccdf_warning_iterator * xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark)
OSCAP_API bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval)
OSCAP_API const char * xccdf_instance_get_context(const struct xccdf_instance *item)
OSCAP_API bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval)
OSCAP_API bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval)
OSCAP_API bool xccdf_fix_get_reboot(const struct xccdf_fix *fix)
OSCAP_API const char * xccdf_value_get_version_update(const struct xccdf_value *value)
OSCAP_API bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval)
Check export iterator.
Definition: xccdf_benchmark.h:555
OSCAP_API struct xccdf_check_import_iterator * xccdf_check_get_imports(const struct xccdf_check *check)
OSCAP_API bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group)
OSCAP_API struct xccdf_warning_iterator * xccdf_group_get_warnings(const struct xccdf_group *group)
OSCAP_API void xccdf_group_free(struct xccdf_item *group)
Definition: rule.c:263
Equality.
Definition: xccdf_benchmark.h:102
OSCAP_API bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval)
OSCAP_API bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval)
OSCAP_API const char * xccdf_group_get_version(const struct xccdf_group *group)
OSCAP_API bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval)
OSCAP_API bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval)
OSCAP_API const char * xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref)
OSCAP_API bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval)
Boolean.
Definition: xccdf_benchmark.h:97
OSCAP_API bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item)
OSCAP_API bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval)
OSCAP_API void xccdf_message_iterator_reset(struct xccdf_message_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Select iterator.
Definition: xccdf_benchmark.h:472
OSCAP_API bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval)
OSCAP_API void xccdf_refine_rule_free(struct xccdf_refine_rule *obj)
Definition: profile.c:148
OSCAP_API struct xccdf_check_content_ref * xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it)
Return the next xccdf_check_content_ref structure from the list and increment the iterator...
OSCAP_API bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval)
OSCAP_API bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval)
OSCAP_API const char * xccdf_plain_text_get_text(const struct xccdf_plain_text *item)
Type constant for xccdf_benchmark.
Definition: xccdf_benchmark.h:58
Warning about changes to target system performance.
Definition: xccdf_benchmark.h:147
OSCAP_API bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval)
OSCAP_API bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item)
OSCAP_API const char * xccdf_result_get_version(const struct xccdf_result *item)
OSCAP_API bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval)
OSCAP_API bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark)
Resolve an benchmark.
Definition: resolve.c:70
OSCAP_API bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval)
OSCAP_API bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval)
OSCAP_API struct xccdf_value * xccdf_item_to_value(struct xccdf_item *item)
Convert the item to a value.
OSCAP_API void xccdf_profile_note_free(struct xccdf_profile_note *note)
Definition: rule.c:509
OSCAP_API struct xccdf_benchmark * xccdf_group_get_benchmark(const struct xccdf_group *group)
OSCAP_API void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item)
OSCAP_API bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval)
OSCAP_API bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval)
OSCAP_API bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval)
OSCAP_API struct xccdf_ident * xccdf_ident_iterator_next(struct xccdf_ident_iterator *it)
Return the next xccdf_ident structure from the list and increment the iterator.
Ident iterator.
Definition: xccdf_benchmark.h:506
OSCAP_API const char * xccdf_fix_get_platform(const struct xccdf_fix *fix)
String iterator.
Definition: xccdf_benchmark.h:423
OSCAP_API struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity *identity)
Definition: item.c:1238
OSCAP_API struct xccdf_rule * xccdf_rule_new(void)
Definition: rule.c:291
OSCAP_API const char * xccdf_result_get_id(const struct xccdf_result *item)
OSCAP_API void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_profile * xccdf_profile_iterator_next(struct xccdf_profile_iterator *it)
Return the next xccdf_profile structure from the list and increment the iterator. ...
Greater than.
Definition: xccdf_benchmark.h:104
OSCAP_API bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires)
Definition: rule.c:903
OSCAP_API bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval)
OSCAP_API int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark)
Definition: result_scoring.c:284
OSCAP_API bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval)
OSCAP_API bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it)
Return true if the list is not empty, false otherwise.
Rule was not selected in the Benchmark.
Definition: xccdf_benchmark.h:177
OSCAP_API struct oscap_string_iterator * xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:451
Type constant for xccdf_value.
Definition: xccdf_benchmark.h:63
OSCAP_API xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule *rr)
Adjust permissions or ACLs.
Definition: xccdf_benchmark.h:164
Internationalized string iterator.
OSCAP_API struct xccdf_score * xccdf_score_iterator_next(struct xccdf_score_iterator *it)
Return the next xccdf_score structure from the list and increment the iterator.
OSCAP_API bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval)
OSCAP_API bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval)
OSCAP_API bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item)
OSCAP_API const char * xccdf_result_get_end_time(const struct xccdf_result *item)
Message iterator.
Definition: xccdf_benchmark.h:576
OSCAP_API bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval)
OSCAP_API bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval)
OSCAP_API struct xccdf_check_import * xccdf_check_import_new(void)
Definition: rule.c:732
OSCAP_API bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval)
OSCAP_API bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval)
OSCAP_API void xccdf_model_iterator_remove(struct xccdf_model_iterator *it)
OSCAP_API struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result *result)
Definition: item.c:1284
OSCAP_API bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires)
Definition: rule.c:898
OSCAP_API bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval)
OSCAP_API bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval)
OSCAP_API struct xccdf_rule * xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id)
Create a rule and append it to the benchmark.
Definition: benchmark.c:676
OSCAP_API bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring)
Integer.
Definition: xccdf_benchmark.h:95
OSCAP_API struct xccdf_value_instance * xccdf_value_new_instance(struct xccdf_value *val)
Definition: value.c:410
OSCAP_API struct xccdf_tailoring * xccdf_tailoring_new(void)
Definition: tailoring.c:38
Fix iterator.
Definition: xccdf_benchmark.h:548
XCCDF simple or complex check.
Definition: item.h:285
OSCAP_API bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval)
OSCAP_API void xccdf_check_iterator_reset(struct xccdf_check_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API struct oscap_string_iterator * xccdf_value_get_metadata(const struct xccdf_value *value)
OSCAP_API xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix)
OSCAP_API void xccdf_check_export_free(struct xccdf_check_export *item)
Definition: rule.c:752
OSCAP_API bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark)
Definition: resolve.c:421
OSCAP_API bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval)
XCCDF Value allows test parametrization or capturing output of tests.
Definition: xccdf_benchmark.h:228
XCCDF rule group.
Definition: xccdf_benchmark.h:222
OSCAP_API struct xccdf_fixtext * xccdf_fixtext_new(void)
Definition: rule.c:812
OSCAP_API struct xccdf_check_iterator * xccdf_rule_result_get_checks(const struct xccdf_rule_result *item)
OSCAP_API bool xccdf_rule_add_metadata(struct xccdf_rule *item, const char *metadata)
xccdf_type_t
Type of an XCCDF object.
Definition: xccdf_benchmark.h:57
XCCDF textual fix instructions.
Definition: item.h:335
OSCAP_API bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str)
Definition: result.c:752
OSCAP_API bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval)
OSCAP_API const char * xccdf_check_import_get_xpath(const struct xccdf_check_import *item)
OSCAP_API const char * xccdf_score_get_system(const struct xccdf_score *item)
Turn on or install something.
Definition: xccdf_benchmark.h:161
Medium.
Definition: xccdf_benchmark.h:123
OSCAP_API void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval)
OSCAP_API bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval)
OSCAP_API void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it)
OSCAP_API bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval)
OSCAP_API struct xccdf_profile * xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id)
Definition: tailoring.c:472
OSCAP_API bool xccdf_value_set_id(struct xccdf_value *item, const char *newval)
OSCAP_API bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval)
OSCAP_API struct oscap_text_iterator * xccdf_item_get_question(const struct xccdf_item *item)
Actual results of running a XCCDF test or profile.
Definition: xccdf_benchmark.h:234
OSCAP_API struct xccdf_refine_rule * xccdf_refine_rule_new(void)
Definition: profile.c:97
OSCAP_API bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval)
OSCAP_API struct xccdf_check_import * xccdf_check_import_clone(const struct xccdf_check_import *old_import)
Definition: rule.c:551
Refine value iterator.
Definition: xccdf_benchmark.h:493
OSCAP_API void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it)
OSCAP_API void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it)
Refine rule iterator.
Definition: xccdf_benchmark.h:499
OSCAP_API const char * xccdf_check_get_id(const struct xccdf_check *check)
OSCAP_API struct xccdf_profile_note * xccdf_profile_note_new(void)
Definition: rule.c:496
OSCAP_API float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item)
OSCAP_API struct oscap_text_iterator * xccdf_group_get_description(const struct xccdf_group *group)
OSCAP_API bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval)
OSCAP_API struct xccdf_tailoring * xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark)
Definition: tailoring.c:207
OSCAP_API bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval)
OSCAP_API bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val)
Definition: result.c:757
OSCAP_API struct xccdf_model * xccdf_model_iterator_next(struct xccdf_model_iterator *it)
Return the next xccdf_model structure from the list and increment the iterator.
xccdf_test_result_type_t
Test result.
Definition: xccdf_benchmark.h:170
Set value iterator.
Definition: xccdf_benchmark.h:486
OSCAP_API bool xccdf_check_get_negate(const struct xccdf_check *check)
OSCAP_API void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it)
Warning iterator.
Definition: xccdf_benchmark.h:562
xccdf_role_t
XCCDF role.
Definition: xccdf_benchmark.h:136
OSCAP_API struct oscap_string_iterator * xccdf_result_get_platforms(const struct xccdf_result *item)
OSCAP_API bool xccdf_check_get_multicheck(const struct xccdf_check *check)
OSCAP_API const char * xccdf_profile_get_note_tag(const struct xccdf_profile *profile)
OSCAP_API bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval)
OSCAP_API void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it)
OSCAP_API struct xccdf_result * xccdf_result_import_source(struct oscap_source *source)
Import the content of oscap_source into a xccdf_result.
Definition: result.c:959
Accepted.
Definition: xccdf_benchmark.h:86
OSCAP_API bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval)
OSCAP_API bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst)
OSCAP_API bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval)
OSCAP_API const char * xccdf_value_get_id(const struct xccdf_value *value)
OSCAP_API bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval)
OSCAP_API const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule *rr)
OSCAP_API bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval)
Interim.
Definition: xccdf_benchmark.h:90
OSCAP_API struct xccdf_ident * xccdf_ident_clone(const struct xccdf_ident *ident)
Definition: rule.c:442
OSCAP_API bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval)
OSCAP_API void xccdf_fixtext_free(struct xccdf_fixtext *item)
Definition: rule.c:841
OSCAP_API bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval)
OSCAP_API struct xccdf_ident_iterator * xccdf_rule_result_get_idents(const struct xccdf_rule_result *item)
Match a regular expression.
Definition: xccdf_benchmark.h:108
OSCAP_API const char * xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:382
Greater than or equal.
Definition: xccdf_benchmark.h:105
OSCAP_API const char * xccdf_group_get_version_update(const struct xccdf_group *group)
OSCAP_API const char * xccdf_version_info_get_version(const struct xccdf_version_info *v)
Definition: XCCDF/elements.c:48
OSCAP_API bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval)
OSCAP_API void xccdf_item_iterator_remove(struct xccdf_item_iterator *it)
OSCAP_API const char * xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark)
OSCAP_API bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile)
Definition: tailoring.c:82
Text line input widget.
Definition: xccdf_benchmark.h:77
Status was not specified by benchmark.
Definition: xccdf_benchmark.h:85
OSCAP_API void xccdf_status_iterator_reset(struct xccdf_status_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval)
Textarea.
Definition: xccdf_benchmark.h:78
OSCAP_API bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval)
OSCAP_API bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval)
OSCAP_API bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval)
OSCAP_API void * xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item)
Definition: result.c:828
OSCAP_API bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval)
OSCAP_API void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it)
Reset the iterator structure (it will point to the first item in the list)
OSCAP_API bool xccdf_group_set_id(struct xccdf_group *item, const char *newval)
OSCAP_API void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_group_add_metadata(struct xccdf_group *item, const char *metadata)
OSCAP_API bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval)
OSCAP_API bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval)
OSCAP_API bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval)
OSCAP_API struct xccdf_item * xccdf_benchmark_to_item(struct xccdf_benchmark *item)
OSCAP_API bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval)
OSCAP_API struct xccdf_fixtext * xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it)
Return the next xccdf_fixtext structure from the list and increment the iterator. ...
OSCAP_API bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval)
OSCAP_API struct xccdf_fix_iterator * xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item)
OSCAP_API const char * xccdf_instance_get_parent_context(const struct xccdf_instance *item)
OSCAP_API struct oscap_string_iterator * xccdf_result_get_targets(const struct xccdf_result *item)
OSCAP_API bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval)
OSCAP_API xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item)
OSCAP_API bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval)
OSCAP_API struct xccdf_check_content_ref * xccdf_check_content_ref_new(void)
Definition: rule.c:718
OSCAP_API bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval)
OSCAP_API bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval)
OSCAP_API bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval)
OSCAP_API bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval)
OSCAP_API bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval)
OSCAP_API struct xccdf_item * xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id)
Get benchmark xccdf:Item by ID.
XCCDF check export.
Definition: item.h:314
OSCAP_API const char * xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:387
OSCAP_API bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item)
OSCAP_API const char * xccdf_ident_get_system(const struct xccdf_ident *ident)
OSCAP_API void xccdf_ident_free(struct xccdf_ident *ident)
Definition: rule.c:487
OSCAP_API struct oscap_reference_iterator * xccdf_group_get_references(const struct xccdf_group *group)
Definition: item.c:978
OSCAP_API bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval)
OSCAP_API bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval)
OSCAP_API xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item)
OSCAP_API bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval)
OSCAP_API struct oscap_text * xccdf_warning_get_text(const struct xccdf_warning *warning)
OSCAP_API bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API void xccdf_item_free(struct xccdf_item *item)
Definition: item.c:257
OSCAP_API struct oscap_text_iterator * xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv)
OSCAP_API bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item)
OSCAP_API struct oscap_stringlist_iterator * xccdf_group_get_requires(const struct xccdf_group *group)
Definition: rule.c:888
XCCDF override.
Definition: item.h:375
OSCAP_API struct xccdf_check_import * xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it)
Return the next xccdf_check_import structure from the list and increment the iterator.
OSCAP_API bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval)
OSCAP_API bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:397
xccdf_value_type_t
Type of an xccdf_value.
Definition: xccdf_benchmark.h:94
OSCAP_API bool xccdf_result_set_id(struct xccdf_result *item, const char *newval)
OSCAP_API struct xccdf_item * xccdf_item_get_parent(const struct xccdf_item *item)
Return item&#39;s parent in the grouping hierarchy.
OSCAP_API bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval)
OSCAP_API bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval)
OSCAP_API struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule *rule)
Definition: rule.c:296
OSCAP_API const struct xccdf_version_info * xccdf_item_get_schema_version(struct xccdf_item *item)
Retrieves the XCCDF version of top-level benchmark item.
OSCAP_API const char * xccdf_notice_get_id(const struct xccdf_notice *notice)
OSCAP_API void xccdf_select_free(struct xccdf_select *sel)
Definition: profile.c:158
xccdf_status_type_t
Status of an XCCDF item.
Definition: xccdf_benchmark.h:84
enum xccdf_subst_type xccdf_subst_type_t
Type of textual substitution.
OSCAP_API void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it)
OSCAP_API void xccdf_benchmark_free(struct xccdf_benchmark *benchmark)
Definition: benchmark.c:400
OSCAP_API bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval)
Info.
Definition: xccdf_benchmark.h:121
OSCAP_API struct oscap_string_iterator * xccdf_group_get_metadata(const struct xccdf_group *group)
OSCAP_API bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it)
Return true if the list is not empty, false otherwise.
Value instance iterator.
Definition: xccdf_benchmark.h:597
Definition: reference_priv.h:35
OSCAP_API void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Type constant for xccdf_result.
Definition: xccdf_benchmark.h:60
OSCAP_API struct oscap_reference_iterator * xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:466
OSCAP_API struct xccdf_group * xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id)
Create a group and append it to the benchmark.
Definition: benchmark.c:660
OSCAP_API bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it)
Return true if the list is not empty, false otherwise.
XCCDF identity.
Definition: item.h:361
Definition: item.h:114
OSCAP_API const char * xccdf_check_get_content(const struct xccdf_check *check)
OSCAP_API bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval)
OSCAP_API void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval)
Represents selectable items, i.e. rules and groups (see xccdf_item)
Definition: xccdf_benchmark.h:66
XCCDF target fact.
Definition: item.h:388
OSCAP_API bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval)
OSCAP_API bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value)
OSCAP_API struct xccdf_group * xccdf_group_new(void)
Definition: rule.c:191
OSCAP_API bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval)
Check the rule and let the result contriburte to the score and appear in reports. ...
Definition: xccdf_benchmark.h:137
OSCAP_API bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval)
OSCAP_API struct xccdf_check_content_ref_iterator * xccdf_check_get_content_refs(const struct xccdf_check *check)
OSCAP_API const char * xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst)
OSCAP_API bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval)
Represents items as described in the XCCDF documentation (see xccdf_item)
Definition: xccdf_benchmark.h:68
The test failed.
Definition: xccdf_benchmark.h:172
OSCAP_API struct xccdf_fix * xccdf_fix_iterator_next(struct xccdf_fix_iterator *it)
Return the next xccdf_fix structure from the list and increment the iterator.
Deprecated.
Definition: xccdf_benchmark.h:87
OSCAP_API struct xccdf_value * xccdf_value_clone(const struct xccdf_value *value)
Definition: value.c:59
OSCAP_API struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact *tf)
Definition: item.c:1247
OSCAP_API struct xccdf_check_export * xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it)
Return the next xccdf_check_export structure from the list and increment the iterator.
OSCAP_API bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval)
OSCAP_API void xccdf_override_iterator_remove(struct xccdf_override_iterator *it)
OSCAP_API const char * xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:392
OSCAP_API const char * xccdf_override_get_authority(const struct xccdf_override *item)
Structure representing a CPE dictionary.
Definition: cpedict_priv.h:139
Profile note iterator.
Definition: xccdf_benchmark.h:520
OSCAP_API struct oscap_text_iterator * xccdf_value_get_description(const struct xccdf_value *value)
Could not tell what happened.
Definition: xccdf_benchmark.h:174
Type constant for xccdf_profile.
Definition: xccdf_benchmark.h:59
OSCAP_API bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval)
OSCAP_API struct xccdf_refine_value * xccdf_refine_value_new(void)
Definition: profile.c:80
Strategy not defined.
Definition: xccdf_benchmark.h:158
OSCAP_API bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule)
Rule did not apply to test target.
Definition: xccdf_benchmark.h:175
OSCAP_API bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval)
OSCAP_API struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice *notice)
Definition: benchmark.c:614
OSCAP_API bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:442
OSCAP_API void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref)
Definition: rule.c:723
Definition: oscap_source.c:66
OSCAP_API bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval)
OSCAP_API struct xccdf_status_iterator * xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:461
xccdf_message_severity_t
Severity of an xccdf_message.
Definition: xccdf_benchmark.h:128
OSCAP_API struct oscap_text_iterator * xccdf_select_get_remarks(const struct xccdf_select *select)
OSCAP_API void xccdf_status_iterator_free(struct xccdf_status_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval)
Remediation by changing policies/procedures.
Definition: xccdf_benchmark.h:163
Select iterator.
Definition: xccdf_benchmark.h:479
OSCAP_API struct xccdf_select * xccdf_select_iterator_next(struct xccdf_select_iterator *it)
Return the next xccdf_select structure from the list and increment the iterator.
OSCAP_API struct xccdf_plain_text * xccdf_plain_text_clone(const struct xccdf_plain_text *pt)
Definition: benchmark.c:906
OSCAP_API struct xccdf_item * xccdf_profile_to_item(struct xccdf_profile *item)
OSCAP_API struct oscap_text_iterator * xccdf_item_get_rationale(const struct xccdf_item *item)
OSCAP_API void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it)
OSCAP_API bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:415
Profile iterator.
Definition: xccdf_benchmark.h:465
OSCAP_API int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info)
Definition: tailoring.c:350
OSCAP_API struct xccdf_ident * xccdf_ident_new_fill(const char *id, const char *sys)
Definition: rule.c:455
OSCAP_API xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst)
OSCAP_API struct oscap_source * xccdf_result_stig_viewer_export_source(struct xccdf_result *result, const char *filepath)
Export TestResult to oscap_source structure using STIG Rule IDs instead of the actual rule ids...
Definition: result.c:1075
OSCAP_API struct xccdf_notice * xccdf_notice_new(void)
Definition: benchmark.c:607
OSCAP_API bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API struct xccdf_check * xccdf_check_iterator_next(struct xccdf_check_iterator *it)
Return the next xccdf_check structure from the list and increment the iterator.
OSCAP_API struct xccdf_profile_iterator * xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:456
OSCAP_API struct oscap_string_iterator * xccdf_value_get_sources(const struct xccdf_value *value)
Warning about impacts to the mgmt or administration of the target system.
Definition: xccdf_benchmark.h:151
OSCAP_API bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval)
OSCAP_API bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval)
XCCDF rule result.
Definition: item.h:344
OSCAP_API void xccdf_value_instance_free(struct xccdf_value_instance *inst)
Definition: value.c:398
OSCAP_API bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval)
OSCAP_API bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval)
OSCAP_API void xccdf_select_iterator_free(struct xccdf_select_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval)
OSCAP_API bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval)
OSCAP_API struct oscap_text * xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext)
OSCAP_API bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item)
OSCAP_API xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item)
OSCAP_API bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval)
OSCAP_API const char * xccdf_value_get_cluster_id(const struct xccdf_value *value)
OSCAP_API xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item)
OSCAP_API struct oscap_string_iterator * xccdf_result_get_metadata(const struct xccdf_result *result)
OSCAP_API struct oscap_string_iterator * xccdf_result_get_organizations(const struct xccdf_result *item)
OSCAP_API struct oscap_reference_iterator * xccdf_group_get_dc_statuses(const struct xccdf_group *group)
Definition: item.c:979
OSCAP_API const char * xccdf_result_get_benchmark_uri(const struct xccdf_result *item)
OSCAP_API void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it)
OSCAP_API void xccdf_message_iterator_remove(struct xccdf_message_iterator *it)
OSCAP_API struct xccdf_select * xccdf_select_new(void)
Definition: profile.c:122
OSCAP_API void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_score_iterator_free(struct xccdf_score_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
Model iterator.
Definition: xccdf_benchmark.h:451
OSCAP_API bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval)
OSCAP_API bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval)
OSCAP_API bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval)
OSCAP_API bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval)
OSCAP_API struct xccdf_item * xccdf_value_to_item(struct xccdf_value *item)
OSCAP_API void xccdf_model_iterator_reset(struct xccdf_model_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
XCCDF item status.
Definition: item.h:243
OSCAP_API bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval)
OSCAP_API const char * xccdf_instance_get_content(const struct xccdf_instance *item)
OSCAP_API void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it)
OSCAP_API bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval)
No interface hint.
Definition: xccdf_benchmark.h:75
XCCDF rule ident URI.
Definition: item.h:280
OSCAP_API struct xccdf_message * xccdf_message_iterator_next(struct xccdf_message_iterator *it)
Return the next xccdf_message structure from the list and increment the iterator. ...
OSCAP_API struct xccdf_check * xccdf_check_clone(const struct xccdf_check *old_check)
Definition: rule.c:531
OSCAP_API bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval)
OSCAP_API bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval)
OSCAP_API xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext)
XCCDF rule defines a test execution.
Definition: xccdf_benchmark.h:216
OSCAP_API bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval)
OSCAP_API const struct xccdf_version_info * xccdf_benchmark_supported_schema_version(void)
Definition: benchmark.c:655
OSCAP_API void xccdf_result_iterator_free(struct xccdf_result_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API void xccdf_instance_free(struct xccdf_instance *inst)
Definition: result.c:912
substitute cdf:sub element
Definition: xccdf_benchmark.h:3434
OSCAP_API void xccdf_value_iterator_remove(struct xccdf_value_iterator *it)
OSCAP_API struct xccdf_value_instance * xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector)
Definition: value.c:352
OSCAP_API bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval)
OSCAP_API void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it)
OSCAP_API bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval)
OSCAP_API bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval)
OSCAP_API bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval)
OSCAP_API const char * xccdf_plain_text_get_id(const struct xccdf_plain_text *item)
OSCAP_API bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval)
OSCAP_API struct xccdf_benchmark * xccdf_benchmark_clone(const struct xccdf_benchmark *benchmark)
Definition: benchmark.c:118
OSCAP_API struct xccdf_select * xccdf_select_clone(const struct xccdf_select *select)
Definition: profile.c:129
Rule did not cause any evaluation by the checking engine.
Definition: xccdf_benchmark.h:176
OSCAP_API struct xccdf_refine_value * xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it)
Return the next xccdf_refine_value structure from the list and increment the iterator.
OSCAP_API struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext *fixtext)
Definition: rule.c:817
OSCAP_API bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval)
OSCAP_API bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts)
Definition: rule.c:911
Override iterator.
Definition: xccdf_benchmark.h:583
OSCAP_API struct xccdf_profile * xccdf_item_to_profile(struct xccdf_item *item)
Convert the item to a profile.
OSCAP_API bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval)
OSCAP_API bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval)
Representation of internationalizable character strings.
Definition: text_priv.h:46
OSCAP_API bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval)
OSCAP_API bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst)
OSCAP_API void xccdf_status_free(struct xccdf_status *status)
Definition: item.c:1027
OSCAP_API struct xccdf_override * xccdf_override_iterator_next(struct xccdf_override_iterator *it)
Return the next xccdf_override structure from the list and increment the iterator.
OSCAP_API void xccdf_check_import_free(struct xccdf_check_import *item)
Definition: rule.c:737
OSCAP_API const char * xccdf_benchmark_supported(void)
Get supported version of XCCDF XML.
Definition: benchmark.c:650
OSCAP_API xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext)
OSCAP_API xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst)
OSCAP_API struct oscap_string_iterator * xccdf_group_get_conflicts(const struct xccdf_group *group)
Definition: rule.c:872
Rule was evaluated by the checking engine, but isn&#39;t to be scored.
Definition: xccdf_benchmark.h:178
OSCAP_API struct xccdf_status_iterator * xccdf_group_get_statuses(const struct xccdf_group *group)
OSCAP_API bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item)
OSCAP_API bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval)
OSCAP_API struct xccdf_item * xccdf_value_get_parent(const struct xccdf_value *value)
Return value&#39;s parent in the grouping hierarchy.
String iterator.
OSCAP_API bool xccdf_value_get_hidden(const struct xccdf_value *value)
OSCAP_API void xccdf_score_iterator_remove(struct xccdf_score_iterator *it)
OSCAP_API bool xccdf_identity_get_privileged(const struct xccdf_identity *item)
Logical or.
Definition: xccdf_benchmark.h:114
OSCAP_API bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval)
OSCAP_API struct xccdf_benchmark * xccdf_item_to_benchmark(struct xccdf_item *item)
Convert the item to a benchmark.
OSCAP_API struct xccdf_setvalue_iterator * xccdf_result_get_setvalues(const struct xccdf_result *item)
OSCAP_API const char * xccdf_model_get_system(const struct xccdf_model *model)
OSCAP_API bool xccdf_item_add_metadata(struct xccdf_item *item, const char *metadata)
OSCAP_API bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval)
OSCAP_API struct oscap_reference_iterator * xccdf_value_get_references(const struct xccdf_value *value)
Definition: item.c:976
xccdf_strategy_t
Fix strategy type.
Definition: xccdf_benchmark.h:157
OSCAP_API bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item)
Definition: profile.c:117
OSCAP_API struct oscap_string_iterator * xccdf_result_get_target_addresses(const struct xccdf_result *item)
OSCAP_API bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval)
OSCAP_API const char * xccdf_rule_get_version_update(const struct xccdf_rule *rule)
OSCAP_API bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group)
OSCAP_API bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval)
OSCAP_API const char * xccdf_value_instance_get_match(const struct xccdf_value_instance *inst)
OSCAP_API bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval)
OSCAP_API bool xccdf_identity_get_authenticated(const struct xccdf_identity *item)
OSCAP_API xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item)
OSCAP_API void xccdf_model_iterator_free(struct xccdf_model_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
General-purpose warning.
Definition: xccdf_benchmark.h:145
OSCAP_API void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it)
OSCAP_API bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval)
OSCAP_API bool xccdf_value_set_oper(struct xccdf_value *item, xccdf_operator_t oper)
Definition: value.c:273
An error occurred and test could not complete.
Definition: xccdf_benchmark.h:173
OSCAP_API bool xccdf_select_get_selected(const struct xccdf_select *select)
OSCAP_API bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_identity * xccdf_identity_iterator_next(struct xccdf_identity_iterator *it)
Return the next xccdf_identity structure from the list and increment the iterator.
OSCAP_API const char * xccdf_select_get_item(const struct xccdf_select *select)
Type constant for xccdf_rule.
Definition: xccdf_benchmark.h:61
OSCAP_API void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it)
OSCAP_API void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it)
OSCAP_API bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval)
OSCAP_API void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it)
OSCAP_API struct xccdf_plain_text * xccdf_plain_text_new(void)
Definition: benchmark.c:883
OSCAP_API struct xccdf_warning * xccdf_warning_new(void)
Definition: item.c:1111
OSCAP_API bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval)
xccdf_interface_hint_t
Interface hint.
Definition: xccdf_benchmark.h:74
OSCAP_API struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value *old_value)
Definition: profile.c:87
XCCDF profile is a set of tests and their settings in a compact package.
Definition: xccdf_benchmark.h:204
OSCAP_API const char * xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring)
Definition: tailoring.c:367
OSCAP_API struct xccdf_check * xccdf_check_new(void)
Notice iterator.
Definition: xccdf_benchmark.h:430
OSCAP_API void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_fix * xccdf_fix_new(void)
Definition: rule.c:773
OSCAP_API xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check)
Get an operator to be applied no children of the complex check.
OSCAP_API struct xccdf_item * xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key)
Get a registered member of xccdf_benchmakr by ID.
Definition: benchmark.c:736
OSCAP_API const char * xccdf_item_get_version_update(const struct xccdf_item *item)
Textual fix iterator.
Definition: xccdf_benchmark.h:527
OSCAP_API const char * xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark)
OSCAP_API bool xccdf_result_add_target(struct xccdf_result *item, const char *newval)
OSCAP_API const char * xccdf_identity_get_name(const struct xccdf_identity *item)
OSCAP_API bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval)
OSCAP_API struct oscap_text * xccdf_profile_note_get_text(const struct xccdf_profile_note *note)
OSCAP_API const char * xccdf_fix_get_id(const struct xccdf_fix *fix)
Override iterator.
Definition: xccdf_benchmark.h:618
OSCAP_API const char * xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item)
Definition: result.c:872
OSCAP_API void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_value_set_version(struct xccdf_value *item, const char *newval)
OSCAP_API void xccdf_result_iterator_remove(struct xccdf_result_iterator *it)
OSCAP_API bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark *item, struct cpe_lang_model *cpe_lang_model)
Definition: benchmark.c:584
OSCAP_API void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it)
OSCAP_API struct xccdf_item_iterator * xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark)
Get an iterator to the bencmark content.
OSCAP_API struct xccdf_result * xccdf_result_clone(const struct xccdf_result *result)
Definition: result.c:122
OSCAP_API struct xccdf_plain_text * xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it)
Return the next xccdf_plain_text structure from the list and increment the iterator.
OSCAP_API struct xccdf_result * xccdf_result_iterator_next(struct xccdf_result_iterator *it)
Return the next xccdf_result structure from the list and increment the iterator.
OSCAP_API bool xccdf_value_add_metadata(struct xccdf_value *item, const char *metadata)
OSCAP_API bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval)
OSCAP_API bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval)
OSCAP_API bool xccdf_benchmark_add_metadata(struct xccdf_benchmark *item, const char *metadata)
Combo of two or more of the above.
Definition: xccdf_benchmark.h:166
OSCAP_API xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value *rv)
xccdf_bool_operator_t
Boolean operators for logical expressions.
Definition: xccdf_benchmark.h:112
OSCAP_API xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value)
OSCAP_API bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval)
Unknown.
Definition: xccdf_benchmark.h:120
OSCAP_API const char * xccdf_item_get_version_time(const struct xccdf_item *item)
OSCAP_API bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval)
XCCDF automatic fix.
Definition: item.h:324
XCCDF check import.
Definition: item.h:308
OSCAP_API bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval)
OSCAP_API bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval)
OSCAP_API const char * xccdf_target_fact_get_name(const struct xccdf_target_fact *item)
OSCAP_API struct oscap_source * xccdf_result_export_source(struct xccdf_result *result, const char *filepath)
Export TestResult to oscap_source structure.
Definition: result.c:1063
Warning about legal implications.
Definition: xccdf_benchmark.h:149
OSCAP_API xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item)
OSCAP_API void xccdf_tailoring_free(struct xccdf_tailoring *tailoring)
Definition: tailoring.c:60
OSCAP_API void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it)
OSCAP_API struct xccdf_instance * xccdf_instance_iterator_next(struct xccdf_instance_iterator *it)
Return the next xccdf_instance structure from the list and increment the iterator.
OSCAP_API void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval)
OSCAP_API void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Check content references iterator.
Definition: xccdf_benchmark.h:534
OSCAP_API void xccdf_check_iterator_free(struct xccdf_check_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status)
The item is not complete.
Definition: xccdf_benchmark.h:89
OSCAP_API bool xccdf_value_get_abstract(const struct xccdf_value *value)
OSCAP_API struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule *old_rule)
Definition: profile.c:105
OSCAP_API bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval)
OSCAP_API bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval)
OSCAP_API bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval)
OSCAP_API bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval)
OSCAP_API bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark *item, struct cpe_dict_model *cpe_list)
Definition: benchmark.c:561
OSCAP_API void xccdf_score_iterator_reset(struct xccdf_score_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
Rule failed, but was later fixed.
Definition: xccdf_benchmark.h:179
Don&#39;t check the rule, result will be XCCDF_RESULT_UNKNOWN.
Definition: xccdf_benchmark.h:139
OSCAP_API struct xccdf_profile_note * xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it)
Return the next xccdf_profile_note structure from the list and increment the iterator.
OSCAP_API void xccdf_status_iterator_remove(struct xccdf_status_iterator *it)
OSCAP_API bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval)
OSCAP_API void xccdf_result_iterator_reset(struct xccdf_result_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval)
OSCAP_API bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval)
OSCAP_API const char * xccdf_value_get_version_time(const struct xccdf_value *value)
OSCAP_API bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval)
OSCAP_API struct xccdf_target_fact * xccdf_target_fact_new(void)
Definition: result.c:729
OSCAP_API struct xccdf_result * xccdf_result_new(void)
Definition: result.c:111
OSCAP_API bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval)
Check iterator.
Definition: xccdf_benchmark.h:513
OSCAP_API void xccdf_identity_free(struct xccdf_identity *identity)
Definition: result.c:649
OSCAP_API bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval)
OSCAP_API bool xccdf_item_set_selected(struct xccdf_item *item, bool newval)
String.
Definition: xccdf_benchmark.h:96
Can be either <target-id-ref> or some other element.
Definition: item.h:394
OSCAP_API struct xccdf_value_instance * xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it)
Return the next xccdf_value_instance structure from the list and increment the iterator.
OSCAP_API void xccdf_result_free(struct xccdf_result *item)
OSCAP_API const char * xccdf_result_get_test_system(const struct xccdf_result *item)
OSCAP_API void xccdf_result_fill_sysinfo(struct xccdf_result *result)
Collect system info and store it in the TestResult.
Definition: result.c:297
OSCAP_API bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval)
OSCAP_API bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance *instance)
Definition: item.c:1275
OSCAP_API struct xccdf_score * xccdf_score_clone(const struct xccdf_score *score)
Definition: item.c:1303
OSCAP_API struct oscap_text_iterator * xccdf_value_get_title(const struct xccdf_value *value)
OSCAP_API struct xccdf_benchmark * xccdf_rule_get_benchmark(const struct xccdf_rule *rule)
OSCAP_API struct xccdf_check_iterator * xccdf_check_get_children(const struct xccdf_check *check)
Get an iterator to nested checks of the complex check.
OSCAP_API bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:406
OSCAP_API struct xccdf_target_fact * xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it)
Return the next xccdf_target_fact structure from the list and increment the iterator.
OSCAP_API void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API const char * xccdf_rule_result_get_version(const struct xccdf_rule_result *item)
OSCAP_API xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix)
OSCAP_API bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval)
OSCAP_API struct oscap_string_iterator * xccdf_item_get_platforms(const struct xccdf_item *item)
OSCAP_API bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item)
OSCAP_API void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_item_set_version(struct xccdf_item *item, const char *newval)
OSCAP_API bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval)
OSCAP_API void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
Info.
Definition: xccdf_benchmark.h:130
OSCAP_API bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval)
OSCAP_API void xccdf_score_free(struct xccdf_score *score)
Definition: result.c:671
OSCAP_API bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext)
OSCAP_API bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it)
Return true if the list is not empty, false otherwise.
High.
Definition: xccdf_benchmark.h:124
OSCAP_API float xccdf_item_get_weight(const struct xccdf_item *item)
OSCAP_API bool xccdf_value_get_interactive(const struct xccdf_value *value)
OSCAP_API void xccdf_warning_free(struct xccdf_warning *warn)
Definition: item.c:1126
Result iterator.
Definition: xccdf_benchmark.h:458
OSCAP_API bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval)
OSCAP_API bool xccdf_group_set_version(struct xccdf_group *item, const char *newval)
Draft item.
Definition: xccdf_benchmark.h:88
XCCDF benchmark legal notice.
Definition: item.h:238
float xccdf_numeric
Type of a numerical content for a XCCDF value.
Definition: xccdf_benchmark.h:198
OSCAP_API const char * xccdf_fix_get_content(const struct xccdf_fix *fix)
OSCAP_API struct xccdf_value_iterator * xccdf_group_get_values(const struct xccdf_group *group)
OSCAP_API void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API struct xccdf_rule_result * xccdf_rule_result_new(void)
Definition: result.c:598
OSCAP_API bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval)
OSCAP_API struct xccdf_ident * xccdf_ident_new(void)
Definition: rule.c:450
OSCAP_API struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group)
OSCAP_API bool xccdf_profile_add_metadata(struct xccdf_profile *item, const char *metadata)
OSCAP_API bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval)
OSCAP_API bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval)
OSCAP_API bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval)
OSCAP_API struct xccdf_benchmark * xccdf_item_get_benchmark(const struct xccdf_item *item)
OSCAP_API struct xccdf_message * xccdf_message_clone(const struct xccdf_message *message)
Definition: item.c:1267
OSCAP_API bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval)
OSCAP_API struct xccdf_benchmark * xccdf_result_get_benchmark(const struct xccdf_result *item)
OSCAP_API struct xccdf_model * xccdf_model_clone(const struct xccdf_model *old_model)
Definition: item.c:1052
OSCAP_API bool xccdf_group_get_selected(const struct xccdf_group *group)
OSCAP_API bool xccdf_check_get_complex(const struct xccdf_check *check)
True if the check is a complex check.
Definition: rule.c:692
OSCAP_API struct oscap_text_iterator * xccdf_result_get_title(const struct xccdf_result *item)
OSCAP_API bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval)
Apply a patch, hotfix, or update.
Definition: xccdf_benchmark.h:162
OSCAP_API const char * xccdf_benchmark_match_profile_id(struct xccdf_benchmark *bench, const char *profile_suffix, int *match_status)
Match a profile suffix agains profiles present in the given benchmark.
Definition: xccdf_session.c:583
OSCAP_API bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst)
OSCAP_API bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval)
OSCAP_API void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval)
OSCAP_API const char * xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst)
OSCAP_API struct oscap_reference_iterator * xccdf_value_get_dc_statuses(const struct xccdf_value *value)
Definition: item.c:977
OSCAP_API bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval)
OSCAP_API struct xccdf_group * xccdf_group_clone(const struct xccdf_group *group)
Definition: rule.c:196
OSCAP_API void xccdf_item_iterator_reset(struct xccdf_item_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
The test passed.
Definition: xccdf_benchmark.h:171
OSCAP_API const char * xccdf_result_get_profile(const struct xccdf_result *item)
Warning about possible impacts to functionality.
Definition: xccdf_benchmark.h:146
OSCAP_API struct xccdf_check_export * xccdf_check_export_new(void)
Definition: rule.c:747
OSCAP_API const char * xccdf_ident_get_id(const struct xccdf_ident *ident)
XCCDF warning.
Definition: item.h:233
OSCAP_API bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval)
OSCAP_API void xccdf_notice_free(struct xccdf_notice *notice)
Definition: benchmark.c:638
OSCAP_API bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile)
OSCAP_API void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval)
Definition: result.c:718
OSCAP_API const char * xccdf_message_get_content(const struct xccdf_message *item)
OSCAP_API bool xccdf_group_get_abstract(const struct xccdf_group *group)
OSCAP_API const char * xccdf_target_fact_get_value(const struct xccdf_target_fact *item)
OSCAP_API struct xccdf_override_iterator * xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item)
OSCAP_API bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval)
OSCAP_API bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item)
OSCAP_API xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item)
OSCAP_API bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result)
Definition: benchmark.c:452
OSCAP_API void xccdf_item_iterator_free(struct xccdf_item_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval)
OSCAP_API const char * xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item)
Definition: result.c:894
OSCAP_API const char * xccdf_override_get_time(const struct xccdf_override *item)
OSCAP_API struct xccdf_fix * xccdf_fix_clone(const struct xccdf_fix *old_fix)
Definition: rule.c:779
OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval)
A base class for XCCDF items.
Definition: item.h:220
Logical and.
Definition: xccdf_benchmark.h:113
OSCAP_API void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval)
OSCAP_API bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval)
XCCDF refine value option used in the profile.
Definition: item.h:268
OSCAP_API bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item)
Definition: rule.c:1127
OSCAP_API struct xccdf_target_fact_iterator * xccdf_result_get_target_facts(const struct xccdf_result *item)
Represents an object, profile, result or whole benchmark (see xccdf_item)
Definition: xccdf_benchmark.h:70
Warning.
Definition: xccdf_benchmark.h:131
Warning about impacts to audit or logging.
Definition: xccdf_benchmark.h:152
OSCAP_API struct xccdf_result * xccdf_item_to_result(struct xccdf_item *item)
Convert the item to a test result.
OSCAP_API xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item)
OSCAP_API const char * xccdf_value_get_version(const struct xccdf_value *value)
OSCAP_API bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval)
OSCAP_API void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it)
Free the iterator structure (it makes no changes to the list structure)
OSCAP_API bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it)
Return true if the list is not empty, false otherwise.
OSCAP_API struct oscap_string_iterator * xccdf_result_get_applicable_platforms(const struct xccdf_result *item)
OSCAP_API xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning)
OSCAP_API bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts)
Definition: rule.c:921
XCCDF check content reference.
Definition: item.h:303
OSCAP_API bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval)
Definition: tailoring.c:424
OSCAP_API bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval)
Status iterator.
Definition: xccdf_benchmark.h:437
OSCAP_API bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval)
Date and time selection widget.
Definition: xccdf_benchmark.h:80
OSCAP_API struct xccdf_item * xccdf_item_clone(const struct xccdf_item *old_item)
Definition: item.c:146
OSCAP_API const char * xccdf_refine_value_get_item(const struct xccdf_refine_value *rv)
OSCAP_API struct xccdf_value * xccdf_value_iterator_next(struct xccdf_value_iterator *it)
Return the next xccdf_value structure from the list and increment the iterator.
OSCAP_API bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval)
OSCAP_API void xccdf_check_free(struct xccdf_check *check)
Definition: rule.c:697
OSCAP_API struct xccdf_identity * xccdf_identity_new(void)
Definition: result.c:644
OSCAP_API struct xccdf_warning * xccdf_warning_iterator_next(struct xccdf_warning_iterator *it)
Return the next xccdf_warning structure from the list and increment the iterator. ...
OSCAP_API bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval)
OSCAP_API void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it)
Reset the iterator structure (it makes no changes to the list structure)
OSCAP_API xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst)