Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | |
| 2 | /*** <<< DEPS [LogLine] >>> ***/ |
| 3 | |
| 4 | /* Dependencies for LogLine */ |
| 5 | #include <IA5String.h> |
| 6 | |
| 7 | /* Dependencies for varsets */ |
| 8 | #include <VariablePartSet.h> |
| 9 | #include <asn_SEQUENCE_OF.h> |
| 10 | |
| 11 | #include <constr_SEQUENCE_OF.h> |
| 12 | #include <constr_SEQUENCE.h> |
| 13 | |
| 14 | extern asn1_TYPE_descriptor_t asn1_DEF_LogLine; |
| 15 | |
| 16 | /*** <<< TYPE-DECLS [LogLine] >>> ***/ |
| 17 | |
| 18 | |
| 19 | typedef struct LogLine { |
| 20 | IA5String_t line_digest; |
| 21 | struct varsets { |
| 22 | A_SEQUENCE_OF(struct VariablePartSet) list; |
| 23 | |
| 24 | /* Context for parsing across buffer boundaries */ |
| 25 | ber_dec_ctx_t _ber_dec_ctx; |
| 26 | } varsets; |
| 27 | /* |
| 28 | * This type is extensible, |
| 29 | * possible extensions are below. |
| 30 | */ |
| 31 | |
| 32 | /* Context for parsing across buffer boundaries */ |
| 33 | ber_dec_ctx_t _ber_dec_ctx; |
| 34 | } LogLine_t; |
| 35 | |
| 36 | /*** <<< STAT-DEFS [LogLine] >>> ***/ |
| 37 | |
| 38 | static asn1_SET_OF_element_t asn1_DEF_varsets_elements[] = { |
| 39 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 40 | (void *)&asn1_DEF_VariablePartSet }, |
| 41 | }; |
| 42 | static ber_tlv_tag_t asn1_DEF_varsets_tags[] = { |
| 43 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 44 | }; |
| 45 | static asn1_SET_OF_specifics_t asn1_DEF_varsets_specs = { |
| 46 | sizeof(struct varsets), |
| 47 | offsetof(struct varsets, _ber_dec_ctx), |
| 48 | asn1_DEF_varsets_elements |
| 49 | }; |
| 50 | asn1_TYPE_descriptor_t asn1_DEF_varsets = { |
| 51 | "varsets", |
| 52 | SEQUENCE_OF_constraint, |
| 53 | SEQUENCE_OF_decode_ber, |
| 54 | SEQUENCE_OF_encode_der, |
| 55 | SEQUENCE_OF_print, |
| 56 | SEQUENCE_OF_free, |
| 57 | 0, /* Use generic outmost tag fetcher */ |
| 58 | asn1_DEF_varsets_tags, |
| 59 | sizeof(asn1_DEF_varsets_tags) |
| 60 | /sizeof(asn1_DEF_varsets_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 61 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 62 | 1, /* Whether CONSTRUCTED */ |
| 63 | &asn1_DEF_varsets_specs /* Additional specs */ |
| 64 | }; |
| 65 | |
| 66 | #include <constr_SEQUENCE.h> |
| 67 | |
| 68 | static asn1_SEQUENCE_element_t asn1_DEF_LogLine_elements[] = { |
| 69 | { offsetof(struct LogLine, line_digest), 0, |
| 70 | (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), |
| 71 | 0, |
| 72 | (void *)&asn1_DEF_IA5String, |
| 73 | "line-digest" |
| 74 | }, |
| 75 | { offsetof(struct LogLine, varsets), 0, |
| 76 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 77 | 0, |
| 78 | (void *)&asn1_DEF_varsets, |
| 79 | "varsets" |
| 80 | }, |
| 81 | }; |
| 82 | static ber_tlv_tag_t asn1_DEF_LogLine_tags[] = { |
| 83 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 84 | }; |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 85 | static asn1_TYPE_tag2member_t asn1_DEF_LogLine_tag2el[] = { |
Lev Walkin | 38abe79 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 86 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */ |
| 87 | { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 }, /* line-digest at 23 */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 88 | }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 89 | static asn1_SEQUENCE_specifics_t asn1_DEF_LogLine_specs = { |
| 90 | sizeof(struct LogLine), |
| 91 | offsetof(struct LogLine, _ber_dec_ctx), |
| 92 | asn1_DEF_LogLine_elements, |
| 93 | 2, /* Elements count */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 94 | asn1_DEF_LogLine_tag2el, |
| 95 | 2, /* Count of tags in the map */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 96 | 1, /* Start extensions */ |
| 97 | 3 /* Stop extensions */ |
| 98 | }; |
| 99 | asn1_TYPE_descriptor_t asn1_DEF_LogLine = { |
| 100 | "LogLine", |
| 101 | SEQUENCE_constraint, |
| 102 | SEQUENCE_decode_ber, |
| 103 | SEQUENCE_encode_der, |
| 104 | SEQUENCE_print, |
| 105 | SEQUENCE_free, |
| 106 | 0, /* Use generic outmost tag fetcher */ |
| 107 | asn1_DEF_LogLine_tags, |
| 108 | sizeof(asn1_DEF_LogLine_tags) |
| 109 | /sizeof(asn1_DEF_LogLine_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 110 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 111 | 1, /* Whether CONSTRUCTED */ |
| 112 | &asn1_DEF_LogLine_specs /* Additional specs */ |
| 113 | }; |
| 114 | |
| 115 | |
| 116 | /*** <<< DEPS [VariablePartSet] >>> ***/ |
| 117 | |
| 118 | /* Dependencies for VariablePartSet */ |
| 119 | #include <ActionItem.h> |
| 120 | |
| 121 | /* Dependencies for vparts */ |
| 122 | #include <VariablePart.h> |
| 123 | #include <asn_SEQUENCE_OF.h> |
| 124 | |
| 125 | #include <constr_SEQUENCE_OF.h> |
| 126 | #include <constr_SEQUENCE.h> |
| 127 | |
| 128 | extern asn1_TYPE_descriptor_t asn1_DEF_VariablePartSet; |
| 129 | |
| 130 | /*** <<< TYPE-DECLS [VariablePartSet] >>> ***/ |
| 131 | |
| 132 | |
| 133 | typedef struct VariablePartSet { |
| 134 | struct vparts { |
| 135 | A_SEQUENCE_OF(struct VariablePart) list; |
| 136 | |
| 137 | /* Context for parsing across buffer boundaries */ |
| 138 | ber_dec_ctx_t _ber_dec_ctx; |
| 139 | } vparts; |
| 140 | ActionItem_t resolution; |
| 141 | /* |
| 142 | * This type is extensible, |
| 143 | * possible extensions are below. |
| 144 | */ |
| 145 | |
| 146 | /* Context for parsing across buffer boundaries */ |
| 147 | ber_dec_ctx_t _ber_dec_ctx; |
| 148 | } VariablePartSet_t; |
| 149 | |
| 150 | /*** <<< STAT-DEFS [VariablePartSet] >>> ***/ |
| 151 | |
| 152 | static asn1_SET_OF_element_t asn1_DEF_vparts_elements[] = { |
| 153 | { -1 /* Ambiguous tag (CHOICE?) */, |
| 154 | (void *)&asn1_DEF_VariablePart }, |
| 155 | }; |
| 156 | static ber_tlv_tag_t asn1_DEF_vparts_tags[] = { |
| 157 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 158 | }; |
| 159 | static asn1_SET_OF_specifics_t asn1_DEF_vparts_specs = { |
| 160 | sizeof(struct vparts), |
| 161 | offsetof(struct vparts, _ber_dec_ctx), |
| 162 | asn1_DEF_vparts_elements |
| 163 | }; |
| 164 | asn1_TYPE_descriptor_t asn1_DEF_vparts = { |
| 165 | "vparts", |
| 166 | SEQUENCE_OF_constraint, |
| 167 | SEQUENCE_OF_decode_ber, |
| 168 | SEQUENCE_OF_encode_der, |
| 169 | SEQUENCE_OF_print, |
| 170 | SEQUENCE_OF_free, |
| 171 | 0, /* Use generic outmost tag fetcher */ |
| 172 | asn1_DEF_vparts_tags, |
| 173 | sizeof(asn1_DEF_vparts_tags) |
| 174 | /sizeof(asn1_DEF_vparts_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 175 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 176 | 1, /* Whether CONSTRUCTED */ |
| 177 | &asn1_DEF_vparts_specs /* Additional specs */ |
| 178 | }; |
| 179 | |
| 180 | #include <constr_SEQUENCE.h> |
| 181 | |
| 182 | static asn1_SEQUENCE_element_t asn1_DEF_VariablePartSet_elements[] = { |
| 183 | { offsetof(struct VariablePartSet, vparts), 0, |
| 184 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 185 | 0, |
| 186 | (void *)&asn1_DEF_vparts, |
| 187 | "vparts" |
| 188 | }, |
| 189 | { offsetof(struct VariablePartSet, resolution), 0, |
| 190 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 191 | 0, |
| 192 | (void *)&asn1_DEF_ActionItem, |
| 193 | "resolution" |
| 194 | }, |
| 195 | }; |
| 196 | static ber_tlv_tag_t asn1_DEF_VariablePartSet_tags[] = { |
| 197 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 198 | }; |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 199 | static asn1_TYPE_tag2member_t asn1_DEF_VariablePartSet_tag2el[] = { |
Lev Walkin | 38abe79 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 200 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */ |
| 201 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 }, /* resolution at 35 */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 202 | }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 203 | static asn1_SEQUENCE_specifics_t asn1_DEF_VariablePartSet_specs = { |
| 204 | sizeof(struct VariablePartSet), |
| 205 | offsetof(struct VariablePartSet, _ber_dec_ctx), |
| 206 | asn1_DEF_VariablePartSet_elements, |
| 207 | 2, /* Elements count */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 208 | asn1_DEF_VariablePartSet_tag2el, |
| 209 | 2, /* Count of tags in the map */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 210 | 1, /* Start extensions */ |
| 211 | 3 /* Stop extensions */ |
| 212 | }; |
| 213 | asn1_TYPE_descriptor_t asn1_DEF_VariablePartSet = { |
| 214 | "VariablePartSet", |
| 215 | SEQUENCE_constraint, |
| 216 | SEQUENCE_decode_ber, |
| 217 | SEQUENCE_encode_der, |
| 218 | SEQUENCE_print, |
| 219 | SEQUENCE_free, |
| 220 | 0, /* Use generic outmost tag fetcher */ |
| 221 | asn1_DEF_VariablePartSet_tags, |
| 222 | sizeof(asn1_DEF_VariablePartSet_tags) |
| 223 | /sizeof(asn1_DEF_VariablePartSet_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 224 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 225 | 1, /* Whether CONSTRUCTED */ |
| 226 | &asn1_DEF_VariablePartSet_specs /* Additional specs */ |
| 227 | }; |
| 228 | |
| 229 | |
| 230 | /*** <<< DEPS [VariablePart] >>> ***/ |
| 231 | |
| 232 | |
| 233 | /* Dependencies for vset */ |
| 234 | #include <VisibleString.h> |
| 235 | #include <asn_SET_OF.h> |
| 236 | |
| 237 | #include <constr_SET_OF.h> |
| 238 | |
| 239 | /* Dependencies for vrange */ |
| 240 | #include <VisibleString.h> |
| 241 | #include <VisibleString.h> |
| 242 | |
| 243 | #include <constr_SEQUENCE.h> |
| 244 | |
| 245 | extern asn1_TYPE_descriptor_t asn1_DEF_VariablePart; |
| 246 | |
| 247 | /*** <<< TYPE-DECLS [VariablePart] >>> ***/ |
| 248 | |
| 249 | |
| 250 | typedef struct VariablePart { |
| 251 | enum { |
| 252 | VariablePart_PR_NOTHING, /* No components present */ |
| 253 | VariablePart_PR_vset, |
| 254 | VariablePart_PR_vrange, |
| 255 | } present; |
| 256 | union { |
| 257 | struct vset { |
| 258 | A_SET_OF(VisibleString_t) list; |
| 259 | |
| 260 | /* Context for parsing across buffer boundaries */ |
| 261 | ber_dec_ctx_t _ber_dec_ctx; |
| 262 | } vset; |
| 263 | struct vrange { |
| 264 | VisibleString_t from; |
| 265 | VisibleString_t to; |
| 266 | /* |
| 267 | * This type is extensible, |
| 268 | * possible extensions are below. |
| 269 | */ |
| 270 | |
| 271 | /* Context for parsing across buffer boundaries */ |
| 272 | ber_dec_ctx_t _ber_dec_ctx; |
| 273 | } vrange; |
| 274 | /* |
| 275 | * This type is extensible, |
| 276 | * possible extensions are below. |
| 277 | */ |
| 278 | } choice; |
| 279 | |
| 280 | /* Context for parsing across buffer boundaries */ |
| 281 | ber_dec_ctx_t _ber_dec_ctx; |
| 282 | } VariablePart_t; |
| 283 | |
| 284 | /*** <<< STAT-DEFS [VariablePart] >>> ***/ |
| 285 | |
| 286 | static asn1_SET_OF_element_t asn1_DEF_vset_elements[] = { |
| 287 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 288 | (void *)&asn1_DEF_VisibleString }, |
| 289 | }; |
| 290 | static ber_tlv_tag_t asn1_DEF_vset_tags[] = { |
| 291 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 292 | }; |
| 293 | static asn1_SET_OF_specifics_t asn1_DEF_vset_specs = { |
| 294 | sizeof(struct vset), |
| 295 | offsetof(struct vset, _ber_dec_ctx), |
| 296 | asn1_DEF_vset_elements |
| 297 | }; |
| 298 | asn1_TYPE_descriptor_t asn1_DEF_vset = { |
| 299 | "vset", |
| 300 | SET_OF_constraint, |
| 301 | SET_OF_decode_ber, |
| 302 | SET_OF_encode_der, |
| 303 | SET_OF_print, |
| 304 | SET_OF_free, |
| 305 | 0, /* Use generic outmost tag fetcher */ |
| 306 | asn1_DEF_vset_tags, |
| 307 | sizeof(asn1_DEF_vset_tags) |
| 308 | /sizeof(asn1_DEF_vset_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 309 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 310 | 1, /* Whether CONSTRUCTED */ |
| 311 | &asn1_DEF_vset_specs /* Additional specs */ |
| 312 | }; |
| 313 | |
| 314 | #include <constr_SEQUENCE.h> |
| 315 | |
| 316 | static asn1_SEQUENCE_element_t asn1_DEF_vrange_elements[] = { |
| 317 | { offsetof(struct vrange, from), 0, |
| 318 | (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 319 | 0, |
| 320 | (void *)&asn1_DEF_VisibleString, |
| 321 | "from" |
| 322 | }, |
| 323 | { offsetof(struct vrange, to), 0, |
| 324 | (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 325 | 0, |
| 326 | (void *)&asn1_DEF_VisibleString, |
| 327 | "to" |
| 328 | }, |
| 329 | }; |
| 330 | static ber_tlv_tag_t asn1_DEF_vrange_tags[] = { |
| 331 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 332 | }; |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 333 | static asn1_TYPE_tag2member_t asn1_DEF_vrange_tag2el[] = { |
Lev Walkin | 38abe79 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 334 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */ |
| 335 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 }, /* to at 46 */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 336 | }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 337 | static asn1_SEQUENCE_specifics_t asn1_DEF_vrange_specs = { |
| 338 | sizeof(struct vrange), |
| 339 | offsetof(struct vrange, _ber_dec_ctx), |
| 340 | asn1_DEF_vrange_elements, |
| 341 | 2, /* Elements count */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 342 | asn1_DEF_vrange_tag2el, |
| 343 | 2, /* Count of tags in the map */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 344 | 1, /* Start extensions */ |
| 345 | 3 /* Stop extensions */ |
| 346 | }; |
| 347 | asn1_TYPE_descriptor_t asn1_DEF_vrange = { |
| 348 | "vrange", |
| 349 | SEQUENCE_constraint, |
| 350 | SEQUENCE_decode_ber, |
| 351 | SEQUENCE_encode_der, |
| 352 | SEQUENCE_print, |
| 353 | SEQUENCE_free, |
| 354 | 0, /* Use generic outmost tag fetcher */ |
| 355 | asn1_DEF_vrange_tags, |
| 356 | sizeof(asn1_DEF_vrange_tags) |
| 357 | /sizeof(asn1_DEF_vrange_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 358 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 359 | 1, /* Whether CONSTRUCTED */ |
| 360 | &asn1_DEF_vrange_specs /* Additional specs */ |
| 361 | }; |
| 362 | |
| 363 | #include <constr_CHOICE.h> |
| 364 | |
| 365 | static asn1_CHOICE_element_t asn1_DEF_VariablePart_elements[] = { |
| 366 | { offsetof(struct VariablePart, choice.vset), 0, |
| 367 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 368 | 0, |
| 369 | (void *)&asn1_DEF_vset, |
| 370 | "vset" |
| 371 | }, |
| 372 | { offsetof(struct VariablePart, choice.vrange), 0, |
| 373 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 374 | 0, |
| 375 | (void *)&asn1_DEF_vrange, |
| 376 | "vrange" |
| 377 | }, |
| 378 | }; |
| 379 | static ber_tlv_tag_t asn1_DEF_VariablePart_tags[] = { |
| 380 | |
| 381 | }; |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 382 | static asn1_TYPE_tag2member_t asn1_DEF_VariablePart_tag2el[] = { |
Lev Walkin | 38abe79 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 383 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */ |
| 384 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 }, /* vset at 42 */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 385 | }; |
| 386 | static asn1_CHOICE_specifics_t asn1_DEF_VariablePart_specs = { |
| 387 | sizeof(struct VariablePart), |
| 388 | offsetof(struct VariablePart, _ber_dec_ctx), |
| 389 | offsetof(struct VariablePart, present), |
| 390 | sizeof(((struct VariablePart *)0)->present), |
| 391 | asn1_DEF_VariablePart_elements, |
| 392 | 2, /* Elements count */ |
| 393 | asn1_DEF_VariablePart_tag2el, |
| 394 | 2, /* Count of tags in the map */ |
Lev Walkin | d64497c | 2004-07-01 00:49:55 +0000 | [diff] [blame] | 395 | 1 /* Whether extensible */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 396 | }; |
| 397 | asn1_TYPE_descriptor_t asn1_DEF_VariablePart = { |
| 398 | "VariablePart", |
| 399 | CHOICE_constraint, |
| 400 | CHOICE_decode_ber, |
| 401 | CHOICE_encode_der, |
| 402 | CHOICE_print, |
| 403 | CHOICE_free, |
| 404 | CHOICE_outmost_tag, |
| 405 | asn1_DEF_VariablePart_tags, |
| 406 | sizeof(asn1_DEF_VariablePart_tags) |
| 407 | /sizeof(asn1_DEF_VariablePart_tags[0]), |
| 408 | 0, /* Tags to skip */ |
| 409 | 1, /* Whether CONSTRUCTED */ |
| 410 | &asn1_DEF_VariablePart_specs /* Additional specs */ |
| 411 | }; |
| 412 | |
| 413 | |
| 414 | /*** <<< DEPS [ActionItem] >>> ***/ |
| 415 | |
| 416 | /* Dependencies for ActionItem */ |
| 417 | #include <ENUMERATED.h> |
| 418 | |
| 419 | typedef enum accept_as { |
| 420 | accept_as_unknown = 0, |
| 421 | accept_as_safe = 1, |
| 422 | accept_as_unsafe = 2, |
| 423 | /* |
| 424 | * Enumeration is extensible |
| 425 | */ |
| 426 | } accept_as_e; |
| 427 | /* Dependencies for notify */ |
| 428 | #include <BOOLEAN.h> |
| 429 | |
| 430 | /* Dependencies for email */ |
| 431 | #include <VisibleString.h> |
| 432 | #include <asn_SET_OF.h> |
| 433 | |
| 434 | #include <constr_SET_OF.h> |
| 435 | |
| 436 | #include <constr_SEQUENCE.h> |
| 437 | |
| 438 | #include <constr_SEQUENCE.h> |
| 439 | |
| 440 | extern asn1_TYPE_descriptor_t asn1_DEF_ActionItem; |
| 441 | |
| 442 | /*** <<< TYPE-DECLS [ActionItem] >>> ***/ |
| 443 | |
| 444 | |
| 445 | typedef struct ActionItem { |
| 446 | ENUMERATED_t accept_as; |
| 447 | struct notify { |
| 448 | BOOLEAN_t critical; |
| 449 | struct email { |
| 450 | A_SET_OF(VisibleString_t) list; |
| 451 | |
| 452 | /* Context for parsing across buffer boundaries */ |
| 453 | ber_dec_ctx_t _ber_dec_ctx; |
| 454 | } email; |
| 455 | /* |
| 456 | * This type is extensible, |
| 457 | * possible extensions are below. |
| 458 | */ |
| 459 | |
| 460 | /* Context for parsing across buffer boundaries */ |
| 461 | ber_dec_ctx_t _ber_dec_ctx; |
| 462 | } *notify; |
| 463 | /* |
| 464 | * This type is extensible, |
| 465 | * possible extensions are below. |
| 466 | */ |
| 467 | |
| 468 | /* Context for parsing across buffer boundaries */ |
| 469 | ber_dec_ctx_t _ber_dec_ctx; |
| 470 | } ActionItem_t; |
| 471 | |
| 472 | /*** <<< STAT-DEFS [ActionItem] >>> ***/ |
| 473 | |
| 474 | static asn1_SET_OF_element_t asn1_DEF_email_elements[] = { |
| 475 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 476 | (void *)&asn1_DEF_VisibleString }, |
| 477 | }; |
| 478 | static ber_tlv_tag_t asn1_DEF_email_tags[] = { |
| 479 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 480 | }; |
| 481 | static asn1_SET_OF_specifics_t asn1_DEF_email_specs = { |
| 482 | sizeof(struct email), |
| 483 | offsetof(struct email, _ber_dec_ctx), |
| 484 | asn1_DEF_email_elements |
| 485 | }; |
| 486 | asn1_TYPE_descriptor_t asn1_DEF_email = { |
| 487 | "email", |
| 488 | SET_OF_constraint, |
| 489 | SET_OF_decode_ber, |
| 490 | SET_OF_encode_der, |
| 491 | SET_OF_print, |
| 492 | SET_OF_free, |
| 493 | 0, /* Use generic outmost tag fetcher */ |
| 494 | asn1_DEF_email_tags, |
| 495 | sizeof(asn1_DEF_email_tags) |
| 496 | /sizeof(asn1_DEF_email_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 497 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 498 | 1, /* Whether CONSTRUCTED */ |
| 499 | &asn1_DEF_email_specs /* Additional specs */ |
| 500 | }; |
| 501 | |
| 502 | #include <constr_SEQUENCE.h> |
| 503 | |
| 504 | static asn1_SEQUENCE_element_t asn1_DEF_notify_elements[] = { |
| 505 | { offsetof(struct notify, critical), 0, |
| 506 | (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), |
| 507 | 0, |
| 508 | (void *)&asn1_DEF_BOOLEAN, |
| 509 | "critical" |
| 510 | }, |
| 511 | { offsetof(struct notify, email), 0, |
| 512 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 513 | 0, |
| 514 | (void *)&asn1_DEF_email, |
| 515 | "email" |
| 516 | }, |
| 517 | }; |
| 518 | static ber_tlv_tag_t asn1_DEF_notify_tags[] = { |
| 519 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 520 | }; |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 521 | static asn1_TYPE_tag2member_t asn1_DEF_notify_tag2el[] = { |
Lev Walkin | 38abe79 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 522 | { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */ |
| 523 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 }, /* email at 62 */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 524 | }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 525 | static asn1_SEQUENCE_specifics_t asn1_DEF_notify_specs = { |
| 526 | sizeof(struct notify), |
| 527 | offsetof(struct notify, _ber_dec_ctx), |
| 528 | asn1_DEF_notify_elements, |
| 529 | 2, /* Elements count */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 530 | asn1_DEF_notify_tag2el, |
| 531 | 2, /* Count of tags in the map */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 532 | 1, /* Start extensions */ |
| 533 | 3 /* Stop extensions */ |
| 534 | }; |
| 535 | asn1_TYPE_descriptor_t asn1_DEF_notify = { |
| 536 | "notify", |
| 537 | SEQUENCE_constraint, |
| 538 | SEQUENCE_decode_ber, |
| 539 | SEQUENCE_encode_der, |
| 540 | SEQUENCE_print, |
| 541 | SEQUENCE_free, |
| 542 | 0, /* Use generic outmost tag fetcher */ |
| 543 | asn1_DEF_notify_tags, |
| 544 | sizeof(asn1_DEF_notify_tags) |
| 545 | /sizeof(asn1_DEF_notify_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 546 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 547 | 1, /* Whether CONSTRUCTED */ |
| 548 | &asn1_DEF_notify_specs /* Additional specs */ |
| 549 | }; |
| 550 | |
| 551 | #include <constr_SEQUENCE.h> |
| 552 | |
| 553 | static asn1_SEQUENCE_element_t asn1_DEF_ActionItem_elements[] = { |
| 554 | { offsetof(struct ActionItem, accept_as), 0, |
| 555 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 556 | 0, |
| 557 | (void *)&asn1_DEF_ENUMERATED, |
| 558 | "accept-as" |
| 559 | }, |
| 560 | { offsetof(struct ActionItem, notify), 1, |
| 561 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 562 | 0, |
| 563 | (void *)&asn1_DEF_notify, |
| 564 | "notify" |
| 565 | }, |
| 566 | }; |
| 567 | static ber_tlv_tag_t asn1_DEF_ActionItem_tags[] = { |
| 568 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 569 | }; |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 570 | static asn1_TYPE_tag2member_t asn1_DEF_ActionItem_tag2el[] = { |
Lev Walkin | 38abe79 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 571 | { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */ |
| 572 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* notify at 61 */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 573 | }; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 574 | static asn1_SEQUENCE_specifics_t asn1_DEF_ActionItem_specs = { |
| 575 | sizeof(struct ActionItem), |
| 576 | offsetof(struct ActionItem, _ber_dec_ctx), |
| 577 | asn1_DEF_ActionItem_elements, |
| 578 | 2, /* Elements count */ |
Lev Walkin | cda6b8a | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 579 | asn1_DEF_ActionItem_tag2el, |
| 580 | 2, /* Count of tags in the map */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 581 | 1, /* Start extensions */ |
| 582 | 3 /* Stop extensions */ |
| 583 | }; |
| 584 | asn1_TYPE_descriptor_t asn1_DEF_ActionItem = { |
| 585 | "ActionItem", |
| 586 | SEQUENCE_constraint, |
| 587 | SEQUENCE_decode_ber, |
| 588 | SEQUENCE_encode_der, |
| 589 | SEQUENCE_print, |
| 590 | SEQUENCE_free, |
| 591 | 0, /* Use generic outmost tag fetcher */ |
| 592 | asn1_DEF_ActionItem_tags, |
| 593 | sizeof(asn1_DEF_ActionItem_tags) |
| 594 | /sizeof(asn1_DEF_ActionItem_tags[0]), |
Lev Walkin | 5bbff1e | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 595 | 1, /* Tags to skip */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 596 | 1, /* Whether CONSTRUCTED */ |
| 597 | &asn1_DEF_ActionItem_specs /* Additional specs */ |
| 598 | }; |
| 599 | |