| 1 | /** |
| 2 | * @addtogroup XCCDF |
| 3 | * @{ |
| 4 | * |
| 5 | * @file xccdf_benchmark.h |
| 6 | * Open-scap XCCDF library interface. |
| 7 | * @author Lukas Kuklinek <[email protected]> |
| 8 | */ |
| 9 | |
| 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 <[email protected]> |
| 31 | * Josh Adams <[email protected]> |
| 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 | |
| 49 | /** |
| 50 | * Type of an XCCDF object. |
| 51 | * |
| 52 | * When checking the type, you can use either operator == for type equivalence, |
| 53 | * or operator & to take a type inheritance hierarchy into account. |
| 54 | * For example, XCCDF_ITEM & XCCDF_RULE evaluates to true, |
| 55 | * as the rule type is a subclass of the xccdf item type. |
| 56 | */ |
| 57 | typedef enum { |
| 58 | XCCDF_BENCHMARK = 0x0100, ///< Type constant for xccdf_benchmark |
| 59 | XCCDF_PROFILE = 0x0200, ///< Type constant for xccdf_profile |
| 60 | XCCDF_RESULT = 0x0400, ///< Type constant for xccdf_result |
| 61 | XCCDF_RULE = 0x1000, ///< Type constant for xccdf_rule |
| 62 | XCCDF_GROUP = 0x2000, ///< Type constant for xccdf_group |
| 63 | XCCDF_VALUE = 0x4000, ///< Type constant for xccdf_value |
| 64 | |
| 65 | /// Represents selectable items, i.e. rules and groups (see xccdf_item) |
| 66 | XCCDF_CONTENT = XCCDF_RULE | XCCDF_GROUP, |
| 67 | /// Represents items as described in the XCCDF documentation (see xccdf_item) |
| 68 | XCCDF_ITEM = XCCDF_RULE | XCCDF_GROUP | XCCDF_VALUE, |
| 69 | /// Represents an object, profile, result or whole benchmark (see xccdf_item) |
| 70 | XCCDF_OBJECT = XCCDF_ITEM | XCCDF_PROFILE | XCCDF_BENCHMARK | XCCDF_RESULT, |
| 71 | } xccdf_type_t; |
| 72 | |
| 73 | /// Interface hint. |
| 74 | typedef enum { |
| 75 | XCCDF_IFACE_HINT_NONE, ///< No interface hint |
| 76 | XCCDF_IFACE_HINT_CHOICE, ///< Choice from multiple values. |
| 77 | XCCDF_IFACE_HINT_TEXTLINE, ///< Text line input widget. |
| 78 | XCCDF_IFACE_HINT_TEXT, ///< Textarea. |
| 79 | XCCDF_IFACE_HINT_DATE, ///< Date selection widget. |
| 80 | XCCDF_IFACE_HINT_DATETIME, ///< Date and time selection widget. |
| 81 | } xccdf_interface_hint_t; |
| 82 | |
| 83 | /// Status of an XCCDF item. |
| 84 | typedef enum { |
| 85 | XCCDF_STATUS_NOT_SPECIFIED, ///< Status was not specified by benchmark. |
| 86 | XCCDF_STATUS_ACCEPTED, ///< Accepted. |
| 87 | XCCDF_STATUS_DEPRECATED, ///< Deprecated. |
| 88 | XCCDF_STATUS_DRAFT, ///< Draft item. |
| 89 | XCCDF_STATUS_INCOMPLETE, ///< The item is not complete. |
| 90 | XCCDF_STATUS_INTERIM ///< Interim. |
| 91 | } xccdf_status_type_t; |
| 92 | |
| 93 | /// Type of an xccdf_value. |
| 94 | typedef enum { |
| 95 | XCCDF_TYPE_NUMBER = 1, ///< Integer. |
| 96 | XCCDF_TYPE_STRING, ///< String. |
| 97 | XCCDF_TYPE_BOOLEAN, ///< Boolean. |
| 98 | } xccdf_value_type_t; |
| 99 | |
| 100 | /// Operator to be applied on an xccdf_value. |
| 101 | typedef enum { |
| 102 | XCCDF_OPERATOR_EQUALS = 1, ///< Equality. |
| 103 | XCCDF_OPERATOR_NOT_EQUAL, ///< Inequality. |
| 104 | XCCDF_OPERATOR_GREATER, ///< Greater than. |
| 105 | XCCDF_OPERATOR_GREATER_EQUAL, ///< Greater than or equal. |
| 106 | XCCDF_OPERATOR_LESS, ///< Less than. |
| 107 | XCCDF_OPERATOR_LESS_EQUAL, ///< Less than or equal. |
| 108 | XCCDF_OPERATOR_PATTERN_MATCH ///< Match a regular expression. |
| 109 | } xccdf_operator_t; |
| 110 | |
| 111 | /// Boolean operators for logical expressions |
| 112 | typedef enum { |
| 113 | XCCDF_OPERATOR_AND = 0x0002, ///< Logical and. |
| 114 | XCCDF_OPERATOR_OR = 0x0003, ///< Logical or. |
| 115 | } xccdf_bool_operator_t; |
| 116 | |
| 117 | /// XCCDF error, complexity, disruption, or severity level |
| 118 | typedef enum { |
| 119 | XCCDF_LEVEL_NOT_DEFINED = 0, |
| 120 | XCCDF_UNKNOWN = 1, ///< Unknown. |
| 121 | XCCDF_INFO, ///< Info. |
| 122 | XCCDF_LOW, ///< Low. |
| 123 | XCCDF_MEDIUM, ///< Medium. |
| 124 | XCCDF_HIGH ///< High. |
| 125 | } xccdf_level_t; |
| 126 | |
| 127 | /// Severity of an xccdf_message. |
| 128 | typedef enum { |
| 129 | XCCDF_MSG_NOT_DEFINED = 0, |
| 130 | XCCDF_MSG_INFO = XCCDF_INFO, ///< Info. |
| 131 | XCCDF_MSG_WARNING = XCCDF_LOW, ///< Warning. |
| 132 | XCCDF_MSG_ERROR = XCCDF_HIGH, ///< Error |
| 133 | } xccdf_message_severity_t; |
| 134 | |
| 135 | /// XCCDF role. |
| 136 | typedef enum { |
| 137 | XCCDF_ROLE_FULL = 1, ///< Check the rule and let the result contriburte to the score and appear in reports |
| 138 | XCCDF_ROLE_UNSCORED, ///< Check the rule and include the result in reports, but do not include it into score computations |
| 139 | XCCDF_ROLE_UNCHECKED ///< Don't check the rule, result will be XCCDF_RESULT_UNKNOWN |
| 140 | } xccdf_role_t; |
| 141 | |
| 142 | /// Category of xccdf_warning. |
| 143 | typedef enum { |
| 144 | XCCDF_WARNING_NOT_SPECIFIED, |
| 145 | XCCDF_WARNING_GENERAL = 1, ///< General-purpose warning |
| 146 | XCCDF_WARNING_FUNCTIONALITY, ///< Warning about possible impacts to functionality |
| 147 | XCCDF_WARNING_PERFORMANCE, ///< Warning about changes to target system performance |
| 148 | XCCDF_WARNING_HARDWARE, ///< Warning about hardware restrictions or possible impacts to hardware |
| 149 | XCCDF_WARNING_LEGAL, ///< Warning about legal implications |
| 150 | XCCDF_WARNING_REGULATORY, ///< Warning about regulatory obligations |
| 151 | XCCDF_WARNING_MANAGEMENT, ///< Warning about impacts to the mgmt or administration of the target system |
| 152 | XCCDF_WARNING_AUDIT, ///< Warning about impacts to audit or logging |
| 153 | XCCDF_WARNING_DEPENDENCY ///< Warning about dependencies between this Rule and other parts of the target system |
| 154 | } xccdf_warning_category_t; |
| 155 | |
| 156 | /// Fix strategy type |
| 157 | typedef enum { |
| 158 | XCCDF_STRATEGY_UNKNOWN = 0, ///< Strategy not defined |
| 159 | XCCDF_STRATEGY_CONFIGURE, ///< Adjust target config or settings |
| 160 | XCCDF_STRATEGY_DISABLE, ///< Turn off or deinstall something |
| 161 | XCCDF_STRATEGY_ENABLE, ///< Turn on or install something |
| 162 | XCCDF_STRATEGY_PATCH, ///< Apply a patch, hotfix, or update |
| 163 | XCCDF_STRATEGY_POLICY, ///< Remediation by changing policies/procedures |
| 164 | XCCDF_STRATEGY_RESTRICT, ///< Adjust permissions or ACLs |
| 165 | XCCDF_STRATEGY_UPDATE, ///< Install upgrade or update the system |
| 166 | XCCDF_STRATEGY_COMBINATION ///< Combo of two or more of the above |
| 167 | } xccdf_strategy_t; |
| 168 | |
| 169 | /// Test result |
| 170 | typedef enum { |
| 171 | XCCDF_RESULT_PASS = 1, ///< The test passed |
| 172 | XCCDF_RESULT_FAIL, ///< The test failed |
| 173 | XCCDF_RESULT_ERROR, ///< An error occurred and test could not complete |
| 174 | XCCDF_RESULT_UNKNOWN, ///< Could not tell what happened |
| 175 | XCCDF_RESULT_NOT_APPLICABLE, ///< Rule did not apply to test target |
| 176 | XCCDF_RESULT_NOT_CHECKED, ///< Rule did not cause any evaluation by the checking engine |
| 177 | XCCDF_RESULT_NOT_SELECTED, ///< Rule was not selected in the @link xccdf_benchmark Benchmark@endlink |
| 178 | XCCDF_RESULT_INFORMATIONAL, ///< Rule was evaluated by the checking engine, but isn't to be scored |
| 179 | XCCDF_RESULT_FIXED ///< Rule failed, but was later fixed |
| 180 | } xccdf_test_result_type_t; |
| 181 | |
| 182 | /** |
| 183 | * Results of matching profile suffixes against set of profile IDs. |
| 184 | */ |
| 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 | |
| 195 | /** |
| 196 | * Type of a numerical content for a XCCDF value. |
| 197 | */ |
| 198 | typedef float xccdf_numeric; |
| 199 | |
| 200 | /** |
| 201 | * @struct xccdf_benchmark |
| 202 | * Top level XCCDF structure containing profiles, rules, values and results. |
| 203 | */ |
| 204 | struct xccdf_benchmark; |
| 205 | |
| 206 | /** |
| 207 | * @struct xccdf_profile |
| 208 | * XCCDF profile is a set of tests and their settings in a compact package |
| 209 | */ |
| 210 | struct xccdf_profile; |
| 211 | |
| 212 | /** |
| 213 | * @struct xccdf_item |
| 214 | * A base class for XCCDF items. |
| 215 | */ |
| 216 | struct xccdf_item; |
| 217 | |
| 218 | /** |
| 219 | * @struct xccdf_rule |
| 220 | * XCCDF rule defines a test execution. Groups are in this module as well. |
| 221 | */ |
| 222 | struct xccdf_rule; |
| 223 | |
| 224 | /** |
| 225 | * @struct xccdf_group |
| 226 | * XCCDF rule group. |
| 227 | */ |
| 228 | struct xccdf_group; |
| 229 | |
| 230 | /** |
| 231 | * @struct xccdf_value |
| 232 | * XCCDF Value allows test parametrization or capturing output of tests. |
| 233 | */ |
| 234 | struct xccdf_value; |
| 235 | |
| 236 | /** |
| 237 | * @struct xccdf_result |
| 238 | * Actual results of running a XCCDF test or profile. |
| 239 | */ |
| 240 | struct xccdf_result; |
| 241 | |
| 242 | /** |
| 243 | * @struct xccdf_tailoring |
| 244 | * Stores content from xccdf:Tailoring element which can be loaded from |
| 245 | * a separate file. |
| 246 | */ |
| 247 | struct xccdf_tailoring; |
| 248 | |
| 249 | /*--------------------*\ |
| 250 | | Support structures | |
| 251 | \*--------------------*/ |
| 252 | |
| 253 | /** |
| 254 | * @struct xccdf_notice |
| 255 | * XCCDF benchmark legal notice. |
| 256 | */ |
| 257 | struct xccdf_notice; |
| 258 | |
| 259 | /** |
| 260 | * @struct xccdf_status |
| 261 | * XCCDF item status. |
| 262 | */ |
| 263 | struct xccdf_status; |
| 264 | |
| 265 | /** |
| 266 | * @struct xccdf_model |
| 267 | * XCCDF scoring model. |
| 268 | */ |
| 269 | struct xccdf_model; |
| 270 | |
| 271 | /** |
| 272 | * @struct xccdf_warning |
| 273 | * XCCDF warning. |
| 274 | */ |
| 275 | struct xccdf_warning; |
| 276 | |
| 277 | /** |
| 278 | * @struct xccdf_select |
| 279 | * XCCDF select option usen in the profile. |
| 280 | */ |
| 281 | struct xccdf_select; |
| 282 | |
| 283 | /** |
| 284 | * @struct xccdf_setvalue |
| 285 | * XCCDF set value option used in the profile. |
| 286 | */ |
| 287 | struct xccdf_setvalue; |
| 288 | |
| 289 | /** |
| 290 | * @struct xccdf_refine_value |
| 291 | * XCCDF refine value option used in the profile. |
| 292 | */ |
| 293 | struct xccdf_refine_value; |
| 294 | |
| 295 | /** |
| 296 | * @struct xccdf_refine_rule |
| 297 | * XCCDF refine rule option used in the profile. |
| 298 | */ |
| 299 | struct xccdf_refine_rule; |
| 300 | |
| 301 | /** |
| 302 | * @struct xccdf_ident |
| 303 | * XCCDF rule ident URI. |
| 304 | */ |
| 305 | struct xccdf_ident; |
| 306 | |
| 307 | /** |
| 308 | * @struct xccdf_check |
| 309 | * XCCDF simple or complex check. |
| 310 | */ |
| 311 | struct xccdf_check; |
| 312 | /** |
| 313 | * @struct xccdf_check_content_ref |
| 314 | * XCCDF check content reference. |
| 315 | */ |
| 316 | struct xccdf_check_content_ref; |
| 317 | |
| 318 | /** |
| 319 | * @struct xccdf_profile_note |
| 320 | * XCCDF note for given rule in context of given profile. |
| 321 | */ |
| 322 | struct xccdf_profile_note; |
| 323 | |
| 324 | /** |
| 325 | * @struct xccdf_check_import |
| 326 | * XCCDF check import. |
| 327 | * @see xccdf_check |
| 328 | */ |
| 329 | struct xccdf_check_import; |
| 330 | |
| 331 | /** |
| 332 | * @struct xccdf_check_export |
| 333 | * XCCDF check export. |
| 334 | * @see xccdf_check |
| 335 | */ |
| 336 | struct xccdf_check_export; |
| 337 | |
| 338 | /** |
| 339 | * @struct xccdf_fix |
| 340 | * XCCDF automatic fix. |
| 341 | * @see xccdf_rule |
| 342 | */ |
| 343 | struct xccdf_fix; |
| 344 | |
| 345 | /** |
| 346 | * @struct xccdf_fixtext |
| 347 | * XCCDF textual fix instructions. |
| 348 | * @see xccdf_rule |
| 349 | */ |
| 350 | struct xccdf_fixtext; |
| 351 | |
| 352 | /** |
| 353 | * &struct xccdf_value_instance |
| 354 | * XCCDF value instance. |
| 355 | * |
| 356 | * Represents single value (i.e. value properties tied to given selector) |
| 357 | * @see xccdf_value |
| 358 | */ |
| 359 | struct xccdf_value_instance; |
| 360 | |
| 361 | /** |
| 362 | * @struct xccdf_identity |
| 363 | * XCCDF identity. |
| 364 | * @see xccdf_result |
| 365 | */ |
| 366 | struct xccdf_identity; |
| 367 | |
| 368 | /** |
| 369 | * @struct xccdf_instance |
| 370 | * XCCDF instance. |
| 371 | * @see xccdf_rule_result |
| 372 | */ |
| 373 | struct xccdf_instance; |
| 374 | |
| 375 | /** |
| 376 | * @struct xccdf_message |
| 377 | * XCCDF message. |
| 378 | * @see xccdf_rule_result |
| 379 | */ |
| 380 | struct xccdf_message; |
| 381 | |
| 382 | /** |
| 383 | * @struct xccdf_override |
| 384 | * XCCDF override. |
| 385 | * @see xccdf_rule_result |
| 386 | */ |
| 387 | struct xccdf_override; |
| 388 | |
| 389 | /** |
| 390 | * @struct xccdf_rule_result |
| 391 | * XCCDF rule result. |
| 392 | * @see xccdf_result |
| 393 | */ |
| 394 | struct xccdf_rule_result; |
| 395 | |
| 396 | /** |
| 397 | * @struct xccdf_score |
| 398 | * XCCDF score. |
| 399 | * @see xccdf_result |
| 400 | */ |
| 401 | struct xccdf_score; |
| 402 | |
| 403 | /** |
| 404 | * @struct xccdf_target_fact |
| 405 | * XCCDF target fact. |
| 406 | * @see xccdf_result |
| 407 | */ |
| 408 | struct xccdf_target_fact; |
| 409 | |
| 410 | /** |
| 411 | * @struct xccdf_target_identifier |
| 412 | * Can be either <target-id-ref> or some other element. |
| 413 | * @see xccdf_result |
| 414 | * @note XCCDF 1.2+ only |
| 415 | */ |
| 416 | struct xccdf_target_identifier; |
| 417 | |
| 418 | /** |
| 419 | * @struct xccdf_plain_text |
| 420 | * XCCDF target fact. |
| 421 | * @see xccdf_result |
| 422 | */ |
| 423 | struct xccdf_plain_text; |
| 424 | |
| 425 | /** |
| 426 | * @struct xccdf_item_iterator |
| 427 | * String iterator. |
| 428 | * @see oscap_iterator |
| 429 | */ |
| 430 | struct xccdf_item_iterator; |
| 431 | |
| 432 | /** |
| 433 | * @struct xccdf_notice_iterator |
| 434 | * Notice iterator. |
| 435 | * @see oscap_iterator |
| 436 | */ |
| 437 | struct xccdf_notice_iterator; |
| 438 | |
| 439 | /** |
| 440 | * @struct xccdf_status_iterator |
| 441 | * Status iterator. |
| 442 | * @see oscap_iterator |
| 443 | */ |
| 444 | struct xccdf_status_iterator; |
| 445 | |
| 446 | /** |
| 447 | * @struct xccdf_identity_iterator |
| 448 | * Reference iterator. |
| 449 | * @see oscap_iterator |
| 450 | */ |
| 451 | struct xccdf_identity_iterator; |
| 452 | |
| 453 | /** |
| 454 | * @struct xccdf_model_iterator |
| 455 | * Model iterator. |
| 456 | * @see oscap_iterator |
| 457 | */ |
| 458 | struct xccdf_model_iterator; |
| 459 | |
| 460 | /** |
| 461 | * @struct xccdf_result_iterator |
| 462 | * Result iterator. |
| 463 | * @see oscap_iterator |
| 464 | */ |
| 465 | struct xccdf_result_iterator; |
| 466 | |
| 467 | /** |
| 468 | * @struct xccdf_profile_iterator |
| 469 | * Profile iterator. |
| 470 | * @see oscap_iterator |
| 471 | */ |
| 472 | struct xccdf_profile_iterator; |
| 473 | |
| 474 | /** |
| 475 | * @struct xccdf_select_iterator |
| 476 | * Select iterator. |
| 477 | * @see oscap_iterator |
| 478 | */ |
| 479 | struct xccdf_select_iterator; |
| 480 | |
| 481 | /** |
| 482 | * @struct xccdf_value_iterator |
| 483 | * Select iterator. |
| 484 | * @see oscap_iterator |
| 485 | */ |
| 486 | struct xccdf_value_iterator; |
| 487 | |
| 488 | /** |
| 489 | * @struct xccdf_setvalue_iterator |
| 490 | * Set value iterator. |
| 491 | * @see oscap_iterator |
| 492 | */ |
| 493 | struct xccdf_setvalue_iterator; |
| 494 | |
| 495 | /** @struct xccdf_refine_value_iterator |
| 496 | * Refine value iterator. |
| 497 | * @see oscap_iterator |
| 498 | */ |
| 499 | struct xccdf_refine_value_iterator; |
| 500 | |
| 501 | /** |
| 502 | * @struct xccdf_refine_rule_iterator |
| 503 | * Refine rule iterator. |
| 504 | * @see oscap_iterator |
| 505 | */ |
| 506 | struct xccdf_refine_rule_iterator; |
| 507 | |
| 508 | /** |
| 509 | * @struct xccdf_ident_iterator |
| 510 | * Ident iterator. |
| 511 | * @see oscap_iterator |
| 512 | */ |
| 513 | struct xccdf_ident_iterator; |
| 514 | |
| 515 | /** |
| 516 | * @struct xccdf_check_iterator |
| 517 | * Check iterator. |
| 518 | * @see oscap_iterator |
| 519 | */ |
| 520 | struct xccdf_check_iterator; |
| 521 | |
| 522 | /** |
| 523 | * @struct xccdf_profile_note_iterator |
| 524 | * Profile note iterator. |
| 525 | * @see oscap_iterator |
| 526 | */ |
| 527 | struct xccdf_profile_note_iterator; |
| 528 | |
| 529 | /** |
| 530 | * @struct xccdf_fixtext_iterator |
| 531 | * Textual fix iterator. |
| 532 | * @see oscap_iterator |
| 533 | */ |
| 534 | struct xccdf_fixtext_iterator; |
| 535 | |
| 536 | /** |
| 537 | * @struct xccdf_check_content_ref_iterator |
| 538 | * Check content references iterator. |
| 539 | * @see oscap_iterator |
| 540 | */ |
| 541 | struct xccdf_check_content_ref_iterator; |
| 542 | |
| 543 | /** |
| 544 | * @struct xccdf_check_import_iterator |
| 545 | * Check import iterator. |
| 546 | * @see oscap_iterator |
| 547 | */ |
| 548 | struct xccdf_check_import_iterator; |
| 549 | |
| 550 | /** |
| 551 | * @struct xccdf_fix_iterator |
| 552 | * Fix iterator. |
| 553 | * @see oscap_iterator |
| 554 | */ |
| 555 | struct xccdf_fix_iterator; |
| 556 | |
| 557 | /** |
| 558 | * @struct xccdf_check_export_iterator |
| 559 | * Check export iterator. |
| 560 | * @see oscap_iterator |
| 561 | */ |
| 562 | struct xccdf_check_export_iterator; |
| 563 | |
| 564 | /** |
| 565 | * @struct xccdf_warning_iterator |
| 566 | * Warning iterator. |
| 567 | * @see oscap_iterator |
| 568 | */ |
| 569 | struct xccdf_warning_iterator; |
| 570 | |
| 571 | /** |
| 572 | * @struct xccdf_instance_iterator |
| 573 | * Instance iterator. |
| 574 | * @see oscap_iterator |
| 575 | */ |
| 576 | struct xccdf_instance_iterator; |
| 577 | |
| 578 | /** |
| 579 | * @struct xccdf_message_iterator |
| 580 | * Message iterator. |
| 581 | * @see oscap_iterator |
| 582 | */ |
| 583 | struct xccdf_message_iterator; |
| 584 | |
| 585 | /** |
| 586 | * @struct xccdf_override_iterator |
| 587 | * Override iterator. |
| 588 | * @see oscap_iterator |
| 589 | */ |
| 590 | struct xccdf_override_iterator; |
| 591 | |
| 592 | /** |
| 593 | * @struct xccdf_rule_result_iterator |
| 594 | * Override iterator. |
| 595 | * @see oscap_iterator |
| 596 | */ |
| 597 | struct xccdf_rule_result_iterator; |
| 598 | |
| 599 | /** |
| 600 | * @struct xccdf_value_instance_iterator |
| 601 | * Value instance iterator. |
| 602 | * @see oscap_iterator |
| 603 | */ |
| 604 | struct xccdf_value_instance_iterator; |
| 605 | |
| 606 | /** |
| 607 | * @struct xccdf_score_iterator |
| 608 | * Override iterator. |
| 609 | * @see oscap_iterator |
| 610 | */ |
| 611 | struct xccdf_score_iterator; |
| 612 | |
| 613 | /** |
| 614 | * @struct xccdf_target_fact_iterator |
| 615 | * Override iterator. |
| 616 | * @see oscap_iterator |
| 617 | */ |
| 618 | struct xccdf_target_fact_iterator; |
| 619 | |
| 620 | /** |
| 621 | * @struct xccdf_target_identifier_iterator |
| 622 | * Override iterator. |
| 623 | * @see oscap_iterator |
| 624 | */ |
| 625 | struct xccdf_target_identifier_iterator; |
| 626 | |
| 627 | /** |
| 628 | * @struct xccdf_plain_text_iterator |
| 629 | * Plain text iterator. |
| 630 | * @see oscap_iterator |
| 631 | */ |
| 632 | struct xccdf_plain_text_iterator; |
| 633 | |
| 634 | /** |
| 635 | * Groups info about XCCDF spec versions, namespace, CPE version, etc... |
| 636 | */ |
| 637 | struct xccdf_version_info; |
| 638 | |
| 639 | /// @memberof xccdf_version_info |
| 640 | OSCAP_API const char* xccdf_version_info_get_version(const struct xccdf_version_info* v); |
| 641 | /// @memberof xccdf_version_info |
| 642 | OSCAP_API const char* xccdf_version_info_get_namespace_uri(const struct xccdf_version_info* v); |
| 643 | /// @memberof xccdf_version_info |
| 644 | OSCAP_API const char* xccdf_version_info_get_cpe_version(const struct xccdf_version_info* v); |
| 645 | |
| 646 | /************************************************************/ |
| 647 | |
| 648 | /// @memberof xccdf_item |
| 649 | OSCAP_API void xccdf_item_free(struct xccdf_item *item); |
| 650 | |
| 651 | /// @memberof xccdf_item |
| 652 | OSCAP_API struct xccdf_item * xccdf_item_clone(const struct xccdf_item * old_item); |
| 653 | |
| 654 | /** |
| 655 | * Convert the item to a benchmark. |
| 656 | * @memberof xccdf_item |
| 657 | * @return Pointer to this item as the benchmark. |
| 658 | * @retval NULL on faliure (e.g. item is not a benchmark) |
| 659 | */ |
| 660 | OSCAP_API struct xccdf_benchmark* xccdf_item_to_benchmark(struct xccdf_item* item); |
| 661 | |
| 662 | /** |
| 663 | * Convert the item to a profile. |
| 664 | * @memberof xccdf_item |
| 665 | * @return Pointer to this item as the profile. |
| 666 | * @retval NULL on faliure (e.g. item is not a profile) |
| 667 | */ |
| 668 | OSCAP_API struct xccdf_profile* xccdf_item_to_profile(struct xccdf_item* item); |
| 669 | |
| 670 | /** |
| 671 | * Convert the item to a rule. |
| 672 | * @memberof xccdf_item |
| 673 | * @return Pointer to this item as the rule. |
| 674 | * @retval NULL on faliure (e.g. item is not a rule) |
| 675 | */ |
| 676 | OSCAP_API struct xccdf_rule* xccdf_item_to_rule(struct xccdf_item* item); |
| 677 | |
| 678 | /** |
| 679 | * Convert the item to a group. |
| 680 | * @memberof xccdf_item |
| 681 | * @return Pointer to this item as the group. |
| 682 | * @retval NULL on faliure (e.g. item is not a group) |
| 683 | */ |
| 684 | OSCAP_API struct xccdf_group* xccdf_item_to_group(struct xccdf_item* item); |
| 685 | |
| 686 | /** |
| 687 | * Convert the item to a value. |
| 688 | * @memberof xccdf_item |
| 689 | * @return Pointer to this item as the value. |
| 690 | * @retval NULL on faliure (e.g. item is not a value) |
| 691 | */ |
| 692 | OSCAP_API struct xccdf_value* xccdf_item_to_value(struct xccdf_item* item); |
| 693 | |
| 694 | /** |
| 695 | * Convert the item to a test result. |
| 696 | * @memberof xccdf_item |
| 697 | * @return Pointer to this item as the test result. |
| 698 | * @retval NULL on faliure (e.g. item is not a test result) |
| 699 | */ |
| 700 | OSCAP_API struct xccdf_result* xccdf_item_to_result(struct xccdf_item* item); |
| 701 | |
| 702 | /** |
| 703 | * Import the content from oscap_source into a benchmark |
| 704 | * @memberof xccdf_benchmark |
| 705 | * @param source The oscap_source to import from |
| 706 | * @returns newly created benchmark element or NULL |
| 707 | */ |
| 708 | OSCAP_API struct xccdf_benchmark* xccdf_benchmark_import_source(struct oscap_source *source); |
| 709 | |
| 710 | /** |
| 711 | * Export a benchmark to an XML stream |
| 712 | * @memberof xccdf_benchmark |
| 713 | * @return Integer |
| 714 | * @retval -1 if error occurred |
| 715 | */ |
| 716 | OSCAP_API int xccdf_benchmark_export(struct xccdf_benchmark *benchmark, const char *file); |
| 717 | |
| 718 | /** |
| 719 | * Export a benchmark to a source object |
| 720 | * @memberof xccdf_benchmark |
| 721 | * @returns newly created source object or NULL |
| 722 | */ |
| 723 | OSCAP_API struct oscap_source *xccdf_benchmark_export_source(struct xccdf_benchmark *benchmark, const char *filename); |
| 724 | |
| 725 | /** |
| 726 | * Import the content of oscap_source into a xccdf_result |
| 727 | * @memberof xccdf_result |
| 728 | * @param source The oscap_source to import from |
| 729 | * @returns newly created test-result element or NULL on error |
| 730 | */ |
| 731 | OSCAP_API struct xccdf_result *xccdf_result_import_source(struct oscap_source *source); |
| 732 | |
| 733 | /** |
| 734 | * Collect system info and store it in the TestResult. |
| 735 | * @memberof xccdf_result |
| 736 | */ |
| 737 | OSCAP_API void xccdf_result_fill_sysinfo(struct xccdf_result *result); |
| 738 | |
| 739 | /** |
| 740 | * Export TestResult to oscap_source structure |
| 741 | * @memberof xccdf_result |
| 742 | * @returns newly created oscap_source or NULL on error |
| 743 | */ |
| 744 | OSCAP_API struct oscap_source *xccdf_result_export_source(struct xccdf_result *result, const char *filepath); |
| 745 | |
| 746 | /** |
| 747 | * Export TestResult to oscap_source structure using STIG Rule IDs instead of the actual rule ids |
| 748 | * @memberof xccdf_result |
| 749 | * @returns newly created oscap_source or NULL on error |
| 750 | */ |
| 751 | OSCAP_API struct oscap_source *xccdf_result_stig_viewer_export_source(struct xccdf_result *result, const char *filepath); |
| 752 | |
| 753 | /** |
| 754 | * Resolve an benchmark. |
| 755 | * @returns whether the resolving process has been successful |
| 756 | * @retval true on success |
| 757 | * @retval false on dependency loop |
| 758 | */ |
| 759 | OSCAP_API bool xccdf_benchmark_resolve(struct xccdf_benchmark *benchmark); |
| 760 | |
| 761 | /// @memberof xccdf_benchmark |
| 762 | OSCAP_API struct xccdf_benchmark *xccdf_benchmark_new(void); |
| 763 | /// @memberof xccdf_benchmark |
| 764 | OSCAP_API void xccdf_benchmark_free(struct xccdf_benchmark *benchmark); |
| 765 | /// @memberof xccdf_benchmark |
| 766 | OSCAP_API struct xccdf_item *xccdf_benchmark_to_item(struct xccdf_benchmark *item); |
| 767 | /// @memberof xccdf_benchmark |
| 768 | OSCAP_API struct xccdf_benchmark * xccdf_benchmark_clone( const struct xccdf_benchmark * benchmark ); |
| 769 | |
| 770 | /** |
| 771 | * Get supported version of XCCDF XML |
| 772 | * @return version of XML file format |
| 773 | * @memberof xccdf_benchmark |
| 774 | */ |
| 775 | OSCAP_API const char * xccdf_benchmark_supported(void); |
| 776 | |
| 777 | /// @memberof xccdf_benchmark |
| 778 | OSCAP_API const struct xccdf_version_info *xccdf_benchmark_supported_schema_version(void); |
| 779 | |
| 780 | /// @memberof xccdf_profile |
| 781 | OSCAP_API struct xccdf_profile *xccdf_profile_new(void); |
| 782 | /// @memberof xccdf_profile |
| 783 | OSCAP_API void xccdf_profile_free(struct xccdf_item *prof); |
| 784 | /// @memberof xccdf_profile |
| 785 | OSCAP_API struct xccdf_item *xccdf_profile_to_item(struct xccdf_profile *item); |
| 786 | /// @memberof xccdf_profile |
| 787 | OSCAP_API struct xccdf_profile * xccdf_profile_clone( const struct xccdf_profile * profile); |
| 788 | |
| 789 | /// @memberof xccdf_rule |
| 790 | OSCAP_API struct xccdf_rule *xccdf_rule_new(void); |
| 791 | /// @memberof xccdf_rule |
| 792 | OSCAP_API void xccdf_rule_free(struct xccdf_item *rule); |
| 793 | /// @memberof xccdf_rule |
| 794 | OSCAP_API struct xccdf_item *xccdf_rule_to_item(struct xccdf_rule *item); |
| 795 | /// @memberof xccdf_rule |
| 796 | OSCAP_API struct xccdf_rule * xccdf_rule_clone(const struct xccdf_rule * rule); |
| 797 | |
| 798 | /// @memberof xccdf_group |
| 799 | OSCAP_API struct xccdf_group *xccdf_group_new(void); |
| 800 | /// @memberof xccdf_group |
| 801 | OSCAP_API void xccdf_group_free(struct xccdf_item *group); |
| 802 | /// @memberof xccdf_group |
| 803 | OSCAP_API struct xccdf_item *xccdf_group_to_item(struct xccdf_group *item); |
| 804 | /// @memberof xccdf_group |
| 805 | OSCAP_API struct xccdf_group * xccdf_group_clone(const struct xccdf_group * group); |
| 806 | |
| 807 | /// @memberof xccdf_value |
| 808 | OSCAP_API struct xccdf_value *xccdf_value_new(xccdf_value_type_t type); |
| 809 | /// @memberof xccdf_value |
| 810 | OSCAP_API void xccdf_value_free(struct xccdf_item *val); |
| 811 | /// @memberof xccdf_value |
| 812 | OSCAP_API struct xccdf_item *xccdf_value_to_item(struct xccdf_value *item); |
| 813 | /// @memberof xccdf_value |
| 814 | OSCAP_API struct xccdf_value * xccdf_value_clone(const struct xccdf_value * value); |
| 815 | |
| 816 | /// @memberof xccdf_status |
| 817 | OSCAP_API struct xccdf_status *xccdf_status_new(void); |
| 818 | /// @memberof xccdf_status |
| 819 | OSCAP_API struct xccdf_status * xccdf_status_clone(const struct xccdf_status * old_status); |
| 820 | /// @memberof xccdf_status |
| 821 | OSCAP_API struct xccdf_status *xccdf_status_new_fill(const char *status, const char *date); |
| 822 | /// @memberof xccdf_status |
| 823 | OSCAP_API void xccdf_status_free(struct xccdf_status *status); |
| 824 | /// @memberof xccdf_notice |
| 825 | OSCAP_API struct xccdf_notice *xccdf_notice_new(void); |
| 826 | /// @memberof xccdf_notice |
| 827 | OSCAP_API void xccdf_notice_free(struct xccdf_notice *notice); |
| 828 | /// @memberof xccdf_notice |
| 829 | OSCAP_API struct xccdf_notice * xccdf_notice_clone(const struct xccdf_notice * notice); |
| 830 | |
| 831 | /// @memberof xccdf_model |
| 832 | OSCAP_API struct xccdf_model *xccdf_model_new(void); |
| 833 | /// @memberof xccdf_model |
| 834 | OSCAP_API struct xccdf_model * xccdf_model_clone(const struct xccdf_model * old_model); |
| 835 | /// @memberof xccdf_model |
| 836 | OSCAP_API void xccdf_model_free(struct xccdf_model *model); |
| 837 | |
| 838 | /// @memberof xccdf_ident |
| 839 | OSCAP_API struct xccdf_ident *xccdf_ident_new(void); |
| 840 | /// @memberof xccdf_ident |
| 841 | OSCAP_API struct xccdf_ident *xccdf_ident_new_fill(const char *id, const char *sys); |
| 842 | /// @memberof xccdf_ident |
| 843 | OSCAP_API struct xccdf_ident *xccdf_ident_clone(const struct xccdf_ident * ident); |
| 844 | /// @memberof xccdf_ident |
| 845 | OSCAP_API void xccdf_ident_free(struct xccdf_ident *ident); |
| 846 | |
| 847 | |
| 848 | /// @memberof xccdf_check |
| 849 | OSCAP_API struct xccdf_check *xccdf_check_new(void); |
| 850 | /// @memberof xccdf_check |
| 851 | OSCAP_API void xccdf_check_free(struct xccdf_check *check); |
| 852 | |
| 853 | /// @memberof xccdf_check |
| 854 | OSCAP_API struct xccdf_check *xccdf_check_clone(const struct xccdf_check *old_check); |
| 855 | /// @memberof xccdf_check_import |
| 856 | OSCAP_API struct xccdf_check_import *xccdf_check_import_clone(const struct xccdf_check_import *old_import); |
| 857 | /// @memberof xccdf_check_export |
| 858 | OSCAP_API struct xccdf_check_export *xccdf_check_export_clone(const struct xccdf_check_export *old_export); |
| 859 | /// @memberof xccdf_check_content_ref |
| 860 | OSCAP_API struct xccdf_check_content_ref *xccdf_check_content_ref_clone(const struct xccdf_check_content_ref *old_ref); |
| 861 | |
| 862 | /// @memberof xccdf_check_content_ref |
| 863 | OSCAP_API struct xccdf_check_content_ref *xccdf_check_content_ref_new(void); |
| 864 | /// @memberof xccdf_check_content_ref |
| 865 | OSCAP_API void xccdf_check_content_ref_free(struct xccdf_check_content_ref *ref); |
| 866 | |
| 867 | /// @memberof xccdf_profile_note |
| 868 | OSCAP_API struct xccdf_profile_note *xccdf_profile_note_new(void); |
| 869 | /// @memberof xccdf_profile_note |
| 870 | OSCAP_API void xccdf_profile_note_free(struct xccdf_profile_note *note); |
| 871 | |
| 872 | /// @memberof xccdf_check_import |
| 873 | OSCAP_API struct xccdf_check_import *xccdf_check_import_new(void); |
| 874 | /// @memberof xccdf_check_import |
| 875 | OSCAP_API void xccdf_check_import_free(struct xccdf_check_import *item); |
| 876 | |
| 877 | /// @memberof xccdf_check_export |
| 878 | OSCAP_API struct xccdf_check_export *xccdf_check_export_new(void); |
| 879 | /// @memberof xccdf_check_export |
| 880 | OSCAP_API void xccdf_check_export_free(struct xccdf_check_export *item); |
| 881 | |
| 882 | /// @memberof xccdf_fix |
| 883 | OSCAP_API struct xccdf_fix *xccdf_fix_new(void); |
| 884 | /// @memberof xccdf_fix |
| 885 | OSCAP_API struct xccdf_fix *xccdf_fix_clone(const struct xccdf_fix *old_fix); |
| 886 | /// @memberof xccdf_fix |
| 887 | OSCAP_API void xccdf_fix_free(struct xccdf_fix *item); |
| 888 | |
| 889 | /// @memberof xccdf_fixtext |
| 890 | OSCAP_API struct xccdf_fixtext *xccdf_fixtext_new(void); |
| 891 | /// @memberof xccdf_fixtext |
| 892 | OSCAP_API struct xccdf_fixtext * xccdf_fixtext_clone(const struct xccdf_fixtext * fixtext); |
| 893 | /// @memberof xccdf_fixtext |
| 894 | OSCAP_API void xccdf_fixtext_free(struct xccdf_fixtext *item); |
| 895 | |
| 896 | /// @memberof xccdf_select |
| 897 | OSCAP_API void xccdf_select_free(struct xccdf_select *sel); |
| 898 | /// @memberof xccdf_select |
| 899 | OSCAP_API struct xccdf_select *xccdf_select_clone(const struct xccdf_select * select); |
| 900 | /// @memberof xccdf_select |
| 901 | OSCAP_API struct xccdf_select *xccdf_select_new(void); |
| 902 | |
| 903 | /// @memberof xccdf_warning |
| 904 | OSCAP_API struct xccdf_warning *xccdf_warning_new(void); |
| 905 | /// @memberof xccdf_warning |
| 906 | OSCAP_API struct xccdf_warning *xccdf_warning_clone(const struct xccdf_warning *old_warning); |
| 907 | /// @memberof xccdf_warning |
| 908 | OSCAP_API void xccdf_warning_free(struct xccdf_warning * warn); |
| 909 | |
| 910 | /// @memberof xccdf_refine_rule |
| 911 | OSCAP_API void xccdf_refine_rule_free(struct xccdf_refine_rule *obj); |
| 912 | |
| 913 | /// @memberof xccdf_refine_value |
| 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 | |
| 918 | /// @memberof xccdf_tailoring |
| 919 | OSCAP_API struct xccdf_tailoring *xccdf_tailoring_new(void); |
| 920 | /// @memberof xccdf_tailoring |
| 921 | OSCAP_API void xccdf_tailoring_free(struct xccdf_tailoring *tailoring); |
| 922 | /// @memberof xccdf_tailoring |
| 923 | OSCAP_API int xccdf_tailoring_export(struct xccdf_tailoring *tailoring, const char *file, const struct xccdf_version_info *version_info); |
| 924 | |
| 925 | /** |
| 926 | * Create a group and append it to the benchmark. |
| 927 | * @param id - the identifier of the appended value. |
| 928 | * @return the handle of the new group. |
| 929 | */ |
| 930 | OSCAP_API struct xccdf_group *xccdf_benchmark_append_new_group(struct xccdf_benchmark *, const char *id); |
| 931 | |
| 932 | /** |
| 933 | * Create a value and append it to the benchmark. |
| 934 | * @param id - the identifier of the appended value. |
| 935 | * @return the handle of the new value. |
| 936 | */ |
| 937 | OSCAP_API struct xccdf_value *xccdf_benchmark_append_new_value(struct xccdf_benchmark *, const char *id, xccdf_value_type_t type); |
| 938 | |
| 939 | /** |
| 940 | * Create a rule and append it to the benchmark. |
| 941 | * @param id - the identifier of the appended rule. |
| 942 | * @return the handle of the new rule. |
| 943 | */ |
| 944 | OSCAP_API struct xccdf_rule *xccdf_benchmark_append_new_rule(struct xccdf_benchmark *, const char *id); |
| 945 | |
| 946 | /** |
| 947 | * Match a profile suffix agains profiles present in the given benchmark. |
| 948 | * @memberof xccdf_benchmark |
| 949 | * @param bench The benchmark where to search for profiles. |
| 950 | * @param profile_suffix The profile suffix we match against. |
| 951 | * @param match_status Tells us what exactly went wrong. |
| 952 | * @returns The complete profile ID. |
| 953 | * @retval NULL is returned in case of error. Details might be found through match_status |
| 954 | */ |
| 955 | OSCAP_API const char *xccdf_benchmark_match_profile_id(struct xccdf_benchmark *bench, const char *profile_suffix, int *match_status); |
| 956 | |
| 957 | /** |
| 958 | * Match a profile suffix agains profiles present in the given benchmark. |
| 959 | * @memberof xccdf_benchmark |
| 960 | * @param tailoring The tailoring where to search for profiles. |
| 961 | * @param profile_suffix The profile suffix we match against. |
| 962 | * @param match_status Tells us what exactly went wrong. |
| 963 | * @returns The complete profile ID. |
| 964 | * @retval NULL is returned in case of error. Details might be found through match_status |
| 965 | */ |
| 966 | OSCAP_API const char *xccdf_tailoring_match_profile_id(struct xccdf_tailoring *tailoring, const char *profile_suffix, int *match_status); |
| 967 | |
| 968 | /// @memberof xccdf_plain_text |
| 969 | OSCAP_API struct xccdf_plain_text *xccdf_plain_text_new(void); |
| 970 | /// @memberof xccdf_plain_text |
| 971 | OSCAP_API struct xccdf_plain_text *xccdf_plain_text_new_fill(const char *id, const char *text); |
| 972 | /// @memberof xccdf_plain_text |
| 973 | OSCAP_API void xccdf_plain_text_free(struct xccdf_plain_text *plain); |
| 974 | /// @memberof xccdf_plain_text |
| 975 | OSCAP_API struct xccdf_plain_text *xccdf_plain_text_clone(const struct xccdf_plain_text * pt); |
| 976 | |
| 977 | /// @memberof xccdf_result |
| 978 | OSCAP_API struct xccdf_result *xccdf_result_new(void); |
| 979 | /// @memberof xccdf_result |
| 980 | OSCAP_API void xccdf_result_free(struct xccdf_result *item); |
| 981 | /// @memberof xccdf_result |
| 982 | OSCAP_API struct xccdf_item *xccdf_result_to_item(struct xccdf_result *item); |
| 983 | /// @memberof xccdf_result |
| 984 | OSCAP_API struct xccdf_result * xccdf_result_clone(const struct xccdf_result * result); |
| 985 | |
| 986 | /// @memberof xccdf_rule_result |
| 987 | OSCAP_API struct xccdf_rule_result *xccdf_rule_result_new(void); |
| 988 | /// @memberof xccdf_rule_result |
| 989 | OSCAP_API struct xccdf_rule_result * xccdf_rule_result_clone(const struct xccdf_rule_result * result); |
| 990 | /// @memberof xccdf_rule_result |
| 991 | OSCAP_API void xccdf_rule_result_free(struct xccdf_rule_result *rr); |
| 992 | |
| 993 | /// @memberof xccdf_identity |
| 994 | OSCAP_API struct xccdf_identity *xccdf_identity_new(void); |
| 995 | /// @memberof xccdf_identity |
| 996 | OSCAP_API struct xccdf_identity * xccdf_identity_clone(const struct xccdf_identity * identity); |
| 997 | /// @memberof xccdf_identity |
| 998 | OSCAP_API void xccdf_identity_free(struct xccdf_identity *identity); |
| 999 | |
| 1000 | /// @memberof xccdf_score |
| 1001 | OSCAP_API struct xccdf_score *xccdf_score_new(void); |
| 1002 | /// @memberof xccdf_score |
| 1003 | OSCAP_API struct xccdf_score * xccdf_score_clone(const struct xccdf_score * score); |
| 1004 | /// @memberof xccdf_score |
| 1005 | OSCAP_API void xccdf_score_free(struct xccdf_score *score); |
| 1006 | |
| 1007 | /// @memberof xccdf_override |
| 1008 | OSCAP_API struct xccdf_override *xccdf_override_new(void); |
| 1009 | /// @memberof xccdf_override |
| 1010 | OSCAP_API struct xccdf_override * xccdf_override_clone(const struct xccdf_override * override); |
| 1011 | /// @memberof xccdf_override |
| 1012 | OSCAP_API void xccdf_override_free(struct xccdf_override *oride); |
| 1013 | |
| 1014 | /// @memberof xccdf_message |
| 1015 | OSCAP_API struct xccdf_message *xccdf_message_new(void); |
| 1016 | /// @memberof xccdf_message |
| 1017 | OSCAP_API struct xccdf_message * xccdf_message_clone(const struct xccdf_message * message); |
| 1018 | /// @memberof xccdf_message |
| 1019 | OSCAP_API void xccdf_message_free(struct xccdf_message *msg); |
| 1020 | |
| 1021 | /// @memberof xccdf_target_fact |
| 1022 | OSCAP_API struct xccdf_target_fact *xccdf_target_fact_new(void); |
| 1023 | /// @memberof xccdf_target_fact |
| 1024 | OSCAP_API struct xccdf_target_fact * xccdf_target_fact_clone(const struct xccdf_target_fact * tf); |
| 1025 | /// @memberof xccdf_target_fact |
| 1026 | OSCAP_API void xccdf_target_fact_free(struct xccdf_target_fact *fact); |
| 1027 | |
| 1028 | /// @memberof xccdf_target_identifier |
| 1029 | OSCAP_API struct xccdf_target_identifier *xccdf_target_identifier_new(void); |
| 1030 | /// @memberof xccdf_target_identifier |
| 1031 | OSCAP_API struct xccdf_target_identifier * xccdf_target_identifier_clone(const struct xccdf_target_identifier * ti); |
| 1032 | /// @memberof xccdf_target_identifier |
| 1033 | OSCAP_API void xccdf_target_identifier_free(struct xccdf_target_identifier *ti); |
| 1034 | |
| 1035 | /// @memberof xccdf_instance |
| 1036 | OSCAP_API struct xccdf_instance *xccdf_instance_new(void); |
| 1037 | /// @memberof xccdf_instance |
| 1038 | OSCAP_API struct xccdf_instance * xccdf_instance_clone(const struct xccdf_instance * instance); |
| 1039 | /// @memberof xccdf_instance |
| 1040 | OSCAP_API void xccdf_instance_free(struct xccdf_instance *inst); |
| 1041 | |
| 1042 | /// @memberof xccdf_value_instance |
| 1043 | OSCAP_API struct oscap_string_iterator *xccdf_value_instance_get_choices(const struct xccdf_value_instance *item); |
| 1044 | |
| 1045 | /************************************************************/ |
| 1046 | /** |
| 1047 | * @name Iterators |
| 1048 | * @{ |
| 1049 | * */ |
| 1050 | |
| 1051 | /** |
| 1052 | * Return the next xccdf_item structure from the list and increment the iterator |
| 1053 | * @memberof xccdf_item_iterator |
| 1054 | */ |
| 1055 | OSCAP_API struct xccdf_item *xccdf_item_iterator_next(struct xccdf_item_iterator *it); |
| 1056 | /** |
| 1057 | * Return true if the list is not empty, false otherwise |
| 1058 | * @memberof xccdf_item_iterator |
| 1059 | */ |
| 1060 | OSCAP_API bool xccdf_item_iterator_has_more(struct xccdf_item_iterator *it); |
| 1061 | /** |
| 1062 | * Free the iterator structure (it makes no changes to the list structure) |
| 1063 | * @memberof xccdf_item_iterator |
| 1064 | */ |
| 1065 | OSCAP_API void xccdf_item_iterator_free(struct xccdf_item_iterator *it); |
| 1066 | /** |
| 1067 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1068 | * @memberof xccdf_item_iterator |
| 1069 | */ |
| 1070 | OSCAP_API void xccdf_item_iterator_reset(struct xccdf_item_iterator *it); |
| 1071 | |
| 1072 | |
| 1073 | /** |
| 1074 | * Return the next xccdf_notice structure from the list and increment the iterator |
| 1075 | * @memberof xccdf_notice_iterator |
| 1076 | */ |
| 1077 | OSCAP_API struct xccdf_notice *xccdf_notice_iterator_next(struct xccdf_notice_iterator *it); |
| 1078 | /** |
| 1079 | * Return true if the list is not empty, false otherwise |
| 1080 | * @memberof xccdf_notice_iterator |
| 1081 | */ |
| 1082 | OSCAP_API bool xccdf_notice_iterator_has_more(struct xccdf_notice_iterator *it); |
| 1083 | /** |
| 1084 | * Free the iterator structure (it makes no changes to the list structure) |
| 1085 | * @memberof xccdf_notice_iterator |
| 1086 | */ |
| 1087 | OSCAP_API void xccdf_notice_iterator_free(struct xccdf_notice_iterator *it); |
| 1088 | /** |
| 1089 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1090 | * @memberof xccdf_notice_iterator |
| 1091 | */ |
| 1092 | OSCAP_API void xccdf_notice_iterator_reset(struct xccdf_notice_iterator *it); |
| 1093 | |
| 1094 | |
| 1095 | /** |
| 1096 | * Return the next xccdf_status structure from the list and increment the iterator |
| 1097 | * @memberof xccdf_status_iterator |
| 1098 | */ |
| 1099 | OSCAP_API struct xccdf_status *xccdf_status_iterator_next(struct xccdf_status_iterator *it); |
| 1100 | /** |
| 1101 | * Return true if the list is not empty, false otherwise |
| 1102 | * @memberof xccdf_status_iterator |
| 1103 | */ |
| 1104 | OSCAP_API bool xccdf_status_iterator_has_more(struct xccdf_status_iterator *it); |
| 1105 | /** |
| 1106 | * Free the iterator structure (it makes no changes to the list structure) |
| 1107 | * @memberof xccdf_status_iterator |
| 1108 | */ |
| 1109 | OSCAP_API void xccdf_status_iterator_free(struct xccdf_status_iterator *it); |
| 1110 | /** |
| 1111 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1112 | * @memberof xccdf_status_iterator |
| 1113 | */ |
| 1114 | OSCAP_API void xccdf_status_iterator_reset(struct xccdf_status_iterator *it); |
| 1115 | |
| 1116 | |
| 1117 | /** |
| 1118 | * Return the next xccdf_model structure from the list and increment the iterator |
| 1119 | * @memberof xccdf_model_iterator |
| 1120 | */ |
| 1121 | OSCAP_API struct xccdf_model *xccdf_model_iterator_next(struct xccdf_model_iterator *it); |
| 1122 | /** |
| 1123 | * Return true if the list is not empty, false otherwise |
| 1124 | * @memberof xccdf_model_iterator |
| 1125 | */ |
| 1126 | OSCAP_API bool xccdf_model_iterator_has_more(struct xccdf_model_iterator *it); |
| 1127 | /** |
| 1128 | * Free the iterator structure (it makes no changes to the list structure) |
| 1129 | * @memberof xccdf_model_iterator |
| 1130 | */ |
| 1131 | OSCAP_API void xccdf_model_iterator_free(struct xccdf_model_iterator *it); |
| 1132 | /** |
| 1133 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1134 | * @memberof xccdf_model_iterator |
| 1135 | */ |
| 1136 | OSCAP_API void xccdf_model_iterator_reset(struct xccdf_model_iterator *it); |
| 1137 | |
| 1138 | |
| 1139 | /** |
| 1140 | * Return the next xccdf_result structure from the list and increment the iterator |
| 1141 | * @memberof xccdf_result_iterator |
| 1142 | */ |
| 1143 | OSCAP_API struct xccdf_result *xccdf_result_iterator_next(struct xccdf_result_iterator *it); |
| 1144 | /** |
| 1145 | * Return true if the list is not empty, false otherwise |
| 1146 | * @memberof xccdf_result_iterator |
| 1147 | */ |
| 1148 | OSCAP_API bool xccdf_result_iterator_has_more(struct xccdf_result_iterator *it); |
| 1149 | /** |
| 1150 | * Free the iterator structure (it makes no changes to the list structure) |
| 1151 | * @memberof xccdf_result_iterator |
| 1152 | */ |
| 1153 | OSCAP_API void xccdf_result_iterator_free(struct xccdf_result_iterator *it); |
| 1154 | /** |
| 1155 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1156 | * @memberof xccdf_result_iterator |
| 1157 | */ |
| 1158 | OSCAP_API void xccdf_result_iterator_reset(struct xccdf_result_iterator *it); |
| 1159 | |
| 1160 | |
| 1161 | /** |
| 1162 | * Return the next xccdf_profile structure from the list and increment the iterator |
| 1163 | * @memberof xccdf_profile_iterator |
| 1164 | */ |
| 1165 | OSCAP_API struct xccdf_profile *xccdf_profile_iterator_next(struct xccdf_profile_iterator *it); |
| 1166 | /** |
| 1167 | * Return true if the list is not empty, false otherwise |
| 1168 | * @memberof xccdf_profile_iterator |
| 1169 | */ |
| 1170 | OSCAP_API bool xccdf_profile_iterator_has_more(struct xccdf_profile_iterator *it); |
| 1171 | /** |
| 1172 | * Free the iterator structure (it makes no changes to the list structure) |
| 1173 | * @memberof xccdf_profile_iterator |
| 1174 | */ |
| 1175 | OSCAP_API void xccdf_profile_iterator_free(struct xccdf_profile_iterator *it); |
| 1176 | /** |
| 1177 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1178 | * @memberof xccdf_profile_iterator |
| 1179 | */ |
| 1180 | OSCAP_API void xccdf_profile_iterator_reset(struct xccdf_profile_iterator *it); |
| 1181 | |
| 1182 | |
| 1183 | /** |
| 1184 | * Return the next xccdf_select structure from the list and increment the iterator |
| 1185 | * @memberof xccdf_select_iterator |
| 1186 | */ |
| 1187 | OSCAP_API struct xccdf_select *xccdf_select_iterator_next(struct xccdf_select_iterator *it); |
| 1188 | /** |
| 1189 | * Return true if the list is not empty, false otherwise |
| 1190 | * @memberof xccdf_select_iterator |
| 1191 | */ |
| 1192 | OSCAP_API bool xccdf_select_iterator_has_more(struct xccdf_select_iterator *it); |
| 1193 | /** |
| 1194 | * Free the iterator structure (it makes no changes to the list structure) |
| 1195 | * @memberof xccdf_select_iterator |
| 1196 | */ |
| 1197 | OSCAP_API void xccdf_select_iterator_free(struct xccdf_select_iterator *it); |
| 1198 | /** |
| 1199 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1200 | * @memberof xccdf_select_iterator |
| 1201 | */ |
| 1202 | OSCAP_API void xccdf_select_iterator_reset(struct xccdf_select_iterator *it); |
| 1203 | |
| 1204 | |
| 1205 | /** |
| 1206 | * Return the next xccdf_setvalue structure from the list and increment the iterator |
| 1207 | * @memberof xccdf_setvalue_iterator |
| 1208 | */ |
| 1209 | OSCAP_API struct xccdf_setvalue *xccdf_setvalue_iterator_next(struct xccdf_setvalue_iterator *it); |
| 1210 | /** |
| 1211 | * Return true if the list is not empty, false otherwise |
| 1212 | * @memberof xccdf_setvalue_iterator |
| 1213 | */ |
| 1214 | OSCAP_API bool xccdf_setvalue_iterator_has_more(struct xccdf_setvalue_iterator *it); |
| 1215 | /** |
| 1216 | * Free the iterator structure (it makes no changes to the list structure) |
| 1217 | * @memberof xccdf_setvalue_iterator |
| 1218 | */ |
| 1219 | OSCAP_API void xccdf_setvalue_iterator_free(struct xccdf_setvalue_iterator *it); |
| 1220 | /** |
| 1221 | * Reset the iterator structure (it will point to the first item in the list) |
| 1222 | * @memberof xccdf_setvalue_iterator |
| 1223 | */ |
| 1224 | OSCAP_API void xccdf_setvalue_iterator_reset(struct xccdf_setvalue_iterator *it); |
| 1225 | |
| 1226 | |
| 1227 | /** |
| 1228 | * Return the next xccdf_refine_value structure from the list and increment the iterator |
| 1229 | * @memberof xccdf_refine_value_iterator |
| 1230 | */ |
| 1231 | OSCAP_API struct xccdf_refine_value *xccdf_refine_value_iterator_next(struct xccdf_refine_value_iterator *it); |
| 1232 | /** |
| 1233 | * Return true if the list is not empty, false otherwise |
| 1234 | * @memberof xccdf_refine_value_iterator |
| 1235 | */ |
| 1236 | OSCAP_API bool xccdf_refine_value_iterator_has_more(struct xccdf_refine_value_iterator *it); |
| 1237 | /** |
| 1238 | * Free the iterator structure (it makes no changes to the list structure) |
| 1239 | * @memberof xccdf_refine_value_iterator |
| 1240 | */ |
| 1241 | OSCAP_API void xccdf_refine_value_iterator_free(struct xccdf_refine_value_iterator *it); |
| 1242 | /** |
| 1243 | * Reset the iterator structure (it will point to the first item in the list) |
| 1244 | * @memberof xccdf_refine_value_iterator |
| 1245 | */ |
| 1246 | OSCAP_API void xccdf_refine_value_iterator_reset(struct xccdf_refine_value_iterator *it); |
| 1247 | |
| 1248 | |
| 1249 | /** |
| 1250 | * Return the next xccdf_refine_rule structure from the list and increment the iterator |
| 1251 | * @memberof xccdf_refine_rule_iterator |
| 1252 | */ |
| 1253 | OSCAP_API struct xccdf_refine_rule *xccdf_refine_rule_iterator_next(struct xccdf_refine_rule_iterator *it); |
| 1254 | /** |
| 1255 | * Return true if the list is not empty, false otherwise |
| 1256 | * @memberof xccdf_refine_rule_iterator |
| 1257 | */ |
| 1258 | OSCAP_API bool xccdf_refine_rule_iterator_has_more(struct xccdf_refine_rule_iterator *it); |
| 1259 | /** |
| 1260 | * Free the iterator structure (it makes no changes to the list structure) |
| 1261 | * @memberof xccdf_refine_rule_iterator |
| 1262 | */ |
| 1263 | OSCAP_API void xccdf_refine_rule_iterator_free(struct xccdf_refine_rule_iterator *it); |
| 1264 | /** |
| 1265 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1266 | * @memberof xccdf_refine_rule_iterator |
| 1267 | */ |
| 1268 | OSCAP_API void xccdf_refine_rule_iterator_reset(struct xccdf_refine_rule_iterator *it); |
| 1269 | |
| 1270 | |
| 1271 | /** |
| 1272 | * Return the next xccdf_ident structure from the list and increment the iterator |
| 1273 | * @memberof xccdf_ident_iterator |
| 1274 | */ |
| 1275 | OSCAP_API struct xccdf_ident *xccdf_ident_iterator_next(struct xccdf_ident_iterator *it); |
| 1276 | /** |
| 1277 | * Return true if the list is not empty, false otherwise |
| 1278 | * @memberof xccdf_ident_iterator |
| 1279 | */ |
| 1280 | OSCAP_API bool xccdf_ident_iterator_has_more(struct xccdf_ident_iterator *it); |
| 1281 | /** |
| 1282 | * Free the iterator structure (it makes no changes to the list structure) |
| 1283 | * @memberof xccdf_ident_iterator |
| 1284 | */ |
| 1285 | OSCAP_API void xccdf_ident_iterator_free(struct xccdf_ident_iterator *it); |
| 1286 | /** |
| 1287 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1288 | * @memberof xccdf_ident_iterator |
| 1289 | */ |
| 1290 | OSCAP_API void xccdf_ident_iterator_reset(struct xccdf_ident_iterator *it); |
| 1291 | |
| 1292 | |
| 1293 | /** |
| 1294 | * Return the next xccdf_check structure from the list and increment the iterator |
| 1295 | * @memberof xccdf_check_iterator |
| 1296 | */ |
| 1297 | OSCAP_API struct xccdf_check *xccdf_check_iterator_next(struct xccdf_check_iterator *it); |
| 1298 | /** |
| 1299 | * Return true if the list is not empty, false otherwise |
| 1300 | * @memberof xccdf_check_iterator |
| 1301 | */ |
| 1302 | OSCAP_API bool xccdf_check_iterator_has_more(struct xccdf_check_iterator *it); |
| 1303 | /** |
| 1304 | * Free the iterator structure (it makes no changes to the list structure) |
| 1305 | * @memberof xccdf_check_iterator |
| 1306 | */ |
| 1307 | OSCAP_API void xccdf_check_iterator_free(struct xccdf_check_iterator *it); |
| 1308 | /** |
| 1309 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1310 | * @memberof xccdf_check_iterator |
| 1311 | */ |
| 1312 | OSCAP_API void xccdf_check_iterator_reset(struct xccdf_check_iterator *it); |
| 1313 | |
| 1314 | |
| 1315 | /** |
| 1316 | * Return the next xccdf_check_content_ref structure from the list and increment the iterator |
| 1317 | * @memberof xccdf_check_content_ref_iterator |
| 1318 | */ |
| 1319 | OSCAP_API struct xccdf_check_content_ref *xccdf_check_content_ref_iterator_next(struct xccdf_check_content_ref_iterator *it); |
| 1320 | /** |
| 1321 | * Return true if the list is not empty, false otherwise |
| 1322 | * @memberof xccdf_check_content_ref_iterator |
| 1323 | */ |
| 1324 | OSCAP_API bool xccdf_check_content_ref_iterator_has_more(struct xccdf_check_content_ref_iterator *it); |
| 1325 | /** |
| 1326 | * Free the iterator structure (it makes no changes to the list structure) |
| 1327 | * @memberof xccdf_check_content_ref_iterator |
| 1328 | */ |
| 1329 | OSCAP_API void xccdf_check_content_ref_iterator_free(struct xccdf_check_content_ref_iterator *it); |
| 1330 | /** |
| 1331 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1332 | * @memberof xccdf_check_content_ref_iterator |
| 1333 | */ |
| 1334 | OSCAP_API void xccdf_check_content_ref_iterator_reset(struct xccdf_check_content_ref_iterator *it); |
| 1335 | |
| 1336 | |
| 1337 | /** |
| 1338 | * Return the next xccdf_profile_note structure from the list and increment the iterator |
| 1339 | * @memberof xccdf_profile_note_iterator |
| 1340 | */ |
| 1341 | OSCAP_API struct xccdf_profile_note *xccdf_profile_note_iterator_next(struct xccdf_profile_note_iterator *it); |
| 1342 | /** |
| 1343 | * Return true if the list is not empty, false otherwise |
| 1344 | * @memberof xccdf_profile_note_iterator |
| 1345 | */ |
| 1346 | OSCAP_API bool xccdf_profile_note_iterator_has_more(struct xccdf_profile_note_iterator *it); |
| 1347 | /** |
| 1348 | * Free the iterator structure (it makes no changes to the list structure) |
| 1349 | * @memberof xccdf_profile_note_iterator |
| 1350 | */ |
| 1351 | OSCAP_API void xccdf_profile_note_iterator_free(struct xccdf_profile_note_iterator *it); |
| 1352 | /** |
| 1353 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1354 | * @memberof xccdf_profile_note_iterator |
| 1355 | */ |
| 1356 | OSCAP_API void xccdf_profile_note_iterator_reset(struct xccdf_profile_note_iterator *it); |
| 1357 | |
| 1358 | |
| 1359 | /** |
| 1360 | * Return the next xccdf_check_import structure from the list and increment the iterator |
| 1361 | * @memberof xccdf_check_import_iterator |
| 1362 | */ |
| 1363 | OSCAP_API struct xccdf_check_import *xccdf_check_import_iterator_next(struct xccdf_check_import_iterator *it); |
| 1364 | /** |
| 1365 | * Return true if the list is not empty, false otherwise |
| 1366 | * @memberof xccdf_check_import_iterator |
| 1367 | */ |
| 1368 | OSCAP_API bool xccdf_check_import_iterator_has_more(struct xccdf_check_import_iterator *it); |
| 1369 | /** |
| 1370 | * Free the iterator structure (it makes no changes to the list structure) |
| 1371 | * @memberof xccdf_check_import_iterator |
| 1372 | */ |
| 1373 | OSCAP_API void xccdf_check_import_iterator_free(struct xccdf_check_import_iterator *it); |
| 1374 | /** |
| 1375 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1376 | * @memberof xccdf_check_import_iterator |
| 1377 | */ |
| 1378 | OSCAP_API void xccdf_check_import_iterator_reset(struct xccdf_check_import_iterator *it); |
| 1379 | |
| 1380 | |
| 1381 | /** |
| 1382 | * Return the next xccdf_check_export structure from the list and increment the iterator |
| 1383 | * @memberof xccdf_check_export_iterator |
| 1384 | */ |
| 1385 | OSCAP_API struct xccdf_check_export *xccdf_check_export_iterator_next(struct xccdf_check_export_iterator *it); |
| 1386 | /** |
| 1387 | * Return true if the list is not empty, false otherwise |
| 1388 | * @memberof xccdf_check_export_iterator |
| 1389 | */ |
| 1390 | OSCAP_API bool xccdf_check_export_iterator_has_more(struct xccdf_check_export_iterator *it); |
| 1391 | /** |
| 1392 | * Free the iterator structure (it makes no changes to the list structure) |
| 1393 | * @memberof xccdf_check_export_iterator |
| 1394 | */ |
| 1395 | OSCAP_API void xccdf_check_export_iterator_free(struct xccdf_check_export_iterator *it); |
| 1396 | /** |
| 1397 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1398 | * @memberof xccdf_check_export_iterator |
| 1399 | */ |
| 1400 | OSCAP_API void xccdf_check_export_iterator_reset(struct xccdf_check_export_iterator *it); |
| 1401 | |
| 1402 | |
| 1403 | /** |
| 1404 | * Return the next xccdf_fix structure from the list and increment the iterator |
| 1405 | * @memberof xccdf_fix_iterator |
| 1406 | */ |
| 1407 | OSCAP_API struct xccdf_fix *xccdf_fix_iterator_next(struct xccdf_fix_iterator *it); |
| 1408 | /** |
| 1409 | * Return true if the list is not empty, false otherwise |
| 1410 | * @memberof xccdf_fix_iterator |
| 1411 | */ |
| 1412 | OSCAP_API bool xccdf_fix_iterator_has_more(struct xccdf_fix_iterator *it); |
| 1413 | /** |
| 1414 | * Free the iterator structure (it makes no changes to the list structure) |
| 1415 | * @memberof xccdf_fix_iterator |
| 1416 | */ |
| 1417 | OSCAP_API void xccdf_fix_iterator_free(struct xccdf_fix_iterator *it); |
| 1418 | /** |
| 1419 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1420 | * @memberof xccdf_fix_iterator |
| 1421 | */ |
| 1422 | OSCAP_API void xccdf_fix_iterator_reset(struct xccdf_fix_iterator *it); |
| 1423 | |
| 1424 | |
| 1425 | /** |
| 1426 | * Return the next xccdf_fixtext structure from the list and increment the iterator |
| 1427 | * @memberof xccdf_fixtext_iterator |
| 1428 | */ |
| 1429 | OSCAP_API struct xccdf_fixtext *xccdf_fixtext_iterator_next(struct xccdf_fixtext_iterator *it); |
| 1430 | /** |
| 1431 | * Return true if the list is not empty, false otherwise |
| 1432 | * @memberof xccdf_fixtext_iterator |
| 1433 | */ |
| 1434 | OSCAP_API bool xccdf_fixtext_iterator_has_more(struct xccdf_fixtext_iterator *it); |
| 1435 | /** |
| 1436 | * Free the iterator structure (it makes no changes to the list structure) |
| 1437 | * @memberof xccdf_fixtext_iterator |
| 1438 | */ |
| 1439 | OSCAP_API void xccdf_fixtext_iterator_free(struct xccdf_fixtext_iterator *it); |
| 1440 | /** |
| 1441 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1442 | * @memberof xccdf_fixtext_iterator |
| 1443 | */ |
| 1444 | OSCAP_API void xccdf_fixtext_iterator_reset(struct xccdf_fixtext_iterator *it); |
| 1445 | |
| 1446 | |
| 1447 | /** |
| 1448 | * Return the next xccdf_warning structure from the list and increment the iterator |
| 1449 | * @memberof xccdf_warning_iterator |
| 1450 | */ |
| 1451 | OSCAP_API struct xccdf_warning *xccdf_warning_iterator_next(struct xccdf_warning_iterator *it); |
| 1452 | /** |
| 1453 | * Return true if the list is not empty, false otherwise |
| 1454 | * @memberof xccdf_warning_iterator |
| 1455 | */ |
| 1456 | OSCAP_API bool xccdf_warning_iterator_has_more(struct xccdf_warning_iterator *it); |
| 1457 | /** |
| 1458 | * Free the iterator structure (it makes no changes to the list structure) |
| 1459 | * @memberof xccdf_warning_iterator |
| 1460 | */ |
| 1461 | OSCAP_API void xccdf_warning_iterator_free(struct xccdf_warning_iterator *it); |
| 1462 | /** |
| 1463 | * Reset the iterator structure (it makes no changes to the underlying list) |
| 1464 | * @memberof xccdf_warning_iterator |
| 1465 | */ |
| 1466 | OSCAP_API void xccdf_warning_iterator_reset(struct xccdf_warning_iterator *it); |
| 1467 | |
| 1468 | |
| 1469 | /** |
| 1470 | * Return the next xccdf_instance structure from the list and increment the iterator |
| 1471 | * @memberof xccdf_instance_iterator |
| 1472 | */ |
| 1473 | OSCAP_API struct xccdf_instance *xccdf_instance_iterator_next(struct xccdf_instance_iterator *it); |
| 1474 | /** |
| 1475 | * Return true if the list is not empty, false otherwise |
| 1476 | * @memberof xccdf_instance_iterator |
| 1477 | */ |
| 1478 | OSCAP_API bool xccdf_instance_iterator_has_more(struct xccdf_instance_iterator *it); |
| 1479 | /** |
| 1480 | * Free the iterator structure (it makes no changes to the list structure) |
| 1481 | * @memberof xccdf_instance_iterator |
| 1482 | */ |
| 1483 | OSCAP_API void xccdf_instance_iterator_free(struct xccdf_instance_iterator *it); |
| 1484 | /** |
| 1485 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1486 | * @memberof xccdf_instance_iterator |
| 1487 | */ |
| 1488 | OSCAP_API void xccdf_instance_iterator_reset(struct xccdf_instance_iterator *it); |
| 1489 | |
| 1490 | |
| 1491 | /** |
| 1492 | * Return the next xccdf_message structure from the list and increment the iterator |
| 1493 | * @memberof xccdf_message_iterator |
| 1494 | */ |
| 1495 | OSCAP_API struct xccdf_message *xccdf_message_iterator_next(struct xccdf_message_iterator *it); |
| 1496 | /** |
| 1497 | * Return true if the list is not empty, false otherwise |
| 1498 | * @memberof xccdf_message_iterator |
| 1499 | */ |
| 1500 | OSCAP_API bool xccdf_message_iterator_has_more(struct xccdf_message_iterator *it); |
| 1501 | /** |
| 1502 | * Free the iterator structure (it makes no changes to the list structure) |
| 1503 | * @memberof xccdf_message_iterator |
| 1504 | */ |
| 1505 | OSCAP_API void xccdf_message_iterator_free(struct xccdf_message_iterator *it); |
| 1506 | /** |
| 1507 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1508 | * @memberof xccdf_message_iterator |
| 1509 | */ |
| 1510 | OSCAP_API void xccdf_message_iterator_reset(struct xccdf_message_iterator *it); |
| 1511 | |
| 1512 | |
| 1513 | /** |
| 1514 | * Return the next xccdf_override structure from the list and increment the iterator |
| 1515 | * @memberof xccdf_override_iterator |
| 1516 | */ |
| 1517 | OSCAP_API struct xccdf_override *xccdf_override_iterator_next(struct xccdf_override_iterator *it); |
| 1518 | /** |
| 1519 | * Return true if the list is not empty, false otherwise |
| 1520 | * @memberof xccdf_override_iterator |
| 1521 | */ |
| 1522 | OSCAP_API bool xccdf_override_iterator_has_more(struct xccdf_override_iterator *it); |
| 1523 | /** |
| 1524 | * Free the iterator structure (it makes no changes to the list structure) |
| 1525 | * @memberof xccdf_override_iterator |
| 1526 | */ |
| 1527 | OSCAP_API void xccdf_override_iterator_free(struct xccdf_override_iterator *it); |
| 1528 | /** |
| 1529 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1530 | * @memberof xccdf_override_iterator |
| 1531 | */ |
| 1532 | OSCAP_API void xccdf_override_iterator_reset(struct xccdf_override_iterator *it); |
| 1533 | |
| 1534 | |
| 1535 | /** |
| 1536 | * Return the next xccdf_identity structure from the list and increment the iterator |
| 1537 | * @memberof xccdf_identity_iterator |
| 1538 | */ |
| 1539 | OSCAP_API struct xccdf_identity *xccdf_identity_iterator_next(struct xccdf_identity_iterator *it); |
| 1540 | /** |
| 1541 | * Return true if the list is not empty, false otherwise |
| 1542 | * @memberof xccdf_identity_iterator |
| 1543 | */ |
| 1544 | OSCAP_API bool xccdf_identity_iterator_has_more(struct xccdf_identity_iterator *it); |
| 1545 | /** |
| 1546 | * Free the iterator structure (it makes no changes to the list structure) |
| 1547 | * @memberof xccdf_identity_iterator |
| 1548 | */ |
| 1549 | OSCAP_API void xccdf_identity_iterator_free(struct xccdf_identity_iterator *it); |
| 1550 | /** |
| 1551 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1552 | * @memberof xccdf_identity_iterator |
| 1553 | */ |
| 1554 | OSCAP_API void xccdf_identity_iterator_reset(struct xccdf_identity_iterator *it); |
| 1555 | |
| 1556 | |
| 1557 | /** |
| 1558 | * Return the next xccdf_rule_result structure from the list and increment the iterator |
| 1559 | * @memberof xccdf_rule_result_iterator |
| 1560 | */ |
| 1561 | OSCAP_API struct xccdf_rule_result *xccdf_rule_result_iterator_next(struct xccdf_rule_result_iterator *it); |
| 1562 | /** |
| 1563 | * Return true if the list is not empty, false otherwise |
| 1564 | * @memberof xccdf_rule_result_iterator |
| 1565 | */ |
| 1566 | OSCAP_API bool xccdf_rule_result_iterator_has_more(struct xccdf_rule_result_iterator *it); |
| 1567 | /** |
| 1568 | * Free the iterator structure (it makes no changes to the list structure) |
| 1569 | * @memberof xccdf_rule_result_iterator |
| 1570 | */ |
| 1571 | OSCAP_API void xccdf_rule_result_iterator_free(struct xccdf_rule_result_iterator *it); |
| 1572 | /** |
| 1573 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1574 | * @memberof xccdf_rule_result_iterator |
| 1575 | */ |
| 1576 | OSCAP_API void xccdf_rule_result_iterator_reset(struct xccdf_rule_result_iterator *it); |
| 1577 | |
| 1578 | |
| 1579 | /** |
| 1580 | * Return the next xccdf_value_instance structure from the list and increment the iterator |
| 1581 | * @memberof xccdf_value_instance_iterator |
| 1582 | */ |
| 1583 | OSCAP_API struct xccdf_value_instance *xccdf_value_instance_iterator_next(struct xccdf_value_instance_iterator *it); |
| 1584 | /** |
| 1585 | * Return true if the list is not empty, false otherwise |
| 1586 | * @memberof xccdf_value_instance_iterator |
| 1587 | */ |
| 1588 | OSCAP_API bool xccdf_value_instance_iterator_has_more(struct xccdf_value_instance_iterator *it); |
| 1589 | /** |
| 1590 | * Free the iterator structure (it makes no changes to the list structure) |
| 1591 | * @memberof xccdf_value_instance_iterator |
| 1592 | */ |
| 1593 | OSCAP_API void xccdf_value_instance_iterator_free(struct xccdf_value_instance_iterator *it); |
| 1594 | /** |
| 1595 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1596 | * @memberof xccdf_value_instance_iterator |
| 1597 | */ |
| 1598 | OSCAP_API void xccdf_value_instance_iterator_reset(struct xccdf_value_instance_iterator *it); |
| 1599 | |
| 1600 | |
| 1601 | /** |
| 1602 | * Return the next xccdf_score structure from the list and increment the iterator |
| 1603 | * @memberof xccdf_score_iterator |
| 1604 | */ |
| 1605 | OSCAP_API struct xccdf_score *xccdf_score_iterator_next(struct xccdf_score_iterator *it); |
| 1606 | /** |
| 1607 | * Return true if the list is not empty, false otherwise |
| 1608 | * @memberof xccdf_score_iterator |
| 1609 | */ |
| 1610 | OSCAP_API bool xccdf_score_iterator_has_more(struct xccdf_score_iterator *it); |
| 1611 | /** |
| 1612 | * Free the iterator structure (it makes no changes to the list structure) |
| 1613 | * @memberof xccdf_score_iterator |
| 1614 | */ |
| 1615 | OSCAP_API void xccdf_score_iterator_free(struct xccdf_score_iterator *it); |
| 1616 | /** |
| 1617 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1618 | * @memberof xccdf_score_iterator |
| 1619 | */ |
| 1620 | OSCAP_API void xccdf_score_iterator_reset(struct xccdf_score_iterator *it); |
| 1621 | |
| 1622 | |
| 1623 | /** |
| 1624 | * Return the next xccdf_target_fact structure from the list and increment the iterator |
| 1625 | * @memberof xccdf_target_fact_iterator |
| 1626 | */ |
| 1627 | OSCAP_API struct xccdf_target_fact *xccdf_target_fact_iterator_next(struct xccdf_target_fact_iterator *it); |
| 1628 | /** |
| 1629 | * Return true if the list is not empty, false otherwise |
| 1630 | * @memberof xccdf_target_fact_iterator |
| 1631 | */ |
| 1632 | OSCAP_API bool xccdf_target_fact_iterator_has_more(struct xccdf_target_fact_iterator *it); |
| 1633 | /** |
| 1634 | * Free the iterator structure (it makes no changes to the list structure) |
| 1635 | * @memberof xccdf_target_fact_iterator |
| 1636 | */ |
| 1637 | OSCAP_API void xccdf_target_fact_iterator_free(struct xccdf_target_fact_iterator *it); |
| 1638 | /** |
| 1639 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1640 | * @memberof xccdf_target_fact_iterator |
| 1641 | */ |
| 1642 | OSCAP_API void xccdf_target_fact_iterator_reset(struct xccdf_target_fact_iterator *it); |
| 1643 | |
| 1644 | /** |
| 1645 | * Return the next xccdf_target_identifier structure from the list and increment the iterator |
| 1646 | * @memberof xccdf_target_identifier_iterator |
| 1647 | */ |
| 1648 | OSCAP_API struct xccdf_target_identifier *xccdf_target_identifier_iterator_next(struct xccdf_target_identifier_iterator *it); |
| 1649 | /** |
| 1650 | * Return true if the list is not empty, false otherwise |
| 1651 | * @memberof xccdf_target_identifier_iterator |
| 1652 | */ |
| 1653 | OSCAP_API bool xccdf_target_identifier_iterator_has_more(struct xccdf_target_identifier_iterator *it); |
| 1654 | /** |
| 1655 | * Free the iterator structure (it makes no changes to the list structure) |
| 1656 | * @memberof xccdf_target_identifier_iterator |
| 1657 | */ |
| 1658 | OSCAP_API void xccdf_target_identifier_iterator_free(struct xccdf_target_identifier_iterator *it); |
| 1659 | /** |
| 1660 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1661 | * @memberof xccdf_target_identifier_iterator |
| 1662 | */ |
| 1663 | OSCAP_API void xccdf_target_identifier_iterator_reset(struct xccdf_target_identifier_iterator *it); |
| 1664 | |
| 1665 | |
| 1666 | /** |
| 1667 | * Return the next xccdf_plain_text structure from the list and increment the iterator |
| 1668 | * @memberof xccdf_plain_text_iterator |
| 1669 | */ |
| 1670 | OSCAP_API struct xccdf_plain_text *xccdf_plain_text_iterator_next(struct xccdf_plain_text_iterator *it); |
| 1671 | /** |
| 1672 | * Return true if the list is not empty, false otherwise |
| 1673 | * @memberof xccdf_plain_text_iterator |
| 1674 | */ |
| 1675 | OSCAP_API bool xccdf_plain_text_iterator_has_more(struct xccdf_plain_text_iterator *it); |
| 1676 | /** |
| 1677 | * Free the iterator structure (it makes no changes to the list structure) |
| 1678 | * @memberof xccdf_plain_text_iterator |
| 1679 | */ |
| 1680 | OSCAP_API void xccdf_plain_text_iterator_free(struct xccdf_plain_text_iterator *it); |
| 1681 | /** |
| 1682 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1683 | * @memberof xccdf_plain_text_iterator |
| 1684 | */ |
| 1685 | OSCAP_API void xccdf_plain_text_iterator_reset(struct xccdf_plain_text_iterator *it); |
| 1686 | |
| 1687 | |
| 1688 | /** |
| 1689 | * Return the next xccdf_value structure from the list and increment the iterator |
| 1690 | * @memberof xccdf_value_iterator |
| 1691 | */ |
| 1692 | OSCAP_API struct xccdf_value *xccdf_value_iterator_next(struct xccdf_value_iterator *it); |
| 1693 | /** |
| 1694 | * Return true if the list is not empty, false otherwise |
| 1695 | * @memberof xccdf_value_iterator |
| 1696 | */ |
| 1697 | OSCAP_API bool xccdf_value_iterator_has_more(struct xccdf_value_iterator *it); |
| 1698 | /** |
| 1699 | * Free the iterator structure (it makes no changes to the list structure) |
| 1700 | * @memberof xccdf_value_iterator |
| 1701 | */ |
| 1702 | OSCAP_API void xccdf_value_iterator_free(struct xccdf_value_iterator *it); |
| 1703 | /** |
| 1704 | * Reset the iterator structure (it makes no changes to the list structure) |
| 1705 | * @memberof xccdf_value_iterator |
| 1706 | */ |
| 1707 | OSCAP_API void xccdf_value_iterator_reset(struct xccdf_value_iterator *it); |
| 1708 | |
| 1709 | /************************************************************ |
| 1710 | ** @} End of Iterators group */ |
| 1711 | |
| 1712 | /************************************************************/ |
| 1713 | /** |
| 1714 | * @name Getters |
| 1715 | * Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. |
| 1716 | * Use remove function otherwise. |
| 1717 | * @{ |
| 1718 | * */ |
| 1719 | |
| 1720 | /** |
| 1721 | * @memberof xccdf_item |
| 1722 | */ |
| 1723 | OSCAP_API xccdf_type_t xccdf_item_get_type(const struct xccdf_item *item); |
| 1724 | /** |
| 1725 | * @memberof xccdf_item |
| 1726 | */ |
| 1727 | OSCAP_API const char *xccdf_item_get_id(const struct xccdf_item *item); |
| 1728 | /** |
| 1729 | * @memberof xccdf_item |
| 1730 | */ |
| 1731 | OSCAP_API struct oscap_text_iterator *xccdf_item_get_title(const struct xccdf_item *item); |
| 1732 | /** |
| 1733 | * @memberof xccdf_item |
| 1734 | */ |
| 1735 | OSCAP_API struct oscap_text_iterator *xccdf_item_get_description(const struct xccdf_item *item); |
| 1736 | /** |
| 1737 | * @memberof xccdf_item |
| 1738 | */ |
| 1739 | OSCAP_API const char *xccdf_item_get_version(const struct xccdf_item *item); |
| 1740 | /** |
| 1741 | * @memberof xccdf_item |
| 1742 | */ |
| 1743 | OSCAP_API const char *xccdf_item_get_extends(const struct xccdf_item *item); |
| 1744 | /** |
| 1745 | * @memberof xccdf_item |
| 1746 | */ |
| 1747 | OSCAP_API struct xccdf_status_iterator *xccdf_item_get_statuses(const struct xccdf_item *item); |
| 1748 | /** |
| 1749 | * @memberof xccdf_item |
| 1750 | */ |
| 1751 | OSCAP_API struct oscap_reference_iterator *xccdf_item_get_dc_statuses(const struct xccdf_item *item); |
| 1752 | /** |
| 1753 | * @memberof xccdf_item |
| 1754 | */ |
| 1755 | OSCAP_API struct oscap_reference_iterator *xccdf_item_get_references(const struct xccdf_item *item); |
| 1756 | /** |
| 1757 | * @memberof xccdf_item |
| 1758 | */ |
| 1759 | OSCAP_API struct oscap_string_iterator *xccdf_item_get_conflicts(const struct xccdf_item* item); |
| 1760 | /** |
| 1761 | * @memberof xccdf_item |
| 1762 | */ |
| 1763 | OSCAP_API struct oscap_stringlist_iterator *xccdf_item_get_requires(const struct xccdf_item* item); |
| 1764 | /** |
| 1765 | * @memberof xccdf_item |
| 1766 | */ |
| 1767 | OSCAP_API struct xccdf_status * xccdf_item_get_current_status(const struct xccdf_item *item); |
| 1768 | /** |
| 1769 | * @memberof xccdf_item |
| 1770 | */ |
| 1771 | OSCAP_API bool xccdf_item_get_hidden(const struct xccdf_item *item); |
| 1772 | /** |
| 1773 | * @memberof xccdf_item |
| 1774 | */ |
| 1775 | OSCAP_API bool xccdf_item_get_selected(const struct xccdf_item *item); |
| 1776 | /** |
| 1777 | * @memberof xccdf_item |
| 1778 | */ |
| 1779 | OSCAP_API bool xccdf_item_get_prohibit_changes(const struct xccdf_item *item); |
| 1780 | /** |
| 1781 | * @memberof xccdf_item |
| 1782 | */ |
| 1783 | OSCAP_API bool xccdf_item_get_abstract(const struct xccdf_item *item); |
| 1784 | /** |
| 1785 | * @memberof xccdf_item |
| 1786 | */ |
| 1787 | OSCAP_API struct xccdf_item_iterator *xccdf_item_get_content(const struct xccdf_item *item); |
| 1788 | /** |
| 1789 | * @memberof xccdf_test_result |
| 1790 | */ |
| 1791 | OSCAP_API const char * xccdf_test_result_type_get_text(xccdf_test_result_type_t id); |
| 1792 | /** |
| 1793 | * @memberof xccdf_result |
| 1794 | */ |
| 1795 | OSCAP_API struct xccdf_rule_result * xccdf_result_get_rule_result_by_id(struct xccdf_result * result, const char * id); |
| 1796 | |
| 1797 | /** |
| 1798 | * Return item's parent in the grouping hierarchy. |
| 1799 | * Returned item will be either a group or a benchmark. |
| 1800 | * @memberof xccdf_item |
| 1801 | */ |
| 1802 | OSCAP_API struct xccdf_item *xccdf_item_get_parent(const struct xccdf_item *item); |
| 1803 | |
| 1804 | /** |
| 1805 | * Retrieves the XCCDF version of top-level benchmark item. |
| 1806 | * |
| 1807 | * This is the version we use to determine how to process the item. |
| 1808 | * Valid return values include "1.1.4", "1.2". |
| 1809 | * You can use strverscmp to compare versions if you need to. |
| 1810 | * Don't deallocate the returned buffer! |
| 1811 | * @memberof xccdf_item |
| 1812 | */ |
| 1813 | OSCAP_API const struct xccdf_version_info* xccdf_item_get_schema_version(struct xccdf_item* item); |
| 1814 | |
| 1815 | /** |
| 1816 | * @memberof xccdf_item |
| 1817 | */ |
| 1818 | OSCAP_API struct oscap_string_iterator *xccdf_item_get_metadata(const struct xccdf_item *item); |
| 1819 | |
| 1820 | /** |
| 1821 | * @memberof xccdf_benchmark |
| 1822 | */ |
| 1823 | OSCAP_API struct xccdf_profile *xccdf_benchmark_get_profile_by_id(struct xccdf_benchmark *benchmark, const char *profile_id); |
| 1824 | /** |
| 1825 | * @memberof xccdf_benchmark |
| 1826 | */ |
| 1827 | OSCAP_API const char *xccdf_benchmark_get_id(const struct xccdf_benchmark *benchmark); |
| 1828 | /** |
| 1829 | * @memberof xccdf_benchmark |
| 1830 | */ |
| 1831 | OSCAP_API bool xccdf_benchmark_get_resolved(const struct xccdf_benchmark *benchmark); |
| 1832 | /** |
| 1833 | * @memberof xccdf_benchmark |
| 1834 | */ |
| 1835 | OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_title(const struct xccdf_benchmark *benchmark); |
| 1836 | /** |
| 1837 | * @memberof xccdf_benchmark |
| 1838 | */ |
| 1839 | OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_description(const struct xccdf_benchmark *benchmark); |
| 1840 | /** |
| 1841 | * @memberof xccdf_benchmark |
| 1842 | */ |
| 1843 | OSCAP_API const char *xccdf_benchmark_get_version(const struct xccdf_benchmark *benchmark); |
| 1844 | /** |
| 1845 | * @memberof xccdf_benchmark |
| 1846 | */ |
| 1847 | OSCAP_API const struct xccdf_version_info* xccdf_benchmark_get_schema_version(const struct xccdf_benchmark* item); |
| 1848 | /** |
| 1849 | * @memberof xccdf_benchmark |
| 1850 | */ |
| 1851 | OSCAP_API const char *xccdf_benchmark_get_style(const struct xccdf_benchmark *benchmark); |
| 1852 | /** |
| 1853 | * @memberof xccdf_benchmark |
| 1854 | */ |
| 1855 | OSCAP_API const char *xccdf_benchmark_get_style_href(const struct xccdf_benchmark *benchmark); |
| 1856 | /** |
| 1857 | * @memberof xccdf_benchmark |
| 1858 | */ |
| 1859 | OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_front_matter(const struct xccdf_benchmark *benchmark); |
| 1860 | /** |
| 1861 | * @memberof xccdf_benchmark |
| 1862 | */ |
| 1863 | OSCAP_API struct oscap_text_iterator *xccdf_benchmark_get_rear_matter(const struct xccdf_benchmark *benchmark); |
| 1864 | /** |
| 1865 | * @memberof xccdf_benchmark |
| 1866 | */ |
| 1867 | OSCAP_API struct xccdf_status_iterator *xccdf_benchmark_get_statuses(const struct xccdf_benchmark *benchmark); |
| 1868 | /** |
| 1869 | * @memberof xccdf_benchmark |
| 1870 | */ |
| 1871 | OSCAP_API struct oscap_reference_iterator *xccdf_benchmark_get_dc_statuses(const struct xccdf_benchmark *benchmark); |
| 1872 | /** |
| 1873 | * @memberof xccdf_benchmark |
| 1874 | */ |
| 1875 | OSCAP_API struct oscap_reference_iterator *xccdf_benchmark_get_references(const struct xccdf_benchmark *benchmark); |
| 1876 | /** |
| 1877 | * @memberof xccdf_benchmark |
| 1878 | */ |
| 1879 | OSCAP_API struct oscap_string_iterator *xccdf_benchmark_get_platforms(const struct xccdf_benchmark *benchmark); |
| 1880 | /** |
| 1881 | * @memberof xccdf_benchmark |
| 1882 | */ |
| 1883 | OSCAP_API struct xccdf_status * xccdf_benchmark_get_status_current(const struct xccdf_benchmark *benchmark); |
| 1884 | /** |
| 1885 | * @memberof xccdf_benchmark |
| 1886 | */ |
| 1887 | OSCAP_API struct xccdf_plain_text_iterator *xccdf_benchmark_get_plain_texts(const struct xccdf_benchmark *item); |
| 1888 | /** |
| 1889 | * @memberof xccdf_benchmark |
| 1890 | */ |
| 1891 | OSCAP_API struct xccdf_result_iterator* xccdf_benchmark_get_results(const struct xccdf_benchmark *bench); |
| 1892 | /** |
| 1893 | * @memberof xccdf_benchmark |
| 1894 | */ |
| 1895 | OSCAP_API struct xccdf_value_iterator *xccdf_benchmark_get_values(const struct xccdf_benchmark *item); |
| 1896 | /// @memberof xccdf_benchmark |
| 1897 | OSCAP_API bool xccdf_benchmark_set_lang(struct xccdf_benchmark *item, const char *newval); |
| 1898 | /// @memberof xccdf_benchmark |
| 1899 | OSCAP_API const char *xccdf_benchmark_get_lang(const struct xccdf_benchmark *item); |
| 1900 | |
| 1901 | /** |
| 1902 | * Get a plain text by ID. |
| 1903 | * @memberof xccdf_benchmark |
| 1904 | * @param id ID of the plain text to get. |
| 1905 | * @return Plain text content. |
| 1906 | * @retval NULL if given plain text does not exist |
| 1907 | */ |
| 1908 | OSCAP_API const char *xccdf_benchmark_get_plain_text(const struct xccdf_benchmark *benchmark, const char *id); |
| 1909 | |
| 1910 | /** |
| 1911 | * Get benchmark xccdf:Item by ID. |
| 1912 | * @memberof xccdf_benchmark |
| 1913 | * @param id ID |
| 1914 | * @return Item with given ID |
| 1915 | * @retval NULL if no such item exists |
| 1916 | */ |
| 1917 | OSCAP_API struct xccdf_item *xccdf_benchmark_get_item(const struct xccdf_benchmark *benchmark, const char *id); |
| 1918 | |
| 1919 | /** |
| 1920 | * Get a registered member of xccdf_benchmakr by ID. |
| 1921 | * @memberof xccdf_benchmark |
| 1922 | * @param type of member: either XCCDF_ITEM, XCCDF_PROFILE, or XCCDF_RESULT |
| 1923 | * @return xccdf_item with given ID and type |
| 1924 | * @return NULL if no such member exists |
| 1925 | */ |
| 1926 | OSCAP_API struct xccdf_item *xccdf_benchmark_get_member(const struct xccdf_benchmark *benchmark, xccdf_type_t type, const char *key); |
| 1927 | |
| 1928 | /** |
| 1929 | * Get an iterator to the benchmark legal notices. |
| 1930 | * @memberof xccdf_benchmark |
| 1931 | * @see xccdf_notice |
| 1932 | */ |
| 1933 | OSCAP_API struct xccdf_notice_iterator *xccdf_benchmark_get_notices(const struct xccdf_benchmark *benchmark); |
| 1934 | |
| 1935 | /** |
| 1936 | * Get an iterator to the benchmark scoring models. |
| 1937 | * @memberof xccdf_benchmark |
| 1938 | * @see xccdf_model |
| 1939 | */ |
| 1940 | OSCAP_API struct xccdf_model_iterator *xccdf_benchmark_get_models(const struct xccdf_benchmark *benchmark); |
| 1941 | |
| 1942 | /** |
| 1943 | * Get an iterator to the benchmark XCCDF profiles. |
| 1944 | * @memberof xccdf_benchmark |
| 1945 | * @see xccdf_profile |
| 1946 | */ |
| 1947 | OSCAP_API struct xccdf_profile_iterator *xccdf_benchmark_get_profiles(const struct xccdf_benchmark *benchmark); |
| 1948 | |
| 1949 | /** |
| 1950 | * Get an iterator to the bencmark content. The items are either groups or rules. |
| 1951 | * @memberof xccdf_benchmark |
| 1952 | * @see xccdf_rule |
| 1953 | * @see xccdf_group |
| 1954 | * @see xccdf_item |
| 1955 | */ |
| 1956 | OSCAP_API struct xccdf_item_iterator *xccdf_benchmark_get_content(const struct xccdf_benchmark *benchmark); |
| 1957 | |
| 1958 | /** |
| 1959 | * @memberof xccdf_benchmark |
| 1960 | */ |
| 1961 | OSCAP_API struct oscap_string_iterator *xccdf_benchmark_get_metadata(const struct xccdf_benchmark *benchmark); |
| 1962 | |
| 1963 | /** |
| 1964 | * @memberof xccdf_benchmark |
| 1965 | */ |
| 1966 | OSCAP_API struct cpe_dict_model *xccdf_benchmark_get_cpe_list(const struct xccdf_benchmark *benchmark); |
| 1967 | |
| 1968 | /** |
| 1969 | * @memberof xccdf_benchmark |
| 1970 | */ |
| 1971 | OSCAP_API struct cpe_lang_model *xccdf_benchmark_get_cpe_lang_model(const struct xccdf_benchmark *benchmark); |
| 1972 | |
| 1973 | /** |
| 1974 | * @memberof xccdf_profile |
| 1975 | */ |
| 1976 | OSCAP_API const char *xccdf_profile_get_id(const struct xccdf_profile *profile); |
| 1977 | /** |
| 1978 | * @memberof xccdf_profile |
| 1979 | */ |
| 1980 | OSCAP_API struct oscap_text_iterator *xccdf_profile_get_title(const struct xccdf_profile *profile); |
| 1981 | /** |
| 1982 | * @memberof xccdf_profile |
| 1983 | */ |
| 1984 | OSCAP_API struct oscap_text_iterator *xccdf_profile_get_description(const struct xccdf_profile *profile); |
| 1985 | /** |
| 1986 | * @memberof xccdf_profile |
| 1987 | */ |
| 1988 | OSCAP_API const char *xccdf_profile_get_version(const struct xccdf_profile *profile); |
| 1989 | /** |
| 1990 | * @memberof xccdf_profile |
| 1991 | */ |
| 1992 | OSCAP_API const char *xccdf_profile_get_extends(const struct xccdf_profile *profile); |
| 1993 | /** |
| 1994 | * @memberof xccdf_profile |
| 1995 | */ |
| 1996 | OSCAP_API struct xccdf_benchmark *xccdf_profile_get_benchmark(const struct xccdf_profile *profile); |
| 1997 | /** |
| 1998 | * @memberof xccdf_profile |
| 1999 | */ |
| 2000 | OSCAP_API bool xccdf_profile_get_abstract(const struct xccdf_profile *profile); |
| 2001 | /** |
| 2002 | * @memberof xccdf_profile |
| 2003 | */ |
| 2004 | OSCAP_API bool xccdf_profile_get_prohibit_changes(const struct xccdf_profile *profile); |
| 2005 | /** |
| 2006 | * @memberof xccdf_profile |
| 2007 | */ |
| 2008 | OSCAP_API struct oscap_string_iterator *xccdf_profile_get_platforms(const struct xccdf_profile *profile); |
| 2009 | /** |
| 2010 | * @memberof xccdf_profile |
| 2011 | */ |
| 2012 | OSCAP_API struct xccdf_status_iterator *xccdf_profile_get_statuses(const struct xccdf_profile *profile); |
| 2013 | /** |
| 2014 | * @memberof xccdf_profile |
| 2015 | */ |
| 2016 | OSCAP_API struct oscap_reference_iterator *xccdf_profile_get_dc_statuses(const struct xccdf_profile *profile); |
| 2017 | /** |
| 2018 | * @memberof xccdf_profile |
| 2019 | */ |
| 2020 | OSCAP_API struct oscap_reference_iterator *xccdf_profile_get_references(const struct xccdf_profile *profile); |
| 2021 | /** |
| 2022 | * @memberof xccdf_profile |
| 2023 | */ |
| 2024 | OSCAP_API struct xccdf_status * xccdf_profile_get_status_current(const struct xccdf_profile *profile); |
| 2025 | /** |
| 2026 | * @memberof xccdf_profile |
| 2027 | */ |
| 2028 | OSCAP_API struct xccdf_select_iterator *xccdf_profile_get_selects(const struct xccdf_profile *profile); |
| 2029 | /** |
| 2030 | * @memberof xccdf_profile |
| 2031 | */ |
| 2032 | OSCAP_API struct xccdf_setvalue_iterator *xccdf_profile_get_setvalues(const struct xccdf_profile *profile); |
| 2033 | /** |
| 2034 | * @memberof xccdf_profile |
| 2035 | */ |
| 2036 | OSCAP_API struct xccdf_refine_value_iterator *xccdf_profile_get_refine_values(const struct xccdf_profile *profile); |
| 2037 | /** |
| 2038 | * @memberof xccdf_profile |
| 2039 | */ |
| 2040 | OSCAP_API struct xccdf_refine_rule_iterator *xccdf_profile_get_refine_rules(const struct xccdf_profile *profile); |
| 2041 | /** |
| 2042 | * @memberof xccdf_profile |
| 2043 | */ |
| 2044 | OSCAP_API struct oscap_string_iterator *xccdf_profile_get_metadata(const struct xccdf_profile *profile); |
| 2045 | |
| 2046 | /** |
| 2047 | * Return rule's parent in the grouping hierarchy. |
| 2048 | * Returned item will be either a group or a benchmark. |
| 2049 | * @memberof xccdf_rule |
| 2050 | */ |
| 2051 | OSCAP_API struct xccdf_item *xccdf_rule_get_parent(const struct xccdf_rule *rule); |
| 2052 | |
| 2053 | /** |
| 2054 | * @memberof xccdf_rule |
| 2055 | */ |
| 2056 | OSCAP_API const char *xccdf_rule_get_id(const struct xccdf_rule *rule); |
| 2057 | /** |
| 2058 | * @memberof xccdf_rule |
| 2059 | */ |
| 2060 | OSCAP_API struct oscap_text_iterator *xccdf_rule_get_title(const struct xccdf_rule *rule); |
| 2061 | /** |
| 2062 | * @memberof xccdf_rule |
| 2063 | */ |
| 2064 | OSCAP_API struct oscap_text_iterator *xccdf_rule_get_description(const struct xccdf_rule *rule); |
| 2065 | /** |
| 2066 | * @memberof xccdf_rule |
| 2067 | */ |
| 2068 | OSCAP_API const char *xccdf_rule_get_version(const struct xccdf_rule *rule); |
| 2069 | /** |
| 2070 | * @memberof xccdf_rule |
| 2071 | */ |
| 2072 | OSCAP_API struct oscap_text_iterator *xccdf_rule_get_question(const struct xccdf_rule *rule); |
| 2073 | /** |
| 2074 | * @memberof xccdf_rule |
| 2075 | */ |
| 2076 | OSCAP_API struct xccdf_warning_iterator *xccdf_rule_get_warnings(const struct xccdf_rule *rule); |
| 2077 | /** |
| 2078 | * @memberof xccdf_rule |
| 2079 | */ |
| 2080 | OSCAP_API struct oscap_stringlist *xccdf_rule_get_warnings_strings(struct xccdf_rule *rule); |
| 2081 | /** |
| 2082 | * @memberof xccdf_rule |
| 2083 | */ |
| 2084 | OSCAP_API struct oscap_text_iterator *xccdf_rule_get_rationale(const struct xccdf_rule *rule); |
| 2085 | /** |
| 2086 | * @memberof xccdf_rule |
| 2087 | */ |
| 2088 | OSCAP_API const char *xccdf_rule_get_cluster_id(const struct xccdf_rule *rule); |
| 2089 | /** |
| 2090 | * @memberof xccdf_rule |
| 2091 | */ |
| 2092 | OSCAP_API float xccdf_rule_get_weight(const struct xccdf_rule *rule); |
| 2093 | /** |
| 2094 | * @memberof xccdf_rule |
| 2095 | */ |
| 2096 | OSCAP_API bool xccdf_rule_set_weight(struct xccdf_rule *item, xccdf_numeric newval); |
| 2097 | /** |
| 2098 | * @memberof xccdf_rule |
| 2099 | */ |
| 2100 | OSCAP_API const char *xccdf_rule_get_extends(const struct xccdf_rule *rule); |
| 2101 | /** |
| 2102 | * @memberof xccdf_rule |
| 2103 | */ |
| 2104 | OSCAP_API bool xccdf_rule_get_abstract(const struct xccdf_rule *rule); |
| 2105 | /** |
| 2106 | * @memberof xccdf_rule |
| 2107 | */ |
| 2108 | OSCAP_API bool xccdf_rule_get_prohibit_changes(const struct xccdf_rule *rule); |
| 2109 | /** |
| 2110 | * @memberof xccdf_rule |
| 2111 | */ |
| 2112 | OSCAP_API bool xccdf_rule_get_hidden(const struct xccdf_rule *rule); |
| 2113 | /** |
| 2114 | * @memberof xccdf_rule |
| 2115 | */ |
| 2116 | OSCAP_API bool xccdf_rule_get_selected(const struct xccdf_rule *rule); |
| 2117 | /** |
| 2118 | * @memberof xccdf_rule |
| 2119 | */ |
| 2120 | OSCAP_API bool xccdf_rule_get_multiple(const struct xccdf_rule *rule); |
| 2121 | /** |
| 2122 | * @memberof xccdf_rule |
| 2123 | */ |
| 2124 | OSCAP_API struct oscap_string_iterator *xccdf_rule_get_platforms(const struct xccdf_rule *rule); |
| 2125 | /** |
| 2126 | * @memberof xccdf_rule |
| 2127 | */ |
| 2128 | OSCAP_API struct xccdf_status_iterator *xccdf_rule_get_statuses(const struct xccdf_rule *rule); |
| 2129 | /** |
| 2130 | * @memberof xccdf_rule |
| 2131 | */ |
| 2132 | OSCAP_API struct oscap_reference_iterator *xccdf_rule_get_dc_statuses(const struct xccdf_rule *rule); |
| 2133 | /** |
| 2134 | * @memberof xccdf_rule |
| 2135 | */ |
| 2136 | OSCAP_API struct oscap_reference_iterator *xccdf_rule_get_references(const struct xccdf_rule *rule); |
| 2137 | /** |
| 2138 | * @memberof xccdf_rule |
| 2139 | */ |
| 2140 | OSCAP_API struct xccdf_status * xccdf_rule_get_status_current(const struct xccdf_rule *rule); |
| 2141 | /** |
| 2142 | * @memberof xccdf_rule |
| 2143 | */ |
| 2144 | OSCAP_API const char *xccdf_rule_get_impact_metric(const struct xccdf_rule *rule); |
| 2145 | /** |
| 2146 | * @memberof xccdf_rule |
| 2147 | */ |
| 2148 | OSCAP_API xccdf_role_t xccdf_rule_get_role(const struct xccdf_rule *rule); |
| 2149 | /** |
| 2150 | * @memberof xccdf_rule |
| 2151 | */ |
| 2152 | OSCAP_API xccdf_level_t xccdf_rule_get_severity(const struct xccdf_rule *rule); |
| 2153 | /** |
| 2154 | * @memberof xccdf_rule |
| 2155 | */ |
| 2156 | OSCAP_API struct xccdf_ident_iterator *xccdf_rule_get_idents(const struct xccdf_rule *rule); |
| 2157 | /** |
| 2158 | * @memberof xccdf_rule |
| 2159 | */ |
| 2160 | OSCAP_API struct xccdf_check_iterator *xccdf_rule_get_checks(const struct xccdf_rule *rule); |
| 2161 | /** |
| 2162 | * @memberof xccdf_rule |
| 2163 | */ |
| 2164 | OSCAP_API struct xccdf_profile_note_iterator *xccdf_rule_get_profile_notes(const struct xccdf_rule *rule); |
| 2165 | /** |
| 2166 | * @memberof xccdf_rule |
| 2167 | */ |
| 2168 | OSCAP_API struct xccdf_fix_iterator *xccdf_rule_get_fixes(const struct xccdf_rule *rule); |
| 2169 | /** |
| 2170 | * @memberof xccdf_rule |
| 2171 | */ |
| 2172 | OSCAP_API struct xccdf_fixtext_iterator *xccdf_rule_get_fixtexts(const struct xccdf_rule *rule); |
| 2173 | /** |
| 2174 | * @memberof xccdf_rule |
| 2175 | */ |
| 2176 | OSCAP_API struct oscap_string_iterator *xccdf_rule_get_conflicts(const struct xccdf_rule* rule); |
| 2177 | /** |
| 2178 | * @memberof xccdf_rule |
| 2179 | */ |
| 2180 | OSCAP_API struct oscap_stringlist_iterator *xccdf_rule_get_requires(const struct xccdf_rule* rule); |
| 2181 | /** |
| 2182 | * @memberof xccdf_rule |
| 2183 | */ |
| 2184 | OSCAP_API struct oscap_string_iterator *xccdf_rule_get_metadata(const struct xccdf_rule *rule); |
| 2185 | |
| 2186 | /* |
| 2187 | * Return group's parent in the grouping hierarchy. |
| 2188 | * Returned item will be either a group or a benchmark. |
| 2189 | * @memberof xccdf_group |
| 2190 | */ |
| 2191 | OSCAP_API struct xccdf_item *xccdf_group_get_parent(const struct xccdf_group *group); |
| 2192 | |
| 2193 | /** |
| 2194 | * Get an iterator to the group content. The items are either groups or rules. |
| 2195 | * @memberof xccdf_group |
| 2196 | * @see xccdf_rule |
| 2197 | * @see xccdf_group |
| 2198 | * @see xccdf_item |
| 2199 | */ |
| 2200 | OSCAP_API struct xccdf_item_iterator *xccdf_group_get_content(const struct xccdf_group *group); |
| 2201 | |
| 2202 | /// @memberof xccdf_group |
| 2203 | OSCAP_API struct xccdf_value_iterator *xccdf_group_get_values(const struct xccdf_group *group); |
| 2204 | |
| 2205 | /// @memberof xccdf_group |
| 2206 | OSCAP_API const char *xccdf_group_get_id(const struct xccdf_group *group); |
| 2207 | /// @memberof xccdf_group |
| 2208 | OSCAP_API struct oscap_text_iterator *xccdf_group_get_title(const struct xccdf_group *group); |
| 2209 | /// @memberof xccdf_group |
| 2210 | OSCAP_API struct oscap_text_iterator *xccdf_group_get_description(const struct xccdf_group *group); |
| 2211 | /// @memberof xccdf_group |
| 2212 | OSCAP_API const char *xccdf_group_get_version(const struct xccdf_group *group); |
| 2213 | /// @memberof xccdf_group |
| 2214 | OSCAP_API struct oscap_text_iterator *xccdf_group_get_question(const struct xccdf_group *group); |
| 2215 | /// @memberof xccdf_group |
| 2216 | OSCAP_API struct xccdf_warning_iterator *xccdf_group_get_warnings(const struct xccdf_group *group); |
| 2217 | /// @memberof xccdf_group |
| 2218 | OSCAP_API struct oscap_text_iterator *xccdf_group_get_rationale(const struct xccdf_group *group); |
| 2219 | /// @memberof xccdf_group |
| 2220 | OSCAP_API const char *xccdf_group_get_cluster_id(const struct xccdf_group *group); |
| 2221 | /// @memberof xccdf_group |
| 2222 | OSCAP_API float xccdf_group_get_weight(const struct xccdf_group *group); |
| 2223 | /// @memberof xccdf_group |
| 2224 | OSCAP_API bool xccdf_group_set_weight(struct xccdf_group *item, xccdf_numeric newval); |
| 2225 | /// @memberof xccdf_group |
| 2226 | OSCAP_API const char *xccdf_group_get_extends(const struct xccdf_group *group); |
| 2227 | /// @memberof xccdf_group |
| 2228 | OSCAP_API bool xccdf_group_get_abstract(const struct xccdf_group *group); |
| 2229 | /// @memberof xccdf_group |
| 2230 | OSCAP_API bool xccdf_group_get_prohibit_changes(const struct xccdf_group *group); |
| 2231 | /// @memberof xccdf_group |
| 2232 | OSCAP_API bool xccdf_group_get_hidden(const struct xccdf_group *group); |
| 2233 | /// @memberof xccdf_group |
| 2234 | OSCAP_API bool xccdf_group_get_selected(const struct xccdf_group *group); |
| 2235 | /// @memberof xccdf_group |
| 2236 | OSCAP_API struct oscap_string_iterator *xccdf_group_get_platforms(const struct xccdf_group *group); |
| 2237 | /// @memberof xccdf_group |
| 2238 | OSCAP_API struct xccdf_status_iterator *xccdf_group_get_statuses(const struct xccdf_group *group); |
| 2239 | /// @memberof xccdf_group |
| 2240 | OSCAP_API struct oscap_reference_iterator *xccdf_group_get_dc_statuses(const struct xccdf_group *group); |
| 2241 | /// @memberof xccdf_group |
| 2242 | OSCAP_API struct oscap_reference_iterator *xccdf_group_get_references(const struct xccdf_group *group); |
| 2243 | /// @memberof xccdf_group |
| 2244 | OSCAP_API struct xccdf_status * xccdf_group_get_status_current(const struct xccdf_group *group); |
| 2245 | /// @memberof xccdf_group |
| 2246 | OSCAP_API struct oscap_string_iterator *xccdf_group_get_conflicts(const struct xccdf_group* group); |
| 2247 | /// @memberof xccdf_group |
| 2248 | OSCAP_API struct oscap_stringlist_iterator *xccdf_group_get_requires(const struct xccdf_group* group); |
| 2249 | /// @memberof xccdf_group |
| 2250 | OSCAP_API struct oscap_string_iterator *xccdf_group_get_metadata(const struct xccdf_group *group); |
| 2251 | |
| 2252 | /// @memberof xccdf_value |
| 2253 | OSCAP_API struct oscap_text_iterator *xccdf_value_get_title(const struct xccdf_value *value); |
| 2254 | /// @memberof xccdf_value |
| 2255 | OSCAP_API const char *xccdf_value_get_id(const struct xccdf_value *value); |
| 2256 | /// @memberof xccdf_value |
| 2257 | OSCAP_API struct oscap_text_iterator *xccdf_value_get_description(const struct xccdf_value *value); |
| 2258 | /// @memberof xccdf_value |
| 2259 | OSCAP_API const char *xccdf_value_get_extends(const struct xccdf_value *value); |
| 2260 | /// @memberof xccdf_value |
| 2261 | OSCAP_API bool xccdf_value_get_abstract(const struct xccdf_value *value); |
| 2262 | /// @memberof xccdf_value |
| 2263 | OSCAP_API bool xccdf_value_get_prohibit_changes(const struct xccdf_value *value); |
| 2264 | /// @memberof xccdf_value |
| 2265 | OSCAP_API bool xccdf_value_get_hidden(const struct xccdf_value *value); |
| 2266 | /// @memberof xccdf_value |
| 2267 | OSCAP_API bool xccdf_value_get_interactive(const struct xccdf_value *value); |
| 2268 | /// @memberof xccdf_value |
| 2269 | OSCAP_API struct xccdf_status_iterator *xccdf_value_get_statuses(const struct xccdf_value *value); |
| 2270 | /// @memberof xccdf_value |
| 2271 | OSCAP_API struct oscap_reference_iterator *xccdf_value_get_dc_statuses(const struct xccdf_value *value); |
| 2272 | /// @memberof xccdf_value |
| 2273 | OSCAP_API struct oscap_reference_iterator *xccdf_value_get_references(const struct xccdf_value *value); |
| 2274 | /// @memberof xccdf_value |
| 2275 | OSCAP_API struct xccdf_status * xccdf_value_get_status_current(const struct xccdf_value *value); |
| 2276 | /// @memberof xccdf_value |
| 2277 | OSCAP_API xccdf_value_type_t xccdf_value_get_type(const struct xccdf_value *value); |
| 2278 | /// @memberof xccdf_value |
| 2279 | OSCAP_API xccdf_interface_hint_t xccdf_value_get_interface_hint(const struct xccdf_value *value); |
| 2280 | /// @memberof xccdf_value |
| 2281 | OSCAP_API xccdf_operator_t xccdf_value_get_oper(const struct xccdf_value *value); |
| 2282 | /// @memberof xccdf_value |
| 2283 | OSCAP_API struct xccdf_value_instance *xccdf_value_get_instance_by_selector(const struct xccdf_value *value, const char *selector); |
| 2284 | /// @memberof xccdf_value |
| 2285 | OSCAP_API bool xccdf_value_add_instance(struct xccdf_value *value, struct xccdf_value_instance *instance); |
| 2286 | /// @memberof xccdf_value |
| 2287 | OSCAP_API struct xccdf_value_instance_iterator *xccdf_value_get_instances(const struct xccdf_value *item); |
| 2288 | /// @memberof xccdf_value |
| 2289 | OSCAP_API struct oscap_string_iterator *xccdf_value_get_metadata(const struct xccdf_value *value); |
| 2290 | |
| 2291 | /// @memberof xccdf_value_instance |
| 2292 | OSCAP_API void xccdf_value_instance_free(struct xccdf_value_instance *inst); |
| 2293 | /// @memberof xccdf_value |
| 2294 | OSCAP_API struct xccdf_value_instance *xccdf_value_new_instance(struct xccdf_value *val); |
| 2295 | /// @memberof xccdf_value_instance |
| 2296 | OSCAP_API const char *xccdf_value_instance_get_selector(const struct xccdf_value_instance *item); |
| 2297 | /// @memberof xccdf_value_instance |
| 2298 | OSCAP_API bool xccdf_value_instance_set_selector(struct xccdf_value_instance *obj, const char *newval); |
| 2299 | /// @memberof xccdf_value_instance |
| 2300 | OSCAP_API xccdf_value_type_t xccdf_value_instance_get_type(const struct xccdf_value_instance *item); |
| 2301 | /// @memberof xccdf_value_instance |
| 2302 | OSCAP_API bool xccdf_value_instance_get_must_match(const struct xccdf_value_instance *item); |
| 2303 | /// @memberof xccdf_value_instance |
| 2304 | OSCAP_API bool xccdf_value_instance_set_must_match(struct xccdf_value_instance *obj, bool newval); |
| 2305 | /// @memberof xccdf_value_instance |
| 2306 | OSCAP_API bool xccdf_value_instance_get_value_boolean(const struct xccdf_value_instance *inst); |
| 2307 | /// @memberof xccdf_value_instance |
| 2308 | OSCAP_API bool xccdf_value_instance_set_value_boolean(struct xccdf_value_instance *inst, bool newval); |
| 2309 | /// @memberof xccdf_value_instance |
| 2310 | OSCAP_API xccdf_numeric xccdf_value_instance_get_value_number(const struct xccdf_value_instance *inst); |
| 2311 | /// @memberof xccdf_value_instance |
| 2312 | OSCAP_API bool xccdf_value_instance_set_value_number(struct xccdf_value_instance *inst, xccdf_numeric newval); |
| 2313 | /// @memberof xccdf_value_instance |
| 2314 | OSCAP_API const char *xccdf_value_instance_get_value_string(const struct xccdf_value_instance *inst); |
| 2315 | /// @memberof xccdf_value_instance |
| 2316 | OSCAP_API bool xccdf_value_instance_set_value_string(struct xccdf_value_instance *inst, const char *newval); |
| 2317 | /// @memberof xccdf_value_instance |
| 2318 | OSCAP_API bool xccdf_value_instance_get_defval_boolean(const struct xccdf_value_instance *inst); |
| 2319 | /// @memberof xccdf_value_instance |
| 2320 | OSCAP_API bool xccdf_value_instance_set_defval_boolean(struct xccdf_value_instance *inst, bool newval); |
| 2321 | /// @memberof xccdf_value_instance |
| 2322 | OSCAP_API xccdf_numeric xccdf_value_instance_get_defval_number(const struct xccdf_value_instance *inst); |
| 2323 | /// @memberof xccdf_value_instance |
| 2324 | OSCAP_API bool xccdf_value_instance_set_defval_number(struct xccdf_value_instance *inst, xccdf_numeric newval); |
| 2325 | /// @memberof xccdf_value_instance |
| 2326 | OSCAP_API const char *xccdf_value_instance_get_defval_string(const struct xccdf_value_instance *inst); |
| 2327 | /// @memberof xccdf_value_instance |
| 2328 | OSCAP_API bool xccdf_value_instance_set_defval_string(struct xccdf_value_instance *inst, const char *newval); |
| 2329 | /// @memberof xccdf_value_instance |
| 2330 | OSCAP_API xccdf_numeric xccdf_value_instance_get_lower_bound(const struct xccdf_value_instance *inst); |
| 2331 | /// @memberof xccdf_value_instance |
| 2332 | OSCAP_API bool xccdf_value_instance_set_lower_bound(struct xccdf_value_instance *inst, xccdf_numeric newval); |
| 2333 | /// @memberof xccdf_value_instance |
| 2334 | OSCAP_API xccdf_numeric xccdf_value_instance_get_upper_bound(const struct xccdf_value_instance *inst); |
| 2335 | /// @memberof xccdf_value_instance |
| 2336 | OSCAP_API bool xccdf_value_instance_set_upper_bound(struct xccdf_value_instance *inst, xccdf_numeric newval); |
| 2337 | /// @memberof xccdf_value_instance |
| 2338 | OSCAP_API const char *xccdf_value_instance_get_match(const struct xccdf_value_instance *inst); |
| 2339 | /// @memberof xccdf_value_instance |
| 2340 | OSCAP_API bool xccdf_value_instance_set_match(struct xccdf_value_instance *inst, const char *newval); |
| 2341 | /// @memberof xccdf_value_instance |
| 2342 | OSCAP_API const char * xccdf_value_instance_get_value(const struct xccdf_value_instance * val); |
| 2343 | |
| 2344 | /** |
| 2345 | * Return value's parent in the grouping hierarchy. |
| 2346 | * Returned item will be either a value or a benchmark. |
| 2347 | * @memberof xccdf_value |
| 2348 | */ |
| 2349 | OSCAP_API struct xccdf_item *xccdf_value_get_parent(const struct xccdf_value *value); |
| 2350 | |
| 2351 | |
| 2352 | /// @memberof xccdf_status |
| 2353 | OSCAP_API time_t xccdf_status_get_date(const struct xccdf_status *status); |
| 2354 | /// @memberof xccdf_status |
| 2355 | OSCAP_API xccdf_status_type_t xccdf_status_get_status(const struct xccdf_status *status); |
| 2356 | /// @memberof xccdf_status |
| 2357 | OSCAP_API const char *xccdf_status_type_to_text(xccdf_status_type_t id); |
| 2358 | |
| 2359 | /// @memberof xccdf_notice |
| 2360 | OSCAP_API const char *xccdf_notice_get_id(const struct xccdf_notice *notice); |
| 2361 | /// @memberof xccdf_notice |
| 2362 | OSCAP_API struct oscap_text *xccdf_notice_get_text(const struct xccdf_notice *notice); |
| 2363 | /// @memberof xccdf_model |
| 2364 | OSCAP_API const char *xccdf_model_get_system(const struct xccdf_model *model); |
| 2365 | /// @memberof xccdf_ident |
| 2366 | OSCAP_API const char *xccdf_ident_get_id(const struct xccdf_ident *ident); |
| 2367 | /// @memberof xccdf_ident |
| 2368 | OSCAP_API const char *xccdf_ident_get_system(const struct xccdf_ident *ident); |
| 2369 | /// @memberof xccdf_check |
| 2370 | OSCAP_API const char *xccdf_check_get_id(const struct xccdf_check *check); |
| 2371 | |
| 2372 | /** |
| 2373 | * True if the check is a complex check. |
| 2374 | * @memberof xccdf_check |
| 2375 | * @see xccdf_check_get_children |
| 2376 | */ |
| 2377 | OSCAP_API bool xccdf_check_get_complex(const struct xccdf_check *check); |
| 2378 | |
| 2379 | /** |
| 2380 | * Get an operator to be applied no children of the complex check. |
| 2381 | * @memberof xccdf_check |
| 2382 | * @see xccdf_check_get_children |
| 2383 | */ |
| 2384 | OSCAP_API xccdf_bool_operator_t xccdf_check_get_oper(const struct xccdf_check *check); |
| 2385 | /// @memberof xccdf_check |
| 2386 | OSCAP_API const char *xccdf_check_get_system(const struct xccdf_check *check); |
| 2387 | /// @memberof xccdf_check |
| 2388 | OSCAP_API const char *xccdf_check_get_selector(const struct xccdf_check *check); |
| 2389 | /// @memberof xccdf_check |
| 2390 | OSCAP_API const char *xccdf_check_get_content(const struct xccdf_check *check); |
| 2391 | /// @memberof xccdf_check |
| 2392 | OSCAP_API bool xccdf_check_get_multicheck(const struct xccdf_check *check); |
| 2393 | /// @memberof xccdf_check |
| 2394 | OSCAP_API bool xccdf_check_get_negate(const struct xccdf_check *check); |
| 2395 | /// @memberof xccdf_check |
| 2396 | //struct xccdf_rule *xccdf_check_get_parent(const struct xccdf_check *check); |
| 2397 | /** |
| 2398 | * Get an iterator to nested checks of the complex check. |
| 2399 | * @memberof xccdf_check |
| 2400 | * @see xccdf_check_get_export |
| 2401 | */ |
| 2402 | OSCAP_API struct xccdf_check_iterator *xccdf_check_get_children(const struct xccdf_check *check); |
| 2403 | |
| 2404 | /// @memberof xccdf_check_content_ref |
| 2405 | OSCAP_API const char *xccdf_check_content_ref_get_href(const struct xccdf_check_content_ref *ref); |
| 2406 | /// @memberof xccdf_check_content_ref |
| 2407 | OSCAP_API const char *xccdf_check_content_ref_get_name(const struct xccdf_check_content_ref *ref); |
| 2408 | /// @memberof xccdf_profile_note |
| 2409 | OSCAP_API const char *xccdf_profile_note_get_reftag(const struct xccdf_profile_note *note); |
| 2410 | /// @memberof xccdf_profile_note |
| 2411 | OSCAP_API struct oscap_text *xccdf_profile_note_get_text(const struct xccdf_profile_note *note); |
| 2412 | /// @memberof xccdf_check_import |
| 2413 | OSCAP_API const char *xccdf_check_import_get_name(const struct xccdf_check_import *item); |
| 2414 | /// @memberof xccdf_check_import |
| 2415 | OSCAP_API const char *xccdf_check_import_get_xpath(const struct xccdf_check_import *item); |
| 2416 | /// @memberof xccdf_check_import |
| 2417 | OSCAP_API const char *xccdf_check_import_get_content(const struct xccdf_check_import *item); |
| 2418 | /// @memberof xccdf_check_export |
| 2419 | OSCAP_API const char *xccdf_check_export_get_value(const struct xccdf_check_export *item); |
| 2420 | /// @memberof xccdf_check_export |
| 2421 | OSCAP_API const char *xccdf_check_export_get_name(const struct xccdf_check_export *item); |
| 2422 | |
| 2423 | /// @memberof xccdf_fix |
| 2424 | OSCAP_API const char *xccdf_fix_get_content(const struct xccdf_fix *fix); |
| 2425 | /// @memberof xccdf_fix |
| 2426 | OSCAP_API bool xccdf_fix_get_reboot(const struct xccdf_fix *fix); |
| 2427 | /// @memberof xccdf_fix |
| 2428 | OSCAP_API xccdf_strategy_t xccdf_fix_get_strategy(const struct xccdf_fix *fix); |
| 2429 | /// @memberof xccdf_fix |
| 2430 | OSCAP_API xccdf_level_t xccdf_fix_get_complexity(const struct xccdf_fix *fix); |
| 2431 | /// @memberof xccdf_fix |
| 2432 | OSCAP_API xccdf_level_t xccdf_fix_get_disruption(const struct xccdf_fix *fix); |
| 2433 | /// @memberof xccdf_fix |
| 2434 | OSCAP_API const char *xccdf_fix_get_id(const struct xccdf_fix *fix); |
| 2435 | /// @memberof xccdf_fix |
| 2436 | OSCAP_API const char *xccdf_fix_get_system(const struct xccdf_fix *fix); |
| 2437 | /// @memberof xccdf_fix |
| 2438 | OSCAP_API const char *xccdf_fix_get_platform(const struct xccdf_fix *fix); |
| 2439 | /// @memberof xccdf_fixtext |
| 2440 | OSCAP_API bool xccdf_fixtext_get_reboot(const struct xccdf_fixtext *fixtext); |
| 2441 | /// @memberof xccdf_fixtext |
| 2442 | OSCAP_API xccdf_strategy_t xccdf_fixtext_get_strategy(const struct xccdf_fixtext *fixtext); |
| 2443 | /// @memberof xccdf_fixtext |
| 2444 | OSCAP_API xccdf_level_t xccdf_fixtext_get_complexity(const struct xccdf_fixtext *fixtext); |
| 2445 | /// @memberof xccdf_fixtext |
| 2446 | OSCAP_API xccdf_level_t xccdf_fixtext_get_disruption(const struct xccdf_fixtext *fixtext); |
| 2447 | /// @memberof xccdf_fixtext |
| 2448 | OSCAP_API const char *xccdf_fixtext_get_fixref(const struct xccdf_fixtext *fixtext); |
| 2449 | /// @memberof xccdf_fixtext |
| 2450 | OSCAP_API struct oscap_text *xccdf_fixtext_get_text(const struct xccdf_fixtext *fixtext); |
| 2451 | /// @memberof xccdf_value |
| 2452 | OSCAP_API const char *xccdf_value_get_version(const struct xccdf_value *value); |
| 2453 | /// @memberof xccdf_value |
| 2454 | OSCAP_API struct oscap_text_iterator *xccdf_value_get_question(const struct xccdf_value *value); |
| 2455 | /// @memberof xccdf_value |
| 2456 | OSCAP_API struct xccdf_warning_iterator *xccdf_value_get_warnings(const struct xccdf_value *value); |
| 2457 | /// @memberof xccdf_value |
| 2458 | OSCAP_API const char *xccdf_value_get_version_update(const struct xccdf_value *value); |
| 2459 | /// @memberof xccdf_value |
| 2460 | OSCAP_API const char *xccdf_value_get_version_time(const struct xccdf_value *value); |
| 2461 | /// @memberof xccdf_value |
| 2462 | OSCAP_API struct xccdf_benchmark *xccdf_value_get_benchmark(const struct xccdf_value *value); |
| 2463 | /// @memberof xccdf_value |
| 2464 | OSCAP_API struct oscap_string_iterator *xccdf_value_get_sources(const struct xccdf_value *value); |
| 2465 | /// @memberof xccdf_value |
| 2466 | OSCAP_API const char *xccdf_value_get_cluster_id(const struct xccdf_value *value); |
| 2467 | |
| 2468 | /// @memberof xccdf_item |
| 2469 | OSCAP_API struct oscap_text_iterator *xccdf_item_get_question(const struct xccdf_item *item); |
| 2470 | /// @memberof xccdf_item |
| 2471 | OSCAP_API struct xccdf_warning_iterator *xccdf_item_get_warnings(const struct xccdf_item *item); |
| 2472 | /// @memberof xccdf_item |
| 2473 | OSCAP_API struct oscap_text_iterator *xccdf_item_get_rationale(const struct xccdf_item *item); |
| 2474 | /// @memberof xccdf_item |
| 2475 | OSCAP_API const char *xccdf_item_get_cluster_id(const struct xccdf_item *item); |
| 2476 | /// @memberof xccdf_item |
| 2477 | OSCAP_API const char *xccdf_item_get_version_update(const struct xccdf_item *item); |
| 2478 | /// @memberof xccdf_item |
| 2479 | OSCAP_API const char *xccdf_item_get_version_time(const struct xccdf_item *item); |
| 2480 | /// @memberof xccdf_item |
| 2481 | OSCAP_API float xccdf_item_get_weight(const struct xccdf_item *item); |
| 2482 | /// @memberof xccdf_item |
| 2483 | OSCAP_API struct xccdf_benchmark *xccdf_item_get_benchmark(const struct xccdf_item *item); |
| 2484 | /// @memberof xccdf_item |
| 2485 | OSCAP_API struct oscap_string_iterator *xccdf_item_get_platforms(const struct xccdf_item *item); |
| 2486 | |
| 2487 | /// @memberof xccdf_benchmark |
| 2488 | OSCAP_API struct xccdf_warning_iterator *xccdf_benchmark_get_warnings(const struct xccdf_benchmark *benchmark); |
| 2489 | /// @memberof xccdf_benchmark |
| 2490 | OSCAP_API const char *xccdf_benchmark_get_version_update(const struct xccdf_benchmark *benchmark); |
| 2491 | /// @memberof xccdf_benchmark |
| 2492 | OSCAP_API const char *xccdf_benchmark_get_version_time(const struct xccdf_benchmark *benchmark); |
| 2493 | |
| 2494 | /// @memberof xccdf_profile |
| 2495 | OSCAP_API const char *xccdf_profile_get_version_update(const struct xccdf_profile *profile); |
| 2496 | /// @memberof xccdf_profile |
| 2497 | OSCAP_API const char *xccdf_profile_get_version_time(const struct xccdf_profile *profile); |
| 2498 | /// @memberof xccdf_profile |
| 2499 | OSCAP_API bool xccdf_profile_get_tailoring(const struct xccdf_profile *profile); |
| 2500 | /// @memberof xccdf_profile |
| 2501 | OSCAP_API const char *xccdf_profile_get_note_tag(const struct xccdf_profile *profile); |
| 2502 | |
| 2503 | /// @memberof xccdf_rule |
| 2504 | OSCAP_API const char *xccdf_rule_get_version_update(const struct xccdf_rule *rule); |
| 2505 | /// @memberof xccdf_rule |
| 2506 | OSCAP_API const char *xccdf_rule_get_version_time(const struct xccdf_rule *rule); |
| 2507 | /// @memberof xccdf_rule |
| 2508 | OSCAP_API struct xccdf_benchmark *xccdf_rule_get_benchmark(const struct xccdf_rule *rule); |
| 2509 | |
| 2510 | /// @memberof xccdf_group |
| 2511 | OSCAP_API const char *xccdf_group_get_version_time(const struct xccdf_group *group); |
| 2512 | /// @memberof xccdf_group |
| 2513 | OSCAP_API const char *xccdf_group_get_version_update(const struct xccdf_group *group); |
| 2514 | /// @memberof xccdf_group |
| 2515 | OSCAP_API struct xccdf_benchmark *xccdf_group_get_benchmark(const struct xccdf_group *group); |
| 2516 | |
| 2517 | /// @memberof xccdf_check |
| 2518 | OSCAP_API struct xccdf_check_import_iterator *xccdf_check_get_imports(const struct xccdf_check *check); |
| 2519 | /// @memberof xccdf_check |
| 2520 | OSCAP_API struct xccdf_check_export_iterator *xccdf_check_get_exports(const struct xccdf_check *check); |
| 2521 | /// @memberof xccdf_check |
| 2522 | OSCAP_API struct xccdf_check_content_ref_iterator *xccdf_check_get_content_refs(const struct xccdf_check *check); |
| 2523 | |
| 2524 | /// @memberof xccdf_select |
| 2525 | OSCAP_API bool xccdf_select_get_selected(const struct xccdf_select *select); |
| 2526 | /// @memberof xccdf_select |
| 2527 | OSCAP_API const char *xccdf_select_get_item(const struct xccdf_select *select); |
| 2528 | /// @memberof xccdf_select |
| 2529 | OSCAP_API struct oscap_text_iterator *xccdf_select_get_remarks(const struct xccdf_select *select); |
| 2530 | |
| 2531 | /// @memberof xccdf_warning |
| 2532 | OSCAP_API xccdf_warning_category_t xccdf_warning_get_category(const struct xccdf_warning *warning); |
| 2533 | /// @memberof xccdf_warning |
| 2534 | OSCAP_API struct oscap_text *xccdf_warning_get_text(const struct xccdf_warning *warning); |
| 2535 | /// @memberof xccdf_refine_rule |
| 2536 | OSCAP_API const char * xccdf_refine_rule_get_item(const struct xccdf_refine_rule* rr); |
| 2537 | /// @memberof xccdf_refine_rule |
| 2538 | OSCAP_API const char * xccdf_refine_rule_get_selector(const struct xccdf_refine_rule* rr); |
| 2539 | /// @memberof xccdf_refine_rule |
| 2540 | OSCAP_API xccdf_role_t xccdf_refine_rule_get_role(const struct xccdf_refine_rule* rr); |
| 2541 | /// @memberof xccdf_refine_rule |
| 2542 | OSCAP_API xccdf_level_t xccdf_refine_rule_get_severity(const struct xccdf_refine_rule* rr); |
| 2543 | /// @memberof xccdf_refine_rule |
| 2544 | OSCAP_API struct oscap_text_iterator* xccdf_refine_rule_get_remarks(const struct xccdf_refine_rule *rr); |
| 2545 | /// @memberof xccdf_refine_rule |
| 2546 | OSCAP_API xccdf_numeric xccdf_refine_rule_get_weight(const struct xccdf_refine_rule *item); |
| 2547 | /// @memberof xccdf_refine_rule |
| 2548 | OSCAP_API bool xccdf_refine_rule_weight_defined(const struct xccdf_refine_rule *item); |
| 2549 | /// @memberof xccdf_refine_value |
| 2550 | OSCAP_API const char * xccdf_refine_value_get_item(const struct xccdf_refine_value* rv); |
| 2551 | /// @memberof xccdf_refine_value |
| 2552 | OSCAP_API const char * xccdf_refine_value_get_selector(const struct xccdf_refine_value* rv); |
| 2553 | /// @memberof xccdf_refine_value |
| 2554 | OSCAP_API xccdf_operator_t xccdf_refine_value_get_oper(const struct xccdf_refine_value* rv); |
| 2555 | /// @memberof xccdf_refine_value |
| 2556 | OSCAP_API struct oscap_text_iterator* xccdf_refine_value_get_remarks(const struct xccdf_refine_value *rv); |
| 2557 | /// @memberof xccdf_set_value |
| 2558 | OSCAP_API const char *xccdf_setvalue_get_item(const struct xccdf_setvalue* sv); |
| 2559 | /// @memberof xccdf_set_value |
| 2560 | OSCAP_API const char *xccdf_setvalue_get_value(const struct xccdf_setvalue* sv); |
| 2561 | |
| 2562 | /// @memberof xccdf_plain_text |
| 2563 | OSCAP_API const char *xccdf_plain_text_get_id(const struct xccdf_plain_text *item); |
| 2564 | /// @memberof xccdf_plain_text |
| 2565 | OSCAP_API const char *xccdf_plain_text_get_text(const struct xccdf_plain_text *item); |
| 2566 | |
| 2567 | /// @memberof xccdf_result |
| 2568 | OSCAP_API struct xccdf_benchmark *xccdf_result_get_benchmark(const struct xccdf_result *item); |
| 2569 | /// @memberof xccdf_result |
| 2570 | OSCAP_API const char *xccdf_result_get_id(const struct xccdf_result *item); |
| 2571 | /// @memberof xccdf_result |
| 2572 | OSCAP_API struct oscap_text_iterator *xccdf_result_get_title(const struct xccdf_result *item); |
| 2573 | /// @memberof xccdf_result |
| 2574 | OSCAP_API const char *xccdf_result_get_version(const struct xccdf_result *item); |
| 2575 | /// @memberof xccdf_result |
| 2576 | OSCAP_API struct oscap_string_iterator *xccdf_result_get_platforms(const struct xccdf_result *item); |
| 2577 | /// @memberof xccdf_result |
| 2578 | OSCAP_API struct xccdf_status_iterator *xccdf_result_get_statuses(const struct xccdf_result *item); |
| 2579 | /// @memberof xccdf_result |
| 2580 | OSCAP_API const char *xccdf_result_get_test_system(const struct xccdf_result *item); |
| 2581 | /// @memberof xccdf_result |
| 2582 | OSCAP_API const char *xccdf_result_get_benchmark_uri(const struct xccdf_result *item); |
| 2583 | /// @memberof xccdf_result |
| 2584 | OSCAP_API const char *xccdf_result_get_profile(const struct xccdf_result *item); |
| 2585 | /// @memberof xccdf_result |
| 2586 | OSCAP_API struct xccdf_identity_iterator *xccdf_result_get_identities(const struct xccdf_result *item); |
| 2587 | /// @memberof xccdf_result |
| 2588 | OSCAP_API struct oscap_string_iterator *xccdf_result_get_targets(const struct xccdf_result *item); |
| 2589 | /// @memberof xccdf_result |
| 2590 | OSCAP_API struct oscap_string_iterator *xccdf_result_get_target_addresses(const struct xccdf_result *item); |
| 2591 | /// @memberof xccdf_result |
| 2592 | OSCAP_API struct oscap_string_iterator *xccdf_result_get_applicable_platforms(const struct xccdf_result *item); |
| 2593 | /// @memberof xccdf_result |
| 2594 | OSCAP_API struct oscap_string_iterator *xccdf_result_get_organizations(const struct xccdf_result *item); |
| 2595 | /// @memberof xccdf_result |
| 2596 | OSCAP_API struct oscap_text_iterator *xccdf_result_get_remarks(const struct xccdf_result *item); |
| 2597 | /// @memberof xccdf_result |
| 2598 | OSCAP_API struct xccdf_target_fact_iterator *xccdf_result_get_target_facts(const struct xccdf_result *item); |
| 2599 | /// @memberof xccdf_result |
| 2600 | OSCAP_API struct xccdf_target_identifier_iterator *xccdf_result_get_target_id_refs(const struct xccdf_result *item); |
| 2601 | /// @memberof xccdf_result |
| 2602 | OSCAP_API struct xccdf_setvalue_iterator *xccdf_result_get_setvalues(const struct xccdf_result *item); |
| 2603 | /// @memberof xccdf_result |
| 2604 | OSCAP_API struct xccdf_rule_result_iterator *xccdf_result_get_rule_results(const struct xccdf_result *item); |
| 2605 | /// @memberof xccdf_result |
| 2606 | OSCAP_API struct xccdf_score_iterator *xccdf_result_get_scores(const struct xccdf_result *item); |
| 2607 | /// @memberof xccdf_result |
| 2608 | OSCAP_API const char * xccdf_result_get_start_time(const struct xccdf_result *item); |
| 2609 | /// @memberof xccdf_result |
| 2610 | OSCAP_API const char * xccdf_result_get_end_time(const struct xccdf_result *item); |
| 2611 | /// @memberof xccdf_result |
| 2612 | OSCAP_API struct oscap_string_iterator *xccdf_result_get_metadata(const struct xccdf_result *result); |
| 2613 | |
| 2614 | /** |
| 2615 | * Override the result of rule-result. |
| 2616 | * @memberof xccdf_rule_result |
| 2617 | * @param rule_result The rule-result element to override |
| 2618 | * @param new_result to set |
| 2619 | * @param time The time of override |
| 2620 | * @param authority identifier of person overriding the result |
| 2621 | * @param remark Rationale of the override |
| 2622 | * @returns true on success |
| 2623 | */ |
| 2624 | 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); |
| 2625 | |
| 2626 | /// @memberof xccdf_rule_result |
| 2627 | OSCAP_API const char * xccdf_rule_result_get_time(const struct xccdf_rule_result *item); |
| 2628 | /// @memberof xccdf_rule_result |
| 2629 | OSCAP_API xccdf_role_t xccdf_rule_result_get_role(const struct xccdf_rule_result *item); |
| 2630 | /// @memberof xccdf_rule_result |
| 2631 | OSCAP_API float xccdf_rule_result_get_weight(const struct xccdf_rule_result *item); |
| 2632 | /// @memberof xccdf_rule_result |
| 2633 | OSCAP_API xccdf_level_t xccdf_rule_result_get_severity(const struct xccdf_rule_result *item); |
| 2634 | /// @memberof xccdf_rule_result |
| 2635 | OSCAP_API xccdf_test_result_type_t xccdf_rule_result_get_result(const struct xccdf_rule_result *item); |
| 2636 | /// @memberof xccdf_rule_result |
| 2637 | OSCAP_API const char *xccdf_rule_result_get_version(const struct xccdf_rule_result *item); |
| 2638 | /// @memberof xccdf_rule_result |
| 2639 | OSCAP_API const char *xccdf_rule_result_get_idref(const struct xccdf_rule_result *item); |
| 2640 | /// @memberof xccdf_rule_result |
| 2641 | OSCAP_API struct xccdf_ident_iterator *xccdf_rule_result_get_idents(const struct xccdf_rule_result *item); |
| 2642 | /// @memberof xccdf_rule_result |
| 2643 | OSCAP_API struct xccdf_fix_iterator *xccdf_rule_result_get_fixes(const struct xccdf_rule_result *item); |
| 2644 | /// @memberof xccdf_rule_result |
| 2645 | OSCAP_API struct xccdf_check_iterator *xccdf_rule_result_get_checks(const struct xccdf_rule_result *item); |
| 2646 | /// @memberof xccdf_rule_result |
| 2647 | OSCAP_API struct xccdf_override_iterator *xccdf_rule_result_get_overrides(const struct xccdf_rule_result *item); |
| 2648 | /// @memberof xccdf_rule_result |
| 2649 | OSCAP_API struct xccdf_message_iterator *xccdf_rule_result_get_messages(const struct xccdf_rule_result *item); |
| 2650 | /// @memberof xccdf_rule_result |
| 2651 | OSCAP_API struct xccdf_instance_iterator *xccdf_rule_result_get_instances(const struct xccdf_rule_result *item); |
| 2652 | /// @memberof xccdf_identity |
| 2653 | OSCAP_API bool xccdf_identity_get_authenticated(const struct xccdf_identity *item); |
| 2654 | /// @memberof xccdf_identity |
| 2655 | OSCAP_API bool xccdf_identity_get_privileged(const struct xccdf_identity *item); |
| 2656 | /// @memberof xccdf_identity |
| 2657 | OSCAP_API const char *xccdf_identity_get_name(const struct xccdf_identity *item); |
| 2658 | /// @memberof xccdf_score |
| 2659 | OSCAP_API xccdf_numeric xccdf_score_get_maximum(const struct xccdf_score *item); |
| 2660 | /// @memberof xccdf_score |
| 2661 | OSCAP_API xccdf_numeric xccdf_score_get_score(const struct xccdf_score *item); |
| 2662 | /// @memberof xccdf_score |
| 2663 | OSCAP_API const char *xccdf_score_get_system(const struct xccdf_score *item); |
| 2664 | /// @memberof xccdf_override |
| 2665 | OSCAP_API const char *xccdf_override_get_time(const struct xccdf_override *item); |
| 2666 | /// @memberof xccdf_override |
| 2667 | OSCAP_API xccdf_test_result_type_t xccdf_override_get_new_result(const struct xccdf_override *item); |
| 2668 | /// @memberof xccdf_override |
| 2669 | OSCAP_API xccdf_test_result_type_t xccdf_override_get_old_result(const struct xccdf_override *item); |
| 2670 | /// @memberof xccdf_override |
| 2671 | OSCAP_API const char *xccdf_override_get_authority(const struct xccdf_override *item); |
| 2672 | /// @memberof xccdf_override |
| 2673 | OSCAP_API struct oscap_text *xccdf_override_get_remark(const struct xccdf_override *item); |
| 2674 | /// @memberof xccdf_message |
| 2675 | OSCAP_API xccdf_message_severity_t xccdf_message_get_severity(const struct xccdf_message *item); |
| 2676 | /// @memberof xccdf_message |
| 2677 | OSCAP_API const char *xccdf_message_get_content(const struct xccdf_message *item); |
| 2678 | /// @memberof xccdf_target_fact |
| 2679 | OSCAP_API xccdf_value_type_t xccdf_target_fact_get_type(const struct xccdf_target_fact *item); |
| 2680 | /// @memberof xccdf_target_fact |
| 2681 | OSCAP_API const char *xccdf_target_fact_get_value(const struct xccdf_target_fact *item); |
| 2682 | /// @memberof xccdf_target_fact |
| 2683 | OSCAP_API const char *xccdf_target_fact_get_name(const struct xccdf_target_fact *item); |
| 2684 | /// @memberof xccdf_target_identifier |
| 2685 | OSCAP_API void* xccdf_target_identifier_get_xml_node(const struct xccdf_target_identifier *item); |
| 2686 | /// @memberof xccdf_target_identifier |
| 2687 | OSCAP_API const char *xccdf_target_identifier_get_system(const struct xccdf_target_identifier *item); |
| 2688 | /// @memberof xccdf_target_identifier |
| 2689 | OSCAP_API const char *xccdf_target_identifier_get_href(const struct xccdf_target_identifier *item); |
| 2690 | /// @memberof xccdf_target_identifier |
| 2691 | OSCAP_API const char *xccdf_target_identifier_get_name(const struct xccdf_target_identifier *item); |
| 2692 | /// @memberof xccdf_instance |
| 2693 | OSCAP_API const char *xccdf_instance_get_context(const struct xccdf_instance *item); |
| 2694 | /// @memberof xccdf_instance |
| 2695 | OSCAP_API const char *xccdf_instance_get_parent_context(const struct xccdf_instance *item); |
| 2696 | /// @memberof xccdf_instance |
| 2697 | OSCAP_API const char *xccdf_instance_get_content(const struct xccdf_instance *item); |
| 2698 | /// @memberof xccdf_tailoring |
| 2699 | OSCAP_API struct xccdf_tailoring *xccdf_tailoring_import_source(struct oscap_source *source, struct xccdf_benchmark *benchmark); |
| 2700 | /// @memberof xccdf_tailoring |
| 2701 | OSCAP_API const char *xccdf_tailoring_get_id(const struct xccdf_tailoring *tailoring); |
| 2702 | /// @memberof xccdf_tailoring |
| 2703 | OSCAP_API const char *xccdf_tailoring_get_version(const struct xccdf_tailoring *tailoring); |
| 2704 | /// @memberof xccdf_tailoring |
| 2705 | OSCAP_API const char *xccdf_tailoring_get_version_update(const struct xccdf_tailoring *tailoring); |
| 2706 | /// @memberof xccdf_tailoring |
| 2707 | OSCAP_API const char *xccdf_tailoring_get_version_time(const struct xccdf_tailoring *tailoring); |
| 2708 | /// @memberof xccdf_tailoring |
| 2709 | OSCAP_API const char *xccdf_tailoring_get_benchmark_ref(const struct xccdf_tailoring *tailoring); |
| 2710 | /// @memberof xccdf_tailoring |
| 2711 | OSCAP_API const char *xccdf_tailoring_get_benchmark_ref_version(const struct xccdf_tailoring *tailoring); |
| 2712 | /// @memberof xccdf_tailoring |
| 2713 | OSCAP_API struct oscap_string_iterator *xccdf_tailoring_get_metadata(const struct xccdf_tailoring *tailoring); |
| 2714 | /// @memberof xccdf_tailoring |
| 2715 | OSCAP_API struct xccdf_profile_iterator *xccdf_tailoring_get_profiles(const struct xccdf_tailoring *tailoring); |
| 2716 | /// @memberof xccdf_tailoring |
| 2717 | OSCAP_API struct xccdf_status_iterator *xccdf_tailoring_get_statuses(const struct xccdf_tailoring *tailoring); |
| 2718 | /// @memberof xccdf_tailoring |
| 2719 | OSCAP_API struct oscap_reference_iterator *xccdf_tailoring_get_dc_statuses(const struct xccdf_tailoring *tailoring); |
| 2720 | /** |
| 2721 | * @param profile_id id of the profile that should be returned or NULL for default profile |
| 2722 | * @note |
| 2723 | * Unlike in XCCDF Benchmark, the default profile from Tailoring element needn't |
| 2724 | * match the "selected" attribute from each individual XCCDF Item. |
| 2725 | * @memberof xccdf_tailoring |
| 2726 | */ |
| 2727 | OSCAP_API struct xccdf_profile *xccdf_tailoring_get_profile_by_id(const struct xccdf_tailoring *tailoring, const char *profile_id); |
| 2728 | |
| 2729 | /************************************************************ |
| 2730 | ** @} End of Getters group */ |
| 2731 | |
| 2732 | /************************************************************/ |
| 2733 | /** |
| 2734 | * @name Setters |
| 2735 | * For lists use add functions. Parameters of set functions are duplicated in memory and need to |
| 2736 | * be freed by caller. |
| 2737 | * @{ |
| 2738 | */ |
| 2739 | |
| 2740 | /// @memberof xccdf_item |
| 2741 | OSCAP_API bool xccdf_item_set_weight(struct xccdf_item *item, xccdf_numeric newval); |
| 2742 | /// @memberof xccdf_item |
| 2743 | OSCAP_API bool xccdf_item_set_id(struct xccdf_item *item, const char *newval); |
| 2744 | /// @memberof xccdf_item |
| 2745 | OSCAP_API bool xccdf_item_set_cluster_id(struct xccdf_item *item, const char *newval); |
| 2746 | /// @memberof xccdf_item |
| 2747 | OSCAP_API bool xccdf_item_set_extends(struct xccdf_item *item, const char *newval); |
| 2748 | /// @memberof xccdf_item |
| 2749 | OSCAP_API bool xccdf_item_set_version(struct xccdf_item *item, const char *newval); |
| 2750 | /// @memberof xccdf_item |
| 2751 | OSCAP_API bool xccdf_item_set_version_time(struct xccdf_item *item, const char *newval); |
| 2752 | /// @memberof xccdf_item |
| 2753 | OSCAP_API bool xccdf_item_set_version_update(struct xccdf_item *item, const char *newval); |
| 2754 | /// @memberof xccdf_item |
| 2755 | OSCAP_API bool xccdf_item_set_abstract(struct xccdf_item *item, bool newval); |
| 2756 | /// @memberof xccdf_item |
| 2757 | OSCAP_API bool xccdf_item_set_hidden(struct xccdf_item *item, bool newval); |
| 2758 | /// @memberof xccdf_item |
| 2759 | OSCAP_API bool xccdf_item_set_prohibit_changes(struct xccdf_item *item, bool newval); |
| 2760 | /// @memberof xccdf_item |
| 2761 | OSCAP_API bool xccdf_item_set_selected(struct xccdf_item *item, bool newval); |
| 2762 | |
| 2763 | /// @memberof xccdf_item |
| 2764 | OSCAP_API bool xccdf_item_add_metadata(struct xccdf_item *item, const char* metadata); |
| 2765 | |
| 2766 | /// @memberof xccdf_benchmark |
| 2767 | OSCAP_API bool xccdf_benchmark_set_resolved(struct xccdf_benchmark *item, bool newval); |
| 2768 | |
| 2769 | /// @memberof xccdf_benchmark |
| 2770 | OSCAP_API bool xccdf_benchmark_set_style_href(struct xccdf_benchmark *item, const char *newval); |
| 2771 | /// @memberof xccdf_benchmark |
| 2772 | OSCAP_API bool xccdf_benchmark_set_style(struct xccdf_benchmark *item, const char *newval); |
| 2773 | /// @memberof xccdf_benchmark |
| 2774 | OSCAP_API bool xccdf_benchmark_set_id(struct xccdf_benchmark *item, const char *newval); |
| 2775 | /// @memberof xccdf_benchmark |
| 2776 | OSCAP_API bool xccdf_benchmark_set_version(struct xccdf_benchmark *item, const char *newval); |
| 2777 | /// @memberof xccdf_benchmark |
| 2778 | OSCAP_API bool xccdf_benchmark_set_version_time(struct xccdf_benchmark *item, const char *newval); |
| 2779 | /// @memberof xccdf_benchmark |
| 2780 | OSCAP_API bool xccdf_benchmark_set_version_update(struct xccdf_benchmark *item, const char *newval); |
| 2781 | /// @memberof xccdf_benchmark |
| 2782 | OSCAP_API bool xccdf_benchmark_set_schema_version(struct xccdf_benchmark* item, const struct xccdf_version_info* newval); |
| 2783 | /// @memberof xccdf_benchmark |
| 2784 | OSCAP_API bool xccdf_benchmark_add_metadata(struct xccdf_benchmark* item, const char* metadata); |
| 2785 | /// @memberof xccdf_benchmark |
| 2786 | OSCAP_API bool xccdf_benchmark_set_cpe_list(struct xccdf_benchmark* item, struct cpe_dict_model* cpe_list); |
| 2787 | /// @memberof xccdf_benchmark |
| 2788 | OSCAP_API bool xccdf_benchmark_set_cpe_lang_model(struct xccdf_benchmark* item, struct cpe_lang_model* cpe_lang_model); |
| 2789 | /// @memberof xccdf_profile |
| 2790 | OSCAP_API bool xccdf_profile_set_note_tag(struct xccdf_profile *item, const char *newval); |
| 2791 | /// @memberof xccdf_profile |
| 2792 | OSCAP_API bool xccdf_profile_set_id(struct xccdf_profile *item, const char *newval); |
| 2793 | /// @memberof xccdf_profile |
| 2794 | OSCAP_API bool xccdf_profile_set_abstract(struct xccdf_profile *item, bool newval); |
| 2795 | /// @memberof xccdf_profile |
| 2796 | OSCAP_API bool xccdf_profile_set_prohibit_changes(struct xccdf_profile *item, bool newval); |
| 2797 | /// @memberof xccdf_profile |
| 2798 | OSCAP_API bool xccdf_profile_set_extends(struct xccdf_profile *item, const char *newval); |
| 2799 | /// @memberof xccdf_profile |
| 2800 | OSCAP_API bool xccdf_profile_set_version(struct xccdf_profile *item, const char *newval); |
| 2801 | /// @memberof xccdf_profile |
| 2802 | OSCAP_API bool xccdf_profile_set_version_time(struct xccdf_profile *item, const char *newval); |
| 2803 | /// @memberof xccdf_profile |
| 2804 | OSCAP_API bool xccdf_profile_set_version_update(struct xccdf_profile *item, const char *newval); |
| 2805 | /// @memberof xccdf_profile |
| 2806 | OSCAP_API bool xccdf_profile_set_tailoring(struct xccdf_profile *item, bool tailoring); |
| 2807 | /// @memberof xccdf_profile |
| 2808 | OSCAP_API bool xccdf_profile_add_metadata(struct xccdf_profile* item, const char* metadata); |
| 2809 | |
| 2810 | /// @memberof xccdf_rule |
| 2811 | OSCAP_API bool xccdf_rule_set_id(struct xccdf_rule *item, const char *newval); |
| 2812 | /// @memberof xccdf_rule |
| 2813 | OSCAP_API bool xccdf_rule_set_cluster_id(struct xccdf_rule *item, const char *newval); |
| 2814 | /// @memberof xccdf_rule |
| 2815 | OSCAP_API bool xccdf_rule_set_extends(struct xccdf_rule *item, const char *newval); |
| 2816 | /// @memberof xccdf_rule |
| 2817 | OSCAP_API bool xccdf_rule_set_version(struct xccdf_rule *item, const char *newval); |
| 2818 | /// @memberof xccdf_rule |
| 2819 | OSCAP_API bool xccdf_rule_set_version_time(struct xccdf_rule *item, const char *newval); |
| 2820 | /// @memberof xccdf_rule |
| 2821 | OSCAP_API bool xccdf_rule_set_version_update(struct xccdf_rule *item, const char *newval); |
| 2822 | /// @memberof xccdf_rule |
| 2823 | OSCAP_API bool xccdf_rule_set_abstract(struct xccdf_rule *item, bool newval); |
| 2824 | /// @memberof xccdf_rule |
| 2825 | OSCAP_API bool xccdf_rule_set_hidden(struct xccdf_rule *item, bool newval); |
| 2826 | /// @memberof xccdf_rule |
| 2827 | OSCAP_API bool xccdf_rule_set_prohibit_changes(struct xccdf_rule *item, bool newval); |
| 2828 | /// @memberof xccdf_rule |
| 2829 | OSCAP_API bool xccdf_rule_set_selected(struct xccdf_rule *item, bool newval); |
| 2830 | /// @memberof xccdf_rule |
| 2831 | OSCAP_API bool xccdf_rule_set_multiple(struct xccdf_rule *item, bool newval); |
| 2832 | /// @memberof xccdf_rule |
| 2833 | //bool xccdf_rule_set_selector(struct xccdf_rule *item, const char * selector); |
| 2834 | /// @memberof xccdf_rule |
| 2835 | OSCAP_API bool xccdf_rule_set_impact_metric(struct xccdf_rule *item, const char *newval); |
| 2836 | /// @memberof xccdf_rule |
| 2837 | OSCAP_API bool xccdf_rule_set_role(struct xccdf_rule *item, xccdf_role_t newval); |
| 2838 | /// @memberof xccdf_rule |
| 2839 | OSCAP_API bool xccdf_rule_set_severity(struct xccdf_rule *item, xccdf_level_t newval); |
| 2840 | /// @memberof xccdf_rule |
| 2841 | OSCAP_API bool xccdf_rule_add_metadata(struct xccdf_rule* item, const char* metadata); |
| 2842 | |
| 2843 | /// @memberof xccdf_group |
| 2844 | OSCAP_API bool xccdf_group_set_id(struct xccdf_group *item, const char *newval); |
| 2845 | /// @memberof xccdf_group |
| 2846 | OSCAP_API bool xccdf_group_set_cluster_id(struct xccdf_group *item, const char *newval); |
| 2847 | /// @memberof xccdf_group |
| 2848 | OSCAP_API bool xccdf_group_set_extends(struct xccdf_group *item, const char *newval); |
| 2849 | /// @memberof xccdf_group |
| 2850 | OSCAP_API bool xccdf_group_set_version(struct xccdf_group *item, const char *newval); |
| 2851 | /// @memberof xccdf_group |
| 2852 | OSCAP_API bool xccdf_group_set_version_time(struct xccdf_group *item, const char *newval); |
| 2853 | /// @memberof xccdf_group |
| 2854 | OSCAP_API bool xccdf_group_set_version_update(struct xccdf_group *item, const char *newval); |
| 2855 | /// @memberof xccdf_group |
| 2856 | OSCAP_API bool xccdf_group_set_abstract(struct xccdf_group *item, bool newval); |
| 2857 | /// @memberof xccdf_group |
| 2858 | OSCAP_API bool xccdf_group_set_hidden(struct xccdf_group *item, bool newval); |
| 2859 | /// @memberof xccdf_group |
| 2860 | OSCAP_API bool xccdf_group_set_prohibit_changes(struct xccdf_group *item, bool newval); |
| 2861 | /// @memberof xccdf_group |
| 2862 | OSCAP_API bool xccdf_group_set_selected(struct xccdf_group *item, bool newval); |
| 2863 | /// @memberof xccdf_group |
| 2864 | OSCAP_API bool xccdf_group_add_metadata(struct xccdf_group* item, const char* metadata); |
| 2865 | |
| 2866 | /// @memberof xccdf_value |
| 2867 | OSCAP_API bool xccdf_value_set_id(struct xccdf_value *item, const char *newval); |
| 2868 | /// @memberof xccdf_value |
| 2869 | OSCAP_API bool xccdf_value_set_cluster_id(struct xccdf_value *item, const char *newval); |
| 2870 | /// @memberof xccdf_value |
| 2871 | OSCAP_API bool xccdf_value_set_extends(struct xccdf_value *item, const char *newval); |
| 2872 | /// @memberof xccdf_value |
| 2873 | OSCAP_API bool xccdf_value_set_version(struct xccdf_value *item, const char *newval); |
| 2874 | /// @memberof xccdf_value |
| 2875 | OSCAP_API bool xccdf_value_set_version_time(struct xccdf_value *item, const char *newval); |
| 2876 | /// @memberof xccdf_value |
| 2877 | OSCAP_API bool xccdf_value_set_version_update(struct xccdf_value *item, const char *newval); |
| 2878 | /// @memberof xccdf_value |
| 2879 | OSCAP_API bool xccdf_value_set_abstract(struct xccdf_value *item, bool newval); |
| 2880 | /// @memberof xccdf_value |
| 2881 | OSCAP_API bool xccdf_value_set_hidden(struct xccdf_value *item, bool newval); |
| 2882 | /// @memberof xccdf_value |
| 2883 | OSCAP_API bool xccdf_value_set_multiple(struct xccdf_value *item, bool newval); |
| 2884 | /// @memberof xccdf_value |
| 2885 | OSCAP_API bool xccdf_value_set_prohibit_changes(struct xccdf_value *item, bool newval); |
| 2886 | /// @memberof xccdf_value |
| 2887 | OSCAP_API bool xccdf_value_set_oper(struct xccdf_value * item, xccdf_operator_t oper); |
| 2888 | /// @memberof xccdf_value |
| 2889 | OSCAP_API bool xccdf_value_set_interactive(struct xccdf_value *item, bool newval); |
| 2890 | /// @memberof xccdf_value |
| 2891 | OSCAP_API bool xccdf_value_add_metadata(struct xccdf_value* item, const char* metadata); |
| 2892 | |
| 2893 | /// @memberof xccdf_status |
| 2894 | OSCAP_API bool xccdf_status_set_date(struct xccdf_status *obj, time_t newval); |
| 2895 | /// @memberof xccdf_status |
| 2896 | OSCAP_API bool xccdf_status_set_status(struct xccdf_status *obj, xccdf_status_type_t newval); |
| 2897 | |
| 2898 | /// @memberof xccdf_notice |
| 2899 | OSCAP_API bool xccdf_notice_set_id(struct xccdf_notice *obj, const char *newval); |
| 2900 | /// @memberof xccdf_notice |
| 2901 | OSCAP_API bool xccdf_notice_set_text(struct xccdf_notice *obj, struct oscap_text *newval); |
| 2902 | |
| 2903 | /// @memberof xccdf_model |
| 2904 | OSCAP_API bool xccdf_model_set_system(struct xccdf_model *obj, const char *newval); |
| 2905 | |
| 2906 | /// @memberof xccdf_check |
| 2907 | OSCAP_API bool xccdf_check_set_id(struct xccdf_check *obj, const char *newval); |
| 2908 | /// @memberof xccdf_check |
| 2909 | OSCAP_API bool xccdf_check_set_system(struct xccdf_check *obj, const char *newval); |
| 2910 | /// @memberof xccdf_check |
| 2911 | OSCAP_API bool xccdf_check_set_selector(struct xccdf_check *obj, const char *newval); |
| 2912 | /// @memberof xccdf_check |
| 2913 | OSCAP_API bool xccdf_check_set_content(struct xccdf_check *obj, const char *newval); |
| 2914 | /// @memberof xccdf_check |
| 2915 | OSCAP_API bool xccdf_check_set_oper(struct xccdf_check *obj, xccdf_bool_operator_t newval); |
| 2916 | /// @memberof xccdf_check |
| 2917 | OSCAP_API bool xccdf_check_set_multicheck(struct xccdf_check *obj, bool newval); |
| 2918 | /// @memberof xccdf_check |
| 2919 | OSCAP_API bool xccdf_check_set_negate(struct xccdf_check *obj, bool newval); |
| 2920 | |
| 2921 | /// @memberof xccdf_check_content_ref |
| 2922 | OSCAP_API bool xccdf_check_content_ref_set_name(struct xccdf_check_content_ref *obj, const char *newval); |
| 2923 | /// @memberof xccdf_check_content_ref |
| 2924 | OSCAP_API bool xccdf_check_content_ref_set_href(struct xccdf_check_content_ref *obj, const char *newval); |
| 2925 | |
| 2926 | /// @memberof xccdf_profile_note |
| 2927 | OSCAP_API bool xccdf_profile_note_set_reftag(struct xccdf_profile_note *obj, const char *newval); |
| 2928 | /// @memberof xccdf_profile_note |
| 2929 | OSCAP_API bool xccdf_profile_note_set_text(struct xccdf_profile_note *obj, struct oscap_text *newval); |
| 2930 | |
| 2931 | /// @memberof xccdf_check_import |
| 2932 | OSCAP_API bool xccdf_check_import_set_name(struct xccdf_check_import *obj, const char *newval); |
| 2933 | /// @memberof xccdf_check_import |
| 2934 | OSCAP_API bool xccdf_check_import_set_xpath(struct xccdf_check_import *obj, const char *newval); |
| 2935 | /// @memberof xccdf_check_import |
| 2936 | OSCAP_API bool xccdf_check_import_set_content(struct xccdf_check_import *obj, const char *newval); |
| 2937 | |
| 2938 | /// @memberof xccdf_check_export |
| 2939 | OSCAP_API bool xccdf_check_export_set_name(struct xccdf_check_export *obj, const char *newval); |
| 2940 | /// @memberof xccdf_check_export |
| 2941 | OSCAP_API bool xccdf_check_export_set_value(struct xccdf_check_export *obj, const char *newval); |
| 2942 | |
| 2943 | /// @memberof xccdf_fix |
| 2944 | OSCAP_API bool xccdf_fix_set_strategy(struct xccdf_fix *obj, xccdf_strategy_t newval); |
| 2945 | /// @memberof xccdf_fix |
| 2946 | OSCAP_API bool xccdf_fix_set_disruption(struct xccdf_fix *obj, xccdf_level_t newval); |
| 2947 | /// @memberof xccdf_fix |
| 2948 | OSCAP_API bool xccdf_fix_set_complexity(struct xccdf_fix *obj, xccdf_level_t newval); |
| 2949 | /// @memberof xccdf_fix |
| 2950 | OSCAP_API bool xccdf_fix_set_reboot(struct xccdf_fix *obj, bool newval); |
| 2951 | /// @memberof xccdf_fix |
| 2952 | OSCAP_API bool xccdf_fix_set_content(struct xccdf_fix *obj, const char *newval); |
| 2953 | /// @memberof xccdf_fix |
| 2954 | OSCAP_API bool xccdf_fix_set_system(struct xccdf_fix *obj, const char *newval); |
| 2955 | /// @memberof xccdf_fix |
| 2956 | OSCAP_API bool xccdf_fix_set_platform(struct xccdf_fix *obj, const char *newval); |
| 2957 | /// @memberof xccdf_fix |
| 2958 | OSCAP_API bool xccdf_fix_set_id(struct xccdf_fix *obj, const char *newval); |
| 2959 | |
| 2960 | /// @memberof xccdf_fixtext |
| 2961 | OSCAP_API bool xccdf_fixtext_set_strategy(struct xccdf_fixtext *obj, xccdf_strategy_t newval); |
| 2962 | /// @memberof xccdf_fixtext |
| 2963 | OSCAP_API bool xccdf_fixtext_set_disruption(struct xccdf_fixtext *obj, xccdf_level_t newval); |
| 2964 | /// @memberof xccdf_fixtext |
| 2965 | OSCAP_API bool xccdf_fixtext_set_complexity(struct xccdf_fixtext *obj, xccdf_level_t newval); |
| 2966 | /// @memberof xccdf_fixtext |
| 2967 | OSCAP_API bool xccdf_fixtext_set_reboot(struct xccdf_fixtext *obj, bool newval); |
| 2968 | /// @memberof xccdf_fixtext |
| 2969 | OSCAP_API bool xccdf_fixtext_set_text(struct xccdf_fixtext *obj, struct oscap_text *newval); |
| 2970 | /// @memberof xccdf_fixtext |
| 2971 | OSCAP_API bool xccdf_fixtext_set_fixref(struct xccdf_fixtext *obj, const char *newval); |
| 2972 | |
| 2973 | /// @memberof xccdf_select |
| 2974 | OSCAP_API bool xccdf_select_set_item(struct xccdf_select *obj, const char *newval); |
| 2975 | /// @memberof xccdf_select |
| 2976 | OSCAP_API bool xccdf_select_set_selected(struct xccdf_select *obj, bool newval); |
| 2977 | |
| 2978 | /// @memberof xccdf_warning |
| 2979 | OSCAP_API bool xccdf_warning_set_category(struct xccdf_warning *obj, xccdf_warning_category_t newval); |
| 2980 | /// @memberof xccdf_warning |
| 2981 | OSCAP_API bool xccdf_warning_set_text(struct xccdf_warning *obj, struct oscap_text *newval); |
| 2982 | /// @memberof xccdf_refine_rule |
| 2983 | OSCAP_API struct xccdf_refine_rule *xccdf_refine_rule_new(void); |
| 2984 | |
| 2985 | /// @memberof xccdf_refine_rule |
| 2986 | OSCAP_API struct xccdf_refine_rule * xccdf_refine_rule_clone(const struct xccdf_refine_rule * old_rule); |
| 2987 | /// @memberof xccdf_refine_rule |
| 2988 | OSCAP_API bool xccdf_refine_rule_set_item(struct xccdf_refine_rule *obj, const char *newval); |
| 2989 | /// @memberof xccdf_refine_rule |
| 2990 | OSCAP_API bool xccdf_refine_rule_set_selector(struct xccdf_refine_rule *obj, const char *newval); |
| 2991 | /// @memberof xccdf_refine_rule |
| 2992 | OSCAP_API bool xccdf_refine_rule_set_role(struct xccdf_refine_rule *obj, xccdf_role_t newval); |
| 2993 | /// @memberof xccdf_refine_rule |
| 2994 | OSCAP_API bool xccdf_refine_rule_set_severity(struct xccdf_refine_rule *obj, xccdf_level_t newval); |
| 2995 | /// @memberof xccdf_refine_rule |
| 2996 | OSCAP_API bool xccdf_refine_rule_set_weight(struct xccdf_refine_rule *obj, xccdf_numeric newval); |
| 2997 | |
| 2998 | /// @memberof xccdf_refine_value |
| 2999 | OSCAP_API struct xccdf_refine_value *xccdf_refine_value_new(void); |
| 3000 | /// @memberof xccdf_refine_value |
| 3001 | OSCAP_API struct xccdf_refine_value * xccdf_refine_value_clone(const struct xccdf_refine_value * old_value); |
| 3002 | /// @memberof xccdf_refine_value |
| 3003 | OSCAP_API bool xccdf_refine_value_set_item(struct xccdf_refine_value *obj, const char *newval); |
| 3004 | /// @memberof xccdf_refine_value |
| 3005 | OSCAP_API bool xccdf_refine_value_set_selector(struct xccdf_refine_value *obj, const char *newval); |
| 3006 | /// @memberof xccdf_refine_value |
| 3007 | OSCAP_API bool xccdf_refine_value_set_oper(struct xccdf_refine_value *obj, xccdf_operator_t newval); |
| 3008 | |
| 3009 | /// @memberof xccdf_set_value |
| 3010 | OSCAP_API struct xccdf_setvalue *xccdf_setvalue_new(void); |
| 3011 | /// @memberof xccdf_set_value |
| 3012 | OSCAP_API struct xccdf_setvalue * xccdf_setvalue_clone(const struct xccdf_setvalue * old_value); |
| 3013 | /// @memberof xccdf_set_value |
| 3014 | OSCAP_API bool xccdf_setvalue_set_item(struct xccdf_setvalue *obj, const char *newval); |
| 3015 | /// @memberof xccdf_set_value |
| 3016 | OSCAP_API bool xccdf_setvalue_set_value(struct xccdf_setvalue *obj, const char *newval); |
| 3017 | /// @memberof xccdf_plain_text |
| 3018 | OSCAP_API bool xccdf_plain_text_set_id(struct xccdf_plain_text *obj, const char *newval); |
| 3019 | /// @memberof xccdf_plain_text |
| 3020 | OSCAP_API bool xccdf_plain_text_set_text(struct xccdf_plain_text *obj, const char *newval); |
| 3021 | |
| 3022 | /// @memberof xccdf_result |
| 3023 | OSCAP_API bool xccdf_result_set_id(struct xccdf_result *item, const char *newval); |
| 3024 | /// @memberof xccdf_result |
| 3025 | OSCAP_API bool xccdf_result_set_test_system(struct xccdf_result *item, const char *newval); |
| 3026 | /// @memberof xccdf_result |
| 3027 | OSCAP_API bool xccdf_result_set_benchmark_uri(struct xccdf_result *item, const char *newval); |
| 3028 | /// @memberof xccdf_result |
| 3029 | OSCAP_API bool xccdf_result_set_profile(struct xccdf_result *item, const char *newval); |
| 3030 | /// @memberof xccdf_result |
| 3031 | OSCAP_API bool xccdf_result_set_start_time(struct xccdf_result *item, const char *newval); |
| 3032 | /// @memberof xccdf_result |
| 3033 | OSCAP_API bool xccdf_result_set_end_time(struct xccdf_result *item, const char *newval); |
| 3034 | /// @memberof xccdf_result |
| 3035 | OSCAP_API bool xccdf_result_set_version(struct xccdf_result *item, const char *newval); |
| 3036 | /// @memberof xccdf_result |
| 3037 | OSCAP_API bool xccdf_result_add_metadata(struct xccdf_result *item, const char *metadata); |
| 3038 | |
| 3039 | /// @memberof xccdf_rule_result |
| 3040 | OSCAP_API bool xccdf_rule_result_set_time(struct xccdf_rule_result *obj, const char *newval); |
| 3041 | /// @memberof xccdf_rule_result |
| 3042 | OSCAP_API bool xccdf_rule_result_set_role(struct xccdf_rule_result *obj, xccdf_role_t newval); |
| 3043 | /// @memberof xccdf_rule_result |
| 3044 | OSCAP_API bool xccdf_rule_result_set_weight(struct xccdf_rule_result *obj, float newval); |
| 3045 | /// @memberof xccdf_rule_result |
| 3046 | OSCAP_API bool xccdf_rule_result_set_severity(struct xccdf_rule_result *obj, xccdf_level_t newval); |
| 3047 | /// @memberof xccdf_rule_result |
| 3048 | OSCAP_API bool xccdf_rule_result_set_result(struct xccdf_rule_result *obj, xccdf_test_result_type_t newval); |
| 3049 | /// @memberof xccdf_rule_result |
| 3050 | OSCAP_API bool xccdf_rule_result_set_version(struct xccdf_rule_result *obj, const char *newval); |
| 3051 | /// @memberof xccdf_rule_result |
| 3052 | OSCAP_API bool xccdf_rule_result_set_idref(struct xccdf_rule_result *obj, const char *newval); |
| 3053 | |
| 3054 | /// @memberof xccdf_identity |
| 3055 | OSCAP_API bool xccdf_identity_set_authenticated(struct xccdf_identity *obj, bool newval); |
| 3056 | /// @memberof xccdf_identity |
| 3057 | OSCAP_API bool xccdf_identity_set_privileged(struct xccdf_identity *obj, bool newval); |
| 3058 | /// @memberof xccdf_identity |
| 3059 | OSCAP_API bool xccdf_identity_set_name(struct xccdf_identity *obj, const char *newval); |
| 3060 | |
| 3061 | /// @memberof xccdf_score |
| 3062 | OSCAP_API bool xccdf_score_set_maximum(struct xccdf_score *obj, xccdf_numeric newval); |
| 3063 | /// @memberof xccdf_score |
| 3064 | OSCAP_API bool xccdf_score_set_score(struct xccdf_score *obj, xccdf_numeric newval); |
| 3065 | /// @memberof xccdf_score |
| 3066 | OSCAP_API bool xccdf_score_set_system(struct xccdf_score *obj, const char *newval); |
| 3067 | |
| 3068 | /// @memberof xccdf_override |
| 3069 | OSCAP_API bool xccdf_override_set_time(struct xccdf_override *obj, const char *newval); |
| 3070 | /// @memberof xccdf_override |
| 3071 | OSCAP_API bool xccdf_override_set_new_result(struct xccdf_override *obj, xccdf_test_result_type_t newval); |
| 3072 | /// @memberof xccdf_override |
| 3073 | OSCAP_API bool xccdf_override_set_old_result(struct xccdf_override *obj, xccdf_test_result_type_t newval); |
| 3074 | /// @memberof xccdf_override |
| 3075 | OSCAP_API bool xccdf_override_set_authority(struct xccdf_override *obj, const char *newval); |
| 3076 | /// @memberof xccdf_override |
| 3077 | OSCAP_API bool xccdf_override_set_remark(struct xccdf_override *obj, struct oscap_text *newval); |
| 3078 | |
| 3079 | /// @memberof xccdf_message |
| 3080 | OSCAP_API bool xccdf_message_set_severity(struct xccdf_message *obj, xccdf_message_severity_t newval); |
| 3081 | /// @memberof xccdf_message |
| 3082 | OSCAP_API bool xccdf_message_set_content(struct xccdf_message *obj, const char *newval); |
| 3083 | |
| 3084 | /// @memberof xccdf_target_fact |
| 3085 | OSCAP_API bool xccdf_target_fact_set_string(struct xccdf_target_fact *fact, const char *str); |
| 3086 | /// @memberof xccdf_target_fact |
| 3087 | OSCAP_API bool xccdf_target_fact_set_number(struct xccdf_target_fact *fact, xccdf_numeric val); |
| 3088 | /// @memberof xccdf_target_fact |
| 3089 | OSCAP_API bool xccdf_target_fact_set_boolean(struct xccdf_target_fact *fact, bool val); |
| 3090 | /// @memberof xccdf_target_fact |
| 3091 | OSCAP_API bool xccdf_target_fact_set_name(struct xccdf_target_fact *obj, const char *newval); |
| 3092 | |
| 3093 | /// @memberof xccdf_target_identifier |
| 3094 | OSCAP_API bool xccdf_target_identifier_set_xml_node(struct xccdf_target_identifier *ti, void* node); |
| 3095 | /// @memberof xccdf_target_identifier |
| 3096 | OSCAP_API bool xccdf_target_identifier_set_system(struct xccdf_target_identifier *ti, const char *newval); |
| 3097 | /// @memberof xccdf_target_identifier |
| 3098 | OSCAP_API bool xccdf_target_identifier_set_href(struct xccdf_target_identifier *ti, const char *newval); |
| 3099 | /// @memberof xccdf_target_identifier |
| 3100 | OSCAP_API bool xccdf_target_identifier_set_name(struct xccdf_target_identifier *ti, const char *newval); |
| 3101 | |
| 3102 | /// @memberof xccdf_instance |
| 3103 | OSCAP_API bool xccdf_instance_set_context(struct xccdf_instance *obj, const char *newval); |
| 3104 | /// @memberof xccdf_instance |
| 3105 | OSCAP_API bool xccdf_instance_set_parent_context(struct xccdf_instance *obj, const char *newval); |
| 3106 | /// @memberof xccdf_instance |
| 3107 | OSCAP_API bool xccdf_instance_set_content(struct xccdf_instance *obj, const char *newval); |
| 3108 | |
| 3109 | /// @memberof xccdf_tailoring |
| 3110 | OSCAP_API bool xccdf_tailoring_set_id(struct xccdf_tailoring *tailoring, const char* newval); |
| 3111 | /// @memberof xccdf_tailoring |
| 3112 | OSCAP_API bool xccdf_tailoring_set_version(struct xccdf_tailoring *tailoring, const char* newval); |
| 3113 | /// @memberof xccdf_tailoring |
| 3114 | OSCAP_API bool xccdf_tailoring_set_version_update(struct xccdf_tailoring *tailoring, const char *newval); |
| 3115 | /// @memberof xccdf_tailoring |
| 3116 | OSCAP_API bool xccdf_tailoring_set_version_time(struct xccdf_tailoring *tailoring, const char *newval); |
| 3117 | /// @memberof xccdf_tailoring |
| 3118 | OSCAP_API bool xccdf_tailoring_set_benchmark_ref(struct xccdf_tailoring *tailoring, const char *newval); |
| 3119 | /// @memberof xccdf_tailoring |
| 3120 | OSCAP_API bool xccdf_tailoring_set_benchmark_ref_version(struct xccdf_tailoring *tailoring, const char *newval); |
| 3121 | |
| 3122 | /// @memberof xccdf_tailoring |
| 3123 | OSCAP_API bool xccdf_tailoring_add_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile); |
| 3124 | /** |
| 3125 | * Removes given profile from tailoring. |
| 3126 | * |
| 3127 | * The profile must not be an ancestor of any other profile in tailoring. |
| 3128 | * If it is this function will fail to remove the profile and signal the error. |
| 3129 | * |
| 3130 | * This function does NOT notify xccdf_session, xccdf_policy or xccdf_policy_model |
| 3131 | * of this change. You are responsible for refreshing the higher-level structures yourself! |
| 3132 | * |
| 3133 | * @note User is responsible for freeing the profile! |
| 3134 | * @memberof xccdf_tailoring |
| 3135 | */ |
| 3136 | OSCAP_API bool xccdf_tailoring_remove_profile(struct xccdf_tailoring *tailoring, struct xccdf_profile *profile); |
| 3137 | /// @memberof xccdf_tailoring |
| 3138 | OSCAP_API bool xccdf_tailoring_resolve(struct xccdf_tailoring *tailoring, struct xccdf_benchmark *benchmark); |
| 3139 | |
| 3140 | // @memberof xccdf_ident |
| 3141 | OSCAP_API void xccdf_ident_set_id(struct xccdf_ident * ident, const char *id); |
| 3142 | // @memberof xccdf_ident |
| 3143 | OSCAP_API void xccdf_ident_set_system(struct xccdf_ident * ident, const char *sys); |
| 3144 | |
| 3145 | /// @memberof xccdf_benchmark |
| 3146 | OSCAP_API bool xccdf_benchmark_add_result(struct xccdf_benchmark *bench, struct xccdf_result *result); |
| 3147 | |
| 3148 | /// @memberof xccdf_benchmark |
| 3149 | OSCAP_API bool xccdf_benchmark_add_description(struct xccdf_benchmark *item, struct oscap_text *newval); |
| 3150 | /// @memberof xccdf_benchmark |
| 3151 | OSCAP_API bool xccdf_benchmark_add_platform(struct xccdf_benchmark *item, const char *newval); |
| 3152 | /// @memberof xccdf_benchmark |
| 3153 | OSCAP_API bool xccdf_benchmark_add_reference(struct xccdf_benchmark *item, struct oscap_reference *newval); |
| 3154 | /// @memberof xccdf_benchmark |
| 3155 | OSCAP_API bool xccdf_benchmark_add_status(struct xccdf_benchmark *item, struct xccdf_status *newval); |
| 3156 | /// @memberof xccdf_benchmark |
| 3157 | OSCAP_API bool xccdf_benchmark_add_dc_status(struct xccdf_benchmark *item, struct oscap_reference *newval); |
| 3158 | /// @memberof xccdf_benchmark |
| 3159 | OSCAP_API bool xccdf_benchmark_add_title(struct xccdf_benchmark *item, struct oscap_text *newval); |
| 3160 | /// @memberof xccdf_benchmark |
| 3161 | OSCAP_API bool xccdf_benchmark_add_front_matter(struct xccdf_benchmark *item, struct oscap_text *newval); |
| 3162 | /// @memberof xccdf_benchmark |
| 3163 | //bool xccdf_benchmark_add_item(struct xccdf_benchmark *item, struct xccdf_item *newval); |
| 3164 | /// @memberof xccdf_benchmark |
| 3165 | OSCAP_API bool xccdf_benchmark_add_model(struct xccdf_benchmark *item, struct xccdf_model *newval); |
| 3166 | /// @memberof xccdf_benchmark |
| 3167 | OSCAP_API bool xccdf_benchmark_add_notice(struct xccdf_benchmark *item, struct xccdf_notice *newval); |
| 3168 | /// @memberof xccdf_benchmark |
| 3169 | OSCAP_API bool xccdf_benchmark_add_plain_text(struct xccdf_benchmark *item, struct xccdf_plain_text *newval); |
| 3170 | /// @memberof xccdf_benchmark |
| 3171 | OSCAP_API bool xccdf_benchmark_add_profile(struct xccdf_benchmark *item, struct xccdf_profile *newval); |
| 3172 | /// @memberof xccdf_benchmark |
| 3173 | OSCAP_API bool xccdf_benchmark_add_rear_matter(struct xccdf_benchmark *item, struct oscap_text *newval); |
| 3174 | /// @memberof xccdf_benchmark |
| 3175 | OSCAP_API bool xccdf_benchmark_add_rule(struct xccdf_benchmark *benchmark, struct xccdf_rule *rule); |
| 3176 | /// @memberof xccdf_benchmark |
| 3177 | OSCAP_API bool xccdf_benchmark_add_group(struct xccdf_benchmark *benchmark, struct xccdf_group *group); |
| 3178 | /// @memberof xccdf_benchmark |
| 3179 | OSCAP_API bool xccdf_benchmark_add_value(struct xccdf_benchmark *benchmark, struct xccdf_value *value); |
| 3180 | /// @memberof xccdf_benchmark |
| 3181 | OSCAP_API bool xccdf_benchmark_add_content(struct xccdf_benchmark *bench, struct xccdf_item *item); |
| 3182 | |
| 3183 | /// @memberof xccdf_profile |
| 3184 | OSCAP_API bool xccdf_profile_add_select(struct xccdf_profile *item, struct xccdf_select *newval); |
| 3185 | /// @memberof xccdf_profile |
| 3186 | OSCAP_API bool xccdf_profile_add_setvalue(struct xccdf_profile *item, struct xccdf_setvalue *newval); |
| 3187 | /// @memberof xccdf_profile |
| 3188 | OSCAP_API bool xccdf_profile_add_refine_value(struct xccdf_profile *item, struct xccdf_refine_value *newval); |
| 3189 | /// @memberof xccdf_profile |
| 3190 | OSCAP_API bool xccdf_profile_add_refine_rule(struct xccdf_profile *item, struct xccdf_refine_rule *newval); |
| 3191 | |
| 3192 | /// @memberof xccdf_profile |
| 3193 | OSCAP_API bool xccdf_profile_add_description(struct xccdf_profile *item, struct oscap_text *newval); |
| 3194 | /// @memberof xccdf_profile |
| 3195 | OSCAP_API bool xccdf_profile_add_platform(struct xccdf_profile *item, const char *newval); |
| 3196 | /// @memberof xccdf_profile |
| 3197 | OSCAP_API bool xccdf_profile_add_reference(struct xccdf_profile *item, struct oscap_reference *newval); |
| 3198 | /// @memberof xccdf_profile |
| 3199 | OSCAP_API bool xccdf_profile_add_status(struct xccdf_profile *item, struct xccdf_status *newval); |
| 3200 | /// @memberof xccdf_profile |
| 3201 | OSCAP_API bool xccdf_profile_add_dc_status(struct xccdf_profile *item, struct oscap_reference *newval); |
| 3202 | /// @memberof xccdf_profile |
| 3203 | OSCAP_API bool xccdf_profile_add_title(struct xccdf_profile *item, struct oscap_text *newval); |
| 3204 | |
| 3205 | /// @memberof xccdf_rule |
| 3206 | OSCAP_API bool xccdf_rule_add_description(struct xccdf_rule *item, struct oscap_text *newval); |
| 3207 | /// @memberof xccdf_rule |
| 3208 | OSCAP_API bool xccdf_rule_add_platform(struct xccdf_rule *item, const char *newval); |
| 3209 | /// @memberof xccdf_rule |
| 3210 | OSCAP_API bool xccdf_rule_add_question(struct xccdf_rule *item, struct oscap_text *newval); |
| 3211 | /// @memberof xccdf_rule |
| 3212 | OSCAP_API bool xccdf_rule_add_rationale(struct xccdf_rule *item, struct oscap_text *newval); |
| 3213 | /// @memberof xccdf_rule |
| 3214 | OSCAP_API bool xccdf_rule_add_reference(struct xccdf_rule *item, struct oscap_reference *newval); |
| 3215 | /// @memberof xccdf_rule |
| 3216 | OSCAP_API bool xccdf_rule_add_status(struct xccdf_rule *item, struct xccdf_status *newval); |
| 3217 | /// @memberof xccdf_rule |
| 3218 | OSCAP_API bool xccdf_rule_add_dc_status(struct xccdf_rule *item, struct oscap_reference *newval); |
| 3219 | /// @memberof xccdf_rule |
| 3220 | OSCAP_API bool xccdf_rule_add_title(struct xccdf_rule *item, struct oscap_text *newval); |
| 3221 | /// @memberof xccdf_rule |
| 3222 | OSCAP_API bool xccdf_rule_add_warning(struct xccdf_rule *item, struct xccdf_warning *newval); |
| 3223 | /// @memberof xccdf_rule |
| 3224 | OSCAP_API bool xccdf_rule_add_ident(struct xccdf_rule *item, struct xccdf_ident *newval); |
| 3225 | /// @memberof xccdf_rule |
| 3226 | OSCAP_API bool xccdf_rule_add_check(struct xccdf_rule *item, struct xccdf_check *newval); |
| 3227 | /// @memberof xccdf_rule |
| 3228 | OSCAP_API bool xccdf_rule_add_profile_note(struct xccdf_rule *item, struct xccdf_profile_note *newval); |
| 3229 | /// @memberof xccdf_rule |
| 3230 | OSCAP_API bool xccdf_rule_add_fix(struct xccdf_rule *item, struct xccdf_fix *newval); |
| 3231 | /// @memberof xccdf_rule |
| 3232 | OSCAP_API bool xccdf_rule_add_fixtext(struct xccdf_rule *item, struct xccdf_fixtext *newval); |
| 3233 | |
| 3234 | /// @memberof xccdf_group |
| 3235 | OSCAP_API bool xccdf_group_add_description(struct xccdf_group *item, struct oscap_text *newval); |
| 3236 | /// @memberof xccdf_group |
| 3237 | OSCAP_API bool xccdf_group_add_platform(struct xccdf_group *item, const char *newval); |
| 3238 | /// @memberof xccdf_group |
| 3239 | OSCAP_API bool xccdf_group_add_question(struct xccdf_group *item, struct oscap_text *newval); |
| 3240 | /// @memberof xccdf_group |
| 3241 | OSCAP_API bool xccdf_group_add_rationale(struct xccdf_group *item, struct oscap_text *newval); |
| 3242 | /// @memberof xccdf_group |
| 3243 | OSCAP_API bool xccdf_group_add_reference(struct xccdf_group *item, struct oscap_reference *newval); |
| 3244 | /// @memberof xccdf_group |
| 3245 | OSCAP_API bool xccdf_group_add_status(struct xccdf_group *item, struct xccdf_status *newval); |
| 3246 | /// @memberof xccdf_group |
| 3247 | OSCAP_API bool xccdf_group_add_dc_status(struct xccdf_group *item, struct oscap_reference *newval); |
| 3248 | /// @memberof xccdf_group |
| 3249 | OSCAP_API bool xccdf_group_add_title(struct xccdf_group *item, struct oscap_text *newval); |
| 3250 | /// @memberof xccdf_group |
| 3251 | OSCAP_API bool xccdf_group_add_warning(struct xccdf_group *item, struct xccdf_warning *newval); |
| 3252 | /// @memberof xccdf_group |
| 3253 | OSCAP_API bool xccdf_group_add_rule(struct xccdf_group *group, struct xccdf_rule *item); |
| 3254 | /// @memberof xccdf_group |
| 3255 | OSCAP_API bool xccdf_group_add_group(struct xccdf_group *group, struct xccdf_group *item); |
| 3256 | /// @memberof xccdf_group |
| 3257 | OSCAP_API bool xccdf_group_add_value(struct xccdf_group *group, struct xccdf_value *item); |
| 3258 | /// @memberof xccdf_group |
| 3259 | OSCAP_API bool xccdf_group_add_content(struct xccdf_group *rule, struct xccdf_item *item); |
| 3260 | |
| 3261 | /// @memberof xccdf_value |
| 3262 | OSCAP_API bool xccdf_value_add_description(struct xccdf_value *item, struct oscap_text *newval); |
| 3263 | /// @memberof xccdf_value |
| 3264 | OSCAP_API bool xccdf_value_add_question(struct xccdf_value *item, struct oscap_text *newval); |
| 3265 | /// @memberof xccdf_value |
| 3266 | OSCAP_API bool xccdf_value_add_reference(struct xccdf_value *item, struct oscap_reference *newval); |
| 3267 | /// @memberof xccdf_value |
| 3268 | OSCAP_API bool xccdf_value_add_status(struct xccdf_value *item, struct xccdf_status *newval); |
| 3269 | /// @memberof xccdf_value |
| 3270 | OSCAP_API bool xccdf_value_add_dc_status(struct xccdf_value *item, struct oscap_reference *newval); |
| 3271 | /// @memberof xccdf_value |
| 3272 | OSCAP_API bool xccdf_value_add_title(struct xccdf_value *item, struct oscap_text *newval); |
| 3273 | /// @memberof xccdf_value |
| 3274 | OSCAP_API bool xccdf_value_add_warning(struct xccdf_value *item, struct xccdf_warning *newval); |
| 3275 | |
| 3276 | /// @memberof xccdf_check |
| 3277 | OSCAP_API bool xccdf_check_add_import(struct xccdf_check *obj, struct xccdf_check_import *item); |
| 3278 | /// @memberof xccdf_check |
| 3279 | OSCAP_API bool xccdf_check_add_export(struct xccdf_check *obj, struct xccdf_check_export *item); |
| 3280 | /// @memberof xccdf_check |
| 3281 | OSCAP_API bool xccdf_check_add_content_ref(struct xccdf_check *obj, struct xccdf_check_content_ref *item); |
| 3282 | /// @memberof xccdf_check |
| 3283 | OSCAP_API bool xccdf_check_add_child(struct xccdf_check *obj, struct xccdf_check *item); |
| 3284 | /// @memberof xccdf_select |
| 3285 | OSCAP_API bool xccdf_select_add_remark(struct xccdf_select *obj, struct oscap_text *item); |
| 3286 | /// @memberof xccdf_refine_value |
| 3287 | OSCAP_API bool xccdf_refine_value_add_remark(struct xccdf_refine_value *obj, struct oscap_text *item); |
| 3288 | /// @memberof xccdf_result |
| 3289 | OSCAP_API bool xccdf_result_add_rule_result(struct xccdf_result *item, struct xccdf_rule_result *newval); |
| 3290 | /// @memberof xccdf_result |
| 3291 | OSCAP_API bool xccdf_result_add_setvalue(struct xccdf_result *item, struct xccdf_setvalue *newval); |
| 3292 | /// @memberof xccdf_result |
| 3293 | OSCAP_API bool xccdf_result_add_target_fact(struct xccdf_result *item, struct xccdf_target_fact *newval); |
| 3294 | /// @memberof xccdf_result |
| 3295 | OSCAP_API bool xccdf_result_add_target_identifier(struct xccdf_result *item, struct xccdf_target_identifier *newval); |
| 3296 | /// @memberof xccdf_result |
| 3297 | OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval); |
| 3298 | /// @memberof xccdf_result |
| 3299 | OSCAP_API bool xccdf_result_add_remark(struct xccdf_result *item, struct oscap_text *newval); |
| 3300 | /// @memberof xccdf_result |
| 3301 | OSCAP_API bool xccdf_result_add_organization(struct xccdf_result *item, const char *newval); |
| 3302 | /// @memberof xccdf_result |
| 3303 | OSCAP_API bool xccdf_result_add_target(struct xccdf_result *item, const char *newval); |
| 3304 | /// @memberof xccdf_result |
| 3305 | OSCAP_API bool xccdf_result_add_identity(struct xccdf_result *item, struct xccdf_identity *newval); |
| 3306 | /// @memberof xccdf_result |
| 3307 | OSCAP_API bool xccdf_result_add_score(struct xccdf_result *item, struct xccdf_score *newval); |
| 3308 | /// @memberof xccdf_result |
| 3309 | OSCAP_API bool xccdf_result_add_title(struct xccdf_result *item, struct oscap_text *newval); |
| 3310 | /// @memberof xccdf_result |
| 3311 | OSCAP_API bool xccdf_result_add_target_address(struct xccdf_result *item, const char *newval); |
| 3312 | /// @memberof xccdf_result |
| 3313 | OSCAP_API bool xccdf_result_add_applicable_platform(struct xccdf_result *item, const char *newval); |
| 3314 | /// @memberof xccdf_result |
| 3315 | OSCAP_API int xccdf_result_recalculate_scores(struct xccdf_result *result, struct xccdf_item *benchmark); |
| 3316 | /// @memberof xccdf_rule_result |
| 3317 | OSCAP_API bool xccdf_rule_result_add_ident(struct xccdf_rule_result *obj, struct xccdf_ident *item); |
| 3318 | /// @memberof xccdf_rule_result |
| 3319 | OSCAP_API bool xccdf_rule_result_add_fix(struct xccdf_rule_result *obj, struct xccdf_fix *item); |
| 3320 | /// @memberof xccdf_rule_result |
| 3321 | OSCAP_API bool xccdf_rule_result_add_check(struct xccdf_rule_result *obj, struct xccdf_check *item); |
| 3322 | /// @memberof xccdf_rule_result |
| 3323 | OSCAP_API bool xccdf_rule_result_add_override(struct xccdf_rule_result *obj, struct xccdf_override *item); |
| 3324 | /// @memberof xccdf_rule_result |
| 3325 | OSCAP_API bool xccdf_rule_result_add_message(struct xccdf_rule_result *obj, struct xccdf_message *item); |
| 3326 | /// @memberof xccdf_rule_result |
| 3327 | OSCAP_API bool xccdf_rule_result_add_instance(struct xccdf_rule_result *obj, struct xccdf_instance *item); |
| 3328 | /// @memberof xccdf_item |
| 3329 | OSCAP_API bool xccdf_item_add_description(struct xccdf_item *item, struct oscap_text *newval); |
| 3330 | /// @memberof xccdf_item |
| 3331 | OSCAP_API bool xccdf_item_add_platform(struct xccdf_item *item, const char *newval); |
| 3332 | /// @memberof xccdf_item |
| 3333 | OSCAP_API bool xccdf_item_add_question(struct xccdf_item *item, struct oscap_text *newval); |
| 3334 | /// @memberof xccdf_item |
| 3335 | OSCAP_API bool xccdf_item_add_rationale(struct xccdf_item *item, struct oscap_text *newval); |
| 3336 | /// @memberof xccdf_item |
| 3337 | OSCAP_API bool xccdf_item_add_reference(struct xccdf_item *item, struct oscap_reference *newval); |
| 3338 | /// @memberof xccdf_item |
| 3339 | OSCAP_API bool xccdf_item_add_dc_status(struct xccdf_item *item, struct oscap_reference *newval); |
| 3340 | /// @memberof xccdf_item |
| 3341 | OSCAP_API bool xccdf_item_add_status(struct xccdf_item *item, struct xccdf_status *newval); |
| 3342 | /// @memberof xccdf_item |
| 3343 | OSCAP_API bool xccdf_item_add_title(struct xccdf_item *item, struct oscap_text *newval); |
| 3344 | /// @memberof xccdf_item |
| 3345 | OSCAP_API bool xccdf_item_add_warning(struct xccdf_item *item, struct xccdf_warning *newval); |
| 3346 | /// @memberof xccdf_refine_rule |
| 3347 | OSCAP_API bool xccdf_refine_rule_add_remark(struct xccdf_refine_rule *obj, struct oscap_text *item); |
| 3348 | |
| 3349 | /// @memberof xccdf_rule |
| 3350 | OSCAP_API bool xccdf_rule_add_requires(struct xccdf_rule *rule, struct oscap_stringlist *requires_); |
| 3351 | /// @memberof xccdf_group |
| 3352 | OSCAP_API bool xccdf_group_add_requires(struct xccdf_group *group, struct oscap_stringlist *requires_); |
| 3353 | /// @memberof xccdf_item |
| 3354 | OSCAP_API bool xccdf_item_add_requires(struct xccdf_item *item, struct oscap_stringlist *requires_); |
| 3355 | /// @memberof xccdf_rule |
| 3356 | OSCAP_API bool xccdf_rule_add_conflicts(struct xccdf_rule *rule, const char *conflicts); |
| 3357 | /// @memberof xccdf_group |
| 3358 | OSCAP_API bool xccdf_group_add_conflicts(struct xccdf_group *group, const char *conflicts); |
| 3359 | /// @memberof xccdf_item |
| 3360 | OSCAP_API bool xccdf_item_add_conflicts(struct xccdf_item *item, const char *conflicts); |
| 3361 | |
| 3362 | /************************************************************ |
| 3363 | ** @} End of Setters group */ |
| 3364 | |
| 3365 | // remove operations |
| 3366 | |
| 3367 | /// @memberof xccdf_notice_iterator |
| 3368 | OSCAP_API void xccdf_notice_iterator_remove(struct xccdf_notice_iterator *it); |
| 3369 | /// @memberof xccdf_model_iterator |
| 3370 | OSCAP_API void xccdf_model_iterator_remove(struct xccdf_model_iterator *it); |
| 3371 | /// @memberof xccdf_profile_iterator |
| 3372 | OSCAP_API void xccdf_profile_iterator_remove(struct xccdf_profile_iterator *it); |
| 3373 | /// @memberof xccdf_item_iterator |
| 3374 | OSCAP_API void xccdf_item_iterator_remove(struct xccdf_item_iterator *it); |
| 3375 | /// @memberof xccdf_status_iterator |
| 3376 | OSCAP_API void xccdf_status_iterator_remove(struct xccdf_status_iterator *it); |
| 3377 | /// @memberof xccdf_profile_note_iterator |
| 3378 | OSCAP_API void xccdf_profile_note_iterator_remove(struct xccdf_profile_note_iterator *it); |
| 3379 | /// @memberof xccdf_refine_value_iterator |
| 3380 | OSCAP_API void xccdf_refine_value_iterator_remove(struct xccdf_refine_value_iterator *it); |
| 3381 | /// @memberof xccdf_refine_rule_iterator |
| 3382 | OSCAP_API void xccdf_refine_rule_iterator_remove(struct xccdf_refine_rule_iterator *it); |
| 3383 | /// @memberof xccdf_setvalue_iterator |
| 3384 | OSCAP_API void xccdf_setvalue_iterator_remove(struct xccdf_setvalue_iterator *it); |
| 3385 | /// @memberof xccdf_select_iterator |
| 3386 | OSCAP_API void xccdf_select_iterator_remove(struct xccdf_select_iterator *it); |
| 3387 | /// @memberof xccdf_ident_iterator |
| 3388 | OSCAP_API void xccdf_ident_iterator_remove(struct xccdf_ident_iterator *it); |
| 3389 | /// @memberof xccdf_check_content_ref_iterator |
| 3390 | OSCAP_API void xccdf_check_content_ref_iterator_remove(struct xccdf_check_content_ref_iterator *it); |
| 3391 | /// @memberof xccdf_check_export_iterator |
| 3392 | OSCAP_API void xccdf_check_export_iterator_remove(struct xccdf_check_export_iterator *it); |
| 3393 | /// @memberof xccdf_check_import_iterator |
| 3394 | OSCAP_API void xccdf_check_import_iterator_remove(struct xccdf_check_import_iterator *it); |
| 3395 | /// @memberof xccdf_check_iterator |
| 3396 | OSCAP_API void xccdf_check_iterator_remove(struct xccdf_check_iterator *it); |
| 3397 | /// @memberof xccdf_fixtext_iterator |
| 3398 | OSCAP_API void xccdf_fixtext_iterator_remove(struct xccdf_fixtext_iterator *it); |
| 3399 | /// @memberof xccdf_fix_iterator |
| 3400 | OSCAP_API void xccdf_fix_iterator_remove(struct xccdf_fix_iterator *it); |
| 3401 | /// @memberof xccdf_value_iterator |
| 3402 | OSCAP_API void xccdf_value_iterator_remove(struct xccdf_value_iterator *it); |
| 3403 | /// @memberof xccdf_plain_text_iterator |
| 3404 | OSCAP_API void xccdf_plain_text_iterator_remove(struct xccdf_plain_text_iterator *it); |
| 3405 | /// @memberof xccdf_warning_iterator |
| 3406 | OSCAP_API void xccdf_warning_iterator_remove(struct xccdf_warning_iterator *it); |
| 3407 | /// @memberof xccdf_result_iterator |
| 3408 | OSCAP_API void xccdf_result_iterator_remove(struct xccdf_result_iterator *it); |
| 3409 | /// @memberof xccdf_override_iterator |
| 3410 | OSCAP_API void xccdf_override_iterator_remove(struct xccdf_override_iterator *it); |
| 3411 | /// @memberof xccdf_message_iterator |
| 3412 | OSCAP_API void xccdf_message_iterator_remove(struct xccdf_message_iterator *it); |
| 3413 | /// @memberof xccdf_instance_iterator |
| 3414 | OSCAP_API void xccdf_instance_iterator_remove(struct xccdf_instance_iterator *it); |
| 3415 | /// @memberof xccdf_rule_result_iterator |
| 3416 | OSCAP_API void xccdf_rule_result_iterator_remove(struct xccdf_rule_result_iterator *it); |
| 3417 | /// @memberof xccdf_identity_iterator |
| 3418 | OSCAP_API void xccdf_identity_iterator_remove(struct xccdf_identity_iterator *it); |
| 3419 | /// @memberof xccdf_score_iterator |
| 3420 | OSCAP_API void xccdf_score_iterator_remove(struct xccdf_score_iterator *it); |
| 3421 | /// @memberof xccdf_target_fact_iterator |
| 3422 | OSCAP_API void xccdf_target_fact_iterator_remove(struct xccdf_target_fact_iterator *it); |
| 3423 | /// @memberof xccdf_target_identifier_iterator |
| 3424 | OSCAP_API void xccdf_target_identifier_iterator_remove(struct xccdf_target_identifier_iterator *it); |
| 3425 | /// @memberof xccdf_value_instance_iterator |
| 3426 | OSCAP_API void xccdf_value_instance_iterator_remove(struct xccdf_value_instance_iterator *it); |
| 3427 | |
| 3428 | |
| 3429 | // textual substitution interface |
| 3430 | |
| 3431 | /** |
| 3432 | * Type of textual substitution |
| 3433 | * @deprecated This type is deprecated. It is not flexible enough to be applied on XCCDF 1.2+ |
| 3434 | * documents. Please use @ref xml_iterate module instead. |
| 3435 | */ |
| 3436 | typedef enum xccdf_subst_type { |
| 3437 | XCCDF_SUBST_NONE, |
| 3438 | XCCDF_SUBST_SUB, ///< substitute cdf:sub element |
| 3439 | XCCDF_SUBST_LINK, ///< substitute a hyperlink |
| 3440 | XCCDF_SUBST_INSTANCE ///< substitute cdf:instance element |
| 3441 | } xccdf_subst_type_t; |
| 3442 | |
| 3443 | /************************************************************/ |
| 3444 | /** @} End of XCCDF group */ |
| 3445 | /// @} |
| 3446 | |
| 3447 | #endif |