| 1 | /** |
| 2 | * @file oval_stateContent.c |
| 3 | * \brief Open Vulnerability and Assessment Language |
| 4 | * |
| 5 | * See more details at http://oval.mitre.org/ |
| 6 | */ |
| 7 | |
| 8 | /* |
| 9 | * Copyright 2009--2013 Red Hat Inc., Durham, North Carolina. |
| 10 | * All Rights Reserved. |
| 11 | * |
| 12 | * This library is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU Lesser General Public |
| 14 | * License as published by the Free Software Foundation; either |
| 15 | * version 2.1 of the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This library is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20 | * Lesser General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU Lesser General Public |
| 23 | * License along with this library; if not, write to the Free Software |
| 24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 25 | * |
| 26 | * Authors: |
| 27 | * "David Niemoller" <[email protected]> |
| 28 | */ |
| 29 | |
| 30 | #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:409:9`! |
| 31 | #include <config.h>cxx . . $ `<file>/build/config.h`/ |
| 32 | #endif |
| 33 | |
| 34 | #include <stdlib.h> |
| 35 | #include <stdio.h> |
| 36 | #include <string.h> |
| 37 | |
| 38 | #include "oval_definitions_impl.h"cxx . . $ `<file>/src/OVAL/oval_definitions_impl.h`/ |
| 39 | #include "adt/oval_collection_impl.h"cxx . . $ `<file>/src/OVAL/adt/oval_collection_impl.h`/ |
| 40 | #include "oval_agent_api_impl.h"cxx . . $ `<file>/src/OVAL/oval_agent_api_impl.h`/ |
| 41 | #include "common/util.h"cxx . . $ `<file>/src/common/util.h`/ |
| 42 | #include "common/debug_priv.h"cxx . . $ `<file>/src/common/debug_priv.h`/ |
| 43 | #include "oval_schema_version.h"cxx . . $ `<file>/src/OVAL/public/oval_schema_version.h`/ |
| 44 | |
| 45 | typedef struct oval_state_contentcxx . . $ oval_state_content# { |
| 46 | struct oval_definition_modelcxx . . $ oval_definition_model# *modelcxx . . $ oval_state_content#model.; |
| 47 | struct oval_entitycxx . . $ oval_entity# *entitycxx . . $ oval_state_content#entity.; |
| 48 | struct oval_collectioncxx . . $ oval_collection# *record_fieldscxx . . $ oval_state_content#record_fields.; |
| 49 | oval_check_tcxx . . $ oval_check_t# ent_checkcxx . . $ oval_state_content#ent_check.; |
| 50 | oval_check_tcxx . . $ oval_check_t# var_checkcxx . . $ oval_state_content#var_check.; |
| 51 | oval_existence_tcxx . . $ oval_existence_t# check_existencecxx . . $ oval_state_content#check_existence.; |
| 52 | } oval_state_content_tcxx . . $ oval_state_content_t#; |
| 53 | |
| 54 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! oval_state_content_iterator_has_morecxx . . $ oval_state_content_iterator_has_more(344811bbb4806d19).(struct oval_state_content_iteratorcxx . . $ oval_state_content_iterator# |
| 55 | *oc_state_content) |
| 56 | { |
| 57 | return oval_collection_iterator_has_morecxx . . $ oval_collection_iterator_has_more(de0650ab9b639739).((struct oval_iteratorcxx . . $ oval_iterator# *) |
| 58 | oc_state_content); |
| 59 | } |
| 60 | |
| 61 | struct oval_state_contentcxx . . $ oval_state_content# *oval_state_content_iterator_nextcxx . . $ oval_state_content_iterator_next(43c3368aa9ccef0c).(struct |
| 62 | oval_state_content_iteratorcxx . . $ oval_state_content_iterator# |
| 63 | *oc_state_content) |
| 64 | { |
| 65 | return (struct oval_state_contentcxx . . $ oval_state_content# *) |
| 66 | oval_collection_iterator_nextcxx . . $ oval_collection_iterator_next(344074693c9690a9).((struct oval_iteratorcxx . . $ oval_iterator# *) |
| 67 | oc_state_content); |
| 68 | } |
| 69 | |
| 70 | void oval_state_content_iterator_freecxx . . $ oval_state_content_iterator_free(526a40962d3af9e1).(struct |
| 71 | oval_state_content_iteratorcxx . . $ oval_state_content_iterator# |
| 72 | *oc_state_content) |
| 73 | { |
| 74 | oval_collection_iterator_freecxx . . $ oval_collection_iterator_free(ee496816570b41f7).((struct oval_iteratorcxx . . $ oval_iterator# *) |
| 75 | oc_state_content); |
| 76 | } |
| 77 | |
| 78 | struct oval_entitycxx . . $ oval_entity# *oval_state_content_get_entitycxx . . $ oval_state_content_get_entity(20470541c08ba23c).(struct oval_state_contentcxx . . $ oval_state_content# |
| 79 | *content) |
| 80 | { |
| 81 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 82 | |
| 83 | return content->entitycxx . . $ oval_state_content#entity.; |
| 84 | } |
| 85 | |
| 86 | struct oval_record_field_iteratorcxx . . $ oval_record_field_iterator# *oval_state_content_get_record_fieldscxx . . $ oval_state_content_get_record_fields(80ae0df7f9ce32f5).(struct oval_state_contentcxx . . $ oval_state_content# *content) |
| 87 | { |
| 88 | if (!content->record_fieldscxx . . $ oval_state_content#record_fields.) |
| 89 | return (struct oval_record_field_iteratorcxx . . $ oval_record_field_iterator# *) |
| 90 | oval_collection_iterator_newcxx . . $ oval_collection_iterator_new(b73131c625ff44d1).(); |
| 91 | return (struct oval_record_field_iteratorcxx . . $ oval_record_field_iterator# *) |
| 92 | oval_collection_iteratorcxx . . $ oval_collection_iterator(8bdeb6a25e21af3e).(content->record_fieldscxx . . $ oval_state_content#record_fields.); |
| 93 | } |
| 94 | |
| 95 | oval_check_tcxx . . $ oval_check_t# oval_state_content_get_var_checkcxx . . $ oval_state_content_get_var_check(b164d4787670ef67).(struct oval_state_contentcxx . . $ oval_state_content# * content) |
| 96 | { |
| 97 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 98 | |
| 99 | return content->var_checkcxx . . $ oval_state_content#var_check.; |
| 100 | } |
| 101 | |
| 102 | oval_check_tcxx . . $ oval_check_t# oval_state_content_get_ent_checkcxx . . $ oval_state_content_get_ent_check(b164d4787670ef67).(struct oval_state_contentcxx . . $ oval_state_content# * content) |
| 103 | { |
| 104 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 105 | |
| 106 | return content->ent_checkcxx . . $ oval_state_content#ent_check.; |
| 107 | } |
| 108 | |
| 109 | oval_existence_tcxx . . $ oval_existence_t# oval_state_content_get_check_existencecxx . . $ oval_state_content_get_check_existence(443dcc0a44cf91f3).(struct oval_state_contentcxx . . $ oval_state_content# *content) |
| 110 | { |
| 111 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 112 | |
| 113 | return content->check_existencecxx . . $ oval_state_content#check_existence.; |
| 114 | } |
| 115 | |
| 116 | struct oval_state_contentcxx . . $ oval_state_content# *oval_state_content_newcxx . . $ oval_state_content_new(32e7b808e724d4c7).(struct oval_definition_modelcxx . . $ oval_definition_model# *model) |
| 117 | { |
| 118 | oval_state_content_tcxx . . $ oval_state_content_t# *content = (oval_state_content_tcxx . . $ oval_state_content_t# *) |
| 119 | malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(oval_state_content_tcxx . . $ oval_state_content_t#)); |
| 120 | if (content == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 121 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 122 | |
| 123 | content->entitycxx . . $ oval_state_content#entity. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 124 | content->record_fieldscxx . . $ oval_state_content#record_fields. = oval_collection_newcxx . . $ oval_collection_new(18476da3f812812d).(); |
| 125 | content->ent_checkcxx . . $ oval_state_content#ent_check. = OVAL_CHECK_UNKNOWNcxx . . $ OVAL_CHECK_UNKNOWN.; |
| 126 | content->var_checkcxx . . $ oval_state_content#var_check. = OVAL_CHECK_UNKNOWNcxx . . $ OVAL_CHECK_UNKNOWN.; |
| 127 | content->check_existencecxx . . $ oval_state_content#check_existence. = OVAL_EXISTENCE_UNKNOWNcxx . . $ OVAL_EXISTENCE_UNKNOWN.; |
| 128 | content->modelcxx . . $ oval_state_content#model. = model; |
| 129 | return content; |
| 130 | } |
| 131 | |
| 132 | struct oval_state_contentcxx . . $ oval_state_content# *oval_state_content_clonecxx . . $ oval_state_content_clone(f4c3f85bb04e73ab). |
| 133 | (struct oval_definition_modelcxx . . $ oval_definition_model# *new_model, struct oval_state_contentcxx . . $ oval_state_content# *old_content) { |
| 134 | struct oval_state_contentcxx . . $ oval_state_content# *new_content = oval_state_content_newcxx . . $ oval_state_content_new(32e7b808e724d4c7).(new_model); |
| 135 | oval_check_tcxx . . $ oval_check_t# echeck = oval_state_content_get_ent_checkcxx . . $ oval_state_content_get_ent_check(b164d4787670ef67).(old_content); |
| 136 | oval_state_content_set_entcheckcxx . . $ oval_state_content_set_entcheck(b9541f691cd813b5).(new_content, echeck); |
| 137 | struct oval_entitycxx . . $ oval_entity# *entity = oval_state_content_get_entitycxx . . $ oval_state_content_get_entity(20470541c08ba23c).(old_content); |
| 138 | oval_state_content_set_entitycxx . . $ oval_state_content_set_entity(54173faef7f7f078).(new_content, oval_entity_clonecxx . . $ oval_entity_clone(1af5ab030ffd9ac7).(new_model, entity)); |
| 139 | oval_check_tcxx . . $ oval_check_t# vcheck = oval_state_content_get_var_checkcxx . . $ oval_state_content_get_var_check(b164d4787670ef67).(old_content); |
| 140 | oval_state_content_set_varcheckcxx . . $ oval_state_content_set_varcheck(b9541f691cd813b5).(new_content, vcheck); |
| 141 | oval_existence_tcxx . . $ oval_existence_t# check_existence = oval_state_content_get_check_existencecxx . . $ oval_state_content_get_check_existence(443dcc0a44cf91f3).(old_content); |
| 142 | oval_state_content_set_check_existencecxx . . $ oval_state_content_set_check_existence(f82354beea725c89).(new_content, check_existence); |
| 143 | return new_content; |
| 144 | } |
| 145 | |
| 146 | void oval_state_content_freecxx . . $ oval_state_content_free(eae10a215fce6875).(struct oval_state_contentcxx . . $ oval_state_content# *content) |
| 147 | { |
| 148 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 149 | |
| 150 | if (content->entitycxx . . $ oval_state_content#entity.) |
| 151 | oval_entity_freecxx . . $ oval_entity_free(b7cc62b9e2b9f845).(content->entitycxx . . $ oval_state_content#entity.); |
| 152 | if (content->record_fieldscxx . . $ oval_state_content#record_fields.) |
| 153 | oval_collection_free_itemscxx . . $ oval_collection_free_items(637ec69504f927f1).(content->record_fieldscxx . . $ oval_state_content#record_fields., (oscap_destruct_funccxx . . $ oscap_destruct_func#) oval_record_field_freecxx . . $ oval_record_field_free(4e70384b3dd0de8a).); |
| 154 | freecxx . . $ free(5d22bdacc48458e8).(content); |
| 155 | } |
| 156 | |
| 157 | void oval_state_content_set_entitycxx . . $ oval_state_content_set_entity(54173faef7f7f078).(struct oval_state_contentcxx . . $ oval_state_content# *content, struct oval_entitycxx . . $ oval_entity# *entity) |
| 158 | { |
| 159 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 160 | if (content->entitycxx . . $ oval_state_content#entity.) |
| 161 | oval_entity_freecxx . . $ oval_entity_free(b7cc62b9e2b9f845).(content->entitycxx . . $ oval_state_content#entity.); |
| 162 | content->entitycxx . . $ oval_state_content#entity. = entity; |
| 163 | } |
| 164 | |
| 165 | void oval_state_content_add_record_fieldcxx . . $ oval_state_content_add_record_field(74ec1294075002d7).(struct oval_state_contentcxx . . $ oval_state_content# *content, struct oval_record_fieldcxx . . $ oval_record_field# *rf) |
| 166 | { |
| 167 | oval_collection_addcxx . . $ oval_collection_add(3c6bf54730c0284).(content->record_fieldscxx . . $ oval_state_content#record_fields., rf); |
| 168 | } |
| 169 | |
| 170 | void oval_state_content_set_varcheckcxx . . $ oval_state_content_set_varcheck(b9541f691cd813b5).(struct oval_state_contentcxx . . $ oval_state_content# *content, oval_check_tcxx . . $ oval_check_t# check) |
| 171 | { |
| 172 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 173 | content->var_checkcxx . . $ oval_state_content#var_check. = check; |
| 174 | } |
| 175 | |
| 176 | void oval_state_content_set_entcheckcxx . . $ oval_state_content_set_entcheck(b9541f691cd813b5).(struct oval_state_contentcxx . . $ oval_state_content# *content, oval_check_tcxx . . $ oval_check_t# check) |
| 177 | { |
| 178 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 179 | content->ent_checkcxx . . $ oval_state_content#ent_check. = check; |
| 180 | } |
| 181 | |
| 182 | void oval_state_content_set_check_existencecxx . . $ oval_state_content_set_check_existence(f82354beea725c89).(struct oval_state_contentcxx . . $ oval_state_content# *content, oval_existence_tcxx . . $ oval_existence_t# existence) |
| 183 | { |
| 184 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 185 | content->check_existencecxx . . $ oval_state_content#check_existence. = existence; |
| 186 | } |
| 187 | |
| 188 | static void _oval_state_content_entity_consumercxx . . $ _oval_state_content_entity_consumer(8d471c5e17c6117a).(struct oval_entitycxx . . $ oval_entity# *entity, struct oval_state_contentcxx . . $ oval_state_content# *content) { |
| 189 | oval_state_content_set_entitycxx . . $ oval_state_content_set_entity(54173faef7f7f078).(content, entity); |
| 190 | } |
| 191 | |
| 192 | static void _oval_state_content_record_field_consumercxx . . $ _oval_state_content_record_field_consumer(4cf2162e0355135a).(struct oval_record_fieldcxx . . $ oval_record_field# *rf, struct oval_state_contentcxx . . $ oval_state_content# *content) |
| 193 | { |
| 194 | oval_state_content_add_record_fieldcxx . . $ oval_state_content_add_record_field(74ec1294075002d7).(content, rf); |
| 195 | } |
| 196 | |
| 197 | static int _oval_state_content_parse_record_fieldcxx . . $ _oval_state_content_parse_record_field(cf369959597901d1).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, struct oval_parser_contextcxx . . $ oval_parser_context# *context, void *user) |
| 198 | { |
| 199 | return oval_record_field_parse_tagcxx . . $ oval_record_field_parse_tag(83f56dced9df2cd3).(reader, context, (oscap_consumer_funccxx . . $ oscap_consumer_func#) |
| 200 | &_oval_state_content_record_field_consumercxx . . $ _oval_state_content_record_field_consumer(4cf2162e0355135a)., |
| 201 | user, OVAL_RECORD_FIELD_STATEcxx . . $ OVAL_RECORD_FIELD_STATE.); |
| 202 | } |
| 203 | |
| 204 | int oval_state_content_parse_tagcxx . . $ oval_state_content_parse_tag(29f485c9b2aa6ded).(xmlTextReaderPtrcxx . . $ xmlTextReaderPtr# reader, |
| 205 | struct oval_parser_contextcxx . . $ oval_parser_context# *context, oscap_consumer_funccxx . . $ oscap_consumer_func# consumer, void *user) |
| 206 | { |
| 207 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(context); |
| 208 | |
| 209 | oval_datatype_tcxx . . $ oval_datatype_t# ent_datatype; |
| 210 | struct oval_state_contentcxx . . $ oval_state_content# *content = oval_state_content_newcxx . . $ oval_state_content_new(32e7b808e724d4c7).(context->definition_modelcxx . . $ oval_parser_context#definition_model.); |
| 211 | int retcode = oval_entity_parse_tagcxx . . $ oval_entity_parse_tag(29f485c9b2aa6ded). |
| 212 | (reader, context, (oscap_consumer_funccxx . . $ oscap_consumer_func#) _oval_state_content_entity_consumercxx . . $ _oval_state_content_entity_consumer(8d471c5e17c6117a)., content); |
| 213 | |
| 214 | oval_check_tcxx . . $ oval_check_t# var_check = oval_check_parsecxx . . $ oval_check_parse(def8dff2972e216b).(reader, "var_check", OVAL_CHECK_ALLcxx . . $ OVAL_CHECK_ALL.); |
| 215 | oval_check_tcxx . . $ oval_check_t# ent_check = oval_check_parsecxx . . $ oval_check_parse(def8dff2972e216b).(reader, "entity_check", OVAL_CHECK_ALLcxx . . $ OVAL_CHECK_ALL.); |
| 216 | /* "check_existence" is new optional attribute in OVAL 5.11.1 |
| 217 | * if this attribute is not present, the default value |
| 218 | * of "at_least_one_exists" is used |
| 219 | */ |
| 220 | oval_existence_tcxx . . $ oval_existence_t# check_existence = oval_existence_parsecxx . . $ oval_existence_parse(b51016942f976cd6).(reader, |
| 221 | "check_existence", OVAL_AT_LEAST_ONE_EXISTScxx . . $ OVAL_AT_LEAST_ONE_EXISTS.); |
| 222 | |
| 223 | ent_datatype = oval_entity_get_datatypecxx . . $ oval_entity_get_datatype(f8b1ce42a33ef434).(content->entitycxx . . $ oval_state_content#entity.); |
| 224 | if (ent_datatype == OVAL_DATATYPE_RECORDcxx . . $ OVAL_DATATYPE_RECORD.) { |
| 225 | retcode = oval_parser_parse_tagcxx . . $ oval_parser_parse_tag(4eaaf867ce26f59b).(reader, context, |
| 226 | &_oval_state_content_parse_record_fieldcxx . . $ _oval_state_content_parse_record_field(cf369959597901d1)., content); |
| 227 | } |
| 228 | |
| 229 | oval_state_content_set_varcheckcxx . . $ oval_state_content_set_varcheck(b9541f691cd813b5).(content, var_check); |
| 230 | oval_state_content_set_entcheckcxx . . $ oval_state_content_set_entcheck(b9541f691cd813b5).(content, ent_check); |
| 231 | oval_state_content_set_check_existencecxx . . $ oval_state_content_set_check_existence(f82354beea725c89).(content, check_existence); |
| 232 | |
| 233 | (*consumer) (content, user); |
| 234 | return retcode; |
| 235 | } |
| 236 | |
| 237 | xmlNodecxx . . $ xmlNode# *oval_state_content_to_domcxx . . $ oval_state_content_to_dom(96e33299e316026f).(struct oval_state_contentcxx . . $ oval_state_content# * content, xmlDoccxx . . $ xmlDoc# * doc, xmlNodecxx . . $ xmlNode# * parent) { |
| 238 | __attribute__nonnull__cxx . . $ `src/common/util.h:39:9`!(content); |
| 239 | |
| 240 | struct oval_record_field_iteratorcxx . . $ oval_record_field_iterator# *rf_itr; |
| 241 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! parent_mask; |
| 242 | xmlNodecxx . . $ xmlNode# *content_node = oval_entity_to_domcxx . . $ oval_entity_to_dom(e76be2c7a3117d53).(content->entitycxx . . $ oval_state_content#entity., doc, parent); |
| 243 | |
| 244 | parent_mask = oval_entity_get_maskcxx . . $ oval_entity_get_mask(ec1837a8906f93c7).(content->entitycxx . . $ oval_state_content#entity.); |
| 245 | |
| 246 | rf_itr = oval_state_content_get_record_fieldscxx . . $ oval_state_content_get_record_fields(80ae0df7f9ce32f5).(content); |
| 247 | if (oval_record_field_iterator_has_morecxx . . $ oval_record_field_iterator_has_more(f257abe5c2e43c5d).(rf_itr)) { |
| 248 | xmlNsPtrcxx . . $ xmlNsPtr# field_ns = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 249 | field_ns = xmlSearchNsByHrefcxx . . $ xmlSearchNsByHref(d0fb0b6b99319c4).(doc, xmlDocGetRootElementcxx . . $ xmlDocGetRootElement(53aa9a676bd496f2).(doc), OVAL_DEFINITIONS_NAMESPACEcxx . . $ `src/OVAL/oval_agent_api_impl.h:50:9`!); |
| 250 | if (field_ns == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { |
| 251 | field_ns = xmlNewNscxx . . $ xmlNewNs(f962c8aae91c9a10).(xmlDocGetRootElementcxx . . $ xmlDocGetRootElement(53aa9a676bd496f2).(doc), OVAL_DEFINITIONS_NAMESPACEcxx . . $ `src/OVAL/oval_agent_api_impl.h:50:9`!, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "oval-def"); |
| 252 | } |
| 253 | |
| 254 | while (oval_record_field_iterator_has_morecxx . . $ oval_record_field_iterator_has_more(f257abe5c2e43c5d).(rf_itr)) { |
| 255 | struct oval_record_fieldcxx . . $ oval_record_field# *rf; |
| 256 | |
| 257 | rf = oval_record_field_iterator_nextcxx . . $ oval_record_field_iterator_next(7c2c0ee515333432).(rf_itr); |
| 258 | oval_record_field_to_domcxx . . $ oval_record_field_to_dom(8e1fee8fc719207f).(rf, parent_mask, doc, content_node, field_ns); |
| 259 | } |
| 260 | } |
| 261 | oval_record_field_iterator_freecxx . . $ oval_record_field_iterator_free(6968805da7579f07).(rf_itr); |
| 262 | |
| 263 | oval_check_tcxx . . $ oval_check_t# var_check = oval_state_content_get_var_checkcxx . . $ oval_state_content_get_var_check(b164d4787670ef67).(content); |
| 264 | if (var_check != OVAL_CHECK_ALLcxx . . $ OVAL_CHECK_ALL. || xmlHasPropcxx . . $ xmlHasProp(b74e98cace1a33d3).(content_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "var_ref")) |
| 265 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(content_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "var_check", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_check_get_textcxx . . $ oval_check_get_text(738477922eea9c02).(var_check)); |
| 266 | |
| 267 | oval_check_tcxx . . $ oval_check_t# ent_check = oval_state_content_get_ent_checkcxx . . $ oval_state_content_get_ent_check(b164d4787670ef67).(content); |
| 268 | if (ent_check != OVAL_CHECK_ALLcxx . . $ OVAL_CHECK_ALL.) |
| 269 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(content_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "entity_check", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_check_get_textcxx . . $ oval_check_get_text(738477922eea9c02).(ent_check)); |
| 270 | oval_schema_version_tcxx . . $ oval_schema_version_t# ver = oval_definition_model_get_core_schema_versioncxx . . $ oval_definition_model_get_core_schema_version(5e2dc48a93a33b7c).(content->modelcxx . . $ oval_state_content#model.); |
| 271 | if (oval_schema_version_cmpcxx . . $ oval_schema_version_cmp(b4d0c2bfb97f274f).(ver, OVAL_SCHEMA_VERSIONcxx . . $ `src/OVAL/public/oval_schema_version.h:39:9`!(5.11.1)) >= 0) { |
| 272 | oval_existence_tcxx . . $ oval_existence_t# check_existence = oval_state_content_get_check_existencecxx . . $ oval_state_content_get_check_existence(443dcc0a44cf91f3).(content); |
| 273 | if (check_existence != OVAL_AT_LEAST_ONE_EXISTScxx . . $ OVAL_AT_LEAST_ONE_EXISTS.) { |
| 274 | // at_least_one_exists is default value |
| 275 | xmlNewPropcxx . . $ xmlNewProp(6ee5a6130c40eb8b).(content_node, BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! "check_existence", BAD_CASTcxx . . $ `<external>/11592416788776295748/xmlstring.h:34:9`! oval_existence_get_textcxx . . $ oval_existence_get_text(b55025df715e2668).(check_existence)); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | return content_node; |
| 280 | } |