blob: 134597c819f2dbb467a0a8a97b5a53fb6f0f8c98 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
Lev Walkinb47ddce2004-08-11 05:25:47 +00002/*** <<< INCLUDES [LogLine] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +00003
Lev Walkinf15320b2004-06-03 03:38:44 +00004#include <IA5String.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00005#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +00006#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00007#include <constr_SEQUENCE.h>
8
Lev Walkinc8285712005-03-04 22:18:20 +00009/*** <<< FWD-DECLS [LogLine] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +000010
Lev Walkinbf56d542005-03-04 23:50:56 +000011struct VariablePartSet;
Lev Walkinf15320b2004-06-03 03:38:44 +000012
13/*** <<< TYPE-DECLS [LogLine] >>> ***/
14
Lev Walkinf15320b2004-06-03 03:38:44 +000015typedef struct LogLine {
16 IA5String_t line_digest;
17 struct varsets {
Lev Walkinc8285712005-03-04 22:18:20 +000018 A_SEQUENCE_OF(struct VariablePartSet) list;
Lev Walkinf15320b2004-06-03 03:38:44 +000019
20 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000021 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +000022 } varsets;
23 /*
24 * This type is extensible,
25 * possible extensions are below.
26 */
27
28 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +000029 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +000030} LogLine_t;
31
Lev Walkinc8285712005-03-04 22:18:20 +000032/*** <<< FUNC-DECLS [LogLine] >>> ***/
33
34extern asn_TYPE_descriptor_t asn_DEF_LogLine;
35
36/*** <<< POST-INCLUDE [LogLine] >>> ***/
37
Lev Walkin22b5ed42006-09-13 02:51:20 +000038#include "VariablePartSet.h"
Lev Walkinc8285712005-03-04 22:18:20 +000039
Lev Walkin2e3055d2004-08-20 13:36:32 +000040/*** <<< CODE [LogLine] >>> ***/
41
42static int
Lev Walkin20696a42017-10-17 21:27:33 -070043memb_varsets_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000044 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +000045 size_t size;
46
47 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070048 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +000049 "%s: value not given (%s:%d)",
50 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +000051 return -1;
52 }
53
Lev Walkin66d542b2005-07-04 02:03:57 +000054 /* Determine the number of elements */
55 size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +000056
57 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +000058 /* Perform validation of the inner elements */
Lev Walkin46b394d2020-07-06 23:43:55 -070059 return SEQUENCE_OF_constraint(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +000060 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -070061 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +000062 "%s: constraint failed (%s:%d)",
63 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +000064 return -1;
65 }
66}
67
68
Lev Walkinf15320b2004-06-03 03:38:44 +000069/*** <<< STAT-DEFS [LogLine] >>> ***/
70
Lev Walkine8318b82005-03-06 09:29:03 +000071static asn_TYPE_member_t asn_MBR_varsets_3[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +000072 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +000073 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
74 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +000075 .type = &asn_DEF_VariablePartSet,
Lev Walkin67a30122017-08-10 05:48:54 -070076 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -070077 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -070078 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +000079 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +000080 },
Lev Walkin2e3055d2004-08-20 13:36:32 +000081};
Lev Walkina7591b52014-10-12 18:37:35 -070082static const ber_tlv_tag_t asn_DEF_varsets_tags_3[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000083 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
84};
Lev Walkin59b176e2005-11-26 11:25:14 +000085static asn_SET_OF_specifics_t asn_SPC_varsets_specs_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000086 sizeof(struct varsets),
Lev Walkindfae9752004-09-29 13:19:37 +000087 offsetof(struct varsets, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +000088 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +000089};
Lev Walkind04430c2004-09-07 06:44:29 +000090static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +000091asn_TYPE_descriptor_t asn_DEF_varsets_3 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +000092 "varsets",
Lev Walkindc06f6b2004-10-20 15:50:55 +000093 "varsets",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080094 &asn_OP_SEQUENCE_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +000095 asn_DEF_varsets_tags_3,
96 sizeof(asn_DEF_varsets_tags_3)
97 /sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
98 asn_DEF_varsets_tags_3, /* Same as above */
99 sizeof(asn_DEF_varsets_tags_3)
100 /sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700101 { 0, 0, SEQUENCE_OF_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000102 asn_MBR_varsets_3,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000103 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000104 &asn_SPC_varsets_specs_3 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000105};
106
Lev Walkine0272aa2005-03-04 11:26:08 +0000107static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000108 { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000109 .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
110 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000111 .type = &asn_DEF_IA5String,
Lev Walkin67a30122017-08-10 05:48:54 -0700112 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700113 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700114 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000115 .name = "line-digest"
116 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000117 { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000118 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
119 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000120 .type = &asn_DEF_varsets_3,
Lev Walkin67a30122017-08-10 05:48:54 -0700121 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700122 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_varsets_constraint_1 },
Lev Walkin20696a42017-10-17 21:27:33 -0700123 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000124 .name = "varsets"
Lev Walkinf15320b2004-06-03 03:38:44 +0000125 },
126};
Lev Walkina7591b52014-10-12 18:37:35 -0700127static const ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000128 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
129};
Lev Walkina7591b52014-10-12 18:37:35 -0700130static const asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700131 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */
132 { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000133};
Lev Walkin59b176e2005-11-26 11:25:14 +0000134static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000135 sizeof(struct LogLine),
Lev Walkindfae9752004-09-29 13:19:37 +0000136 offsetof(struct LogLine, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700137 .tag2el = asn_MAP_LogLine_tag2el_1,
138 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000139 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700140 2, /* First extension addition */
Lev Walkinf15320b2004-06-03 03:38:44 +0000141};
Lev Walkindfae9752004-09-29 13:19:37 +0000142asn_TYPE_descriptor_t asn_DEF_LogLine = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000143 "LogLine",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000144 "LogLine",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800145 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000146 asn_DEF_LogLine_tags_1,
147 sizeof(asn_DEF_LogLine_tags_1)
148 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
149 asn_DEF_LogLine_tags_1, /* Same as above */
150 sizeof(asn_DEF_LogLine_tags_1)
151 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700152 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000153 asn_MBR_LogLine_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000154 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000155 &asn_SPC_LogLine_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000156};
157
158
Lev Walkinb47ddce2004-08-11 05:25:47 +0000159/*** <<< INCLUDES [VariablePartSet] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000160
Lev Walkin22b5ed42006-09-13 02:51:20 +0000161#include "ActionItem.h"
Lev Walkinf15320b2004-06-03 03:38:44 +0000162#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000163#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000164#include <constr_SEQUENCE.h>
165
Lev Walkinc8285712005-03-04 22:18:20 +0000166/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +0000167
Lev Walkinbf56d542005-03-04 23:50:56 +0000168struct VariablePart;
Lev Walkinf15320b2004-06-03 03:38:44 +0000169
170/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
171
Lev Walkinf15320b2004-06-03 03:38:44 +0000172typedef struct VariablePartSet {
173 struct vparts {
Lev Walkinc8285712005-03-04 22:18:20 +0000174 A_SEQUENCE_OF(struct VariablePart) list;
Lev Walkinf15320b2004-06-03 03:38:44 +0000175
176 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000177 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000178 } vparts;
179 ActionItem_t resolution;
180 /*
181 * This type is extensible,
182 * possible extensions are below.
183 */
184
185 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000186 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000187} VariablePartSet_t;
188
Lev Walkinc8285712005-03-04 22:18:20 +0000189/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
190
191extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800192extern asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1;
193extern asn_TYPE_member_t asn_MBR_VariablePartSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000194
195/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
196
Lev Walkin22b5ed42006-09-13 02:51:20 +0000197#include "VariablePart.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000198
Lev Walkin2e3055d2004-08-20 13:36:32 +0000199/*** <<< CODE [VariablePartSet] >>> ***/
200
201static int
Lev Walkin20696a42017-10-17 21:27:33 -0700202memb_vparts_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000203 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000204
205 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700206 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000207 "%s: value not given (%s:%d)",
208 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000209 return -1;
210 }
211
212
213 if(1 /* No applicable constraints whatsoever */) {
214 /* Nothing is here. See below */
215 }
216
Lev Walkin0bfea562017-09-29 23:16:48 -0700217 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000218}
219
220
Lev Walkinf15320b2004-06-03 03:38:44 +0000221/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
222
Lev Walkine0272aa2005-03-04 11:26:08 +0000223static asn_TYPE_member_t asn_MBR_vparts_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000224 { ATF_POINTER, 0, 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000225 .tag = -1 /* Ambiguous tag (CHOICE?) */,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000226 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000227 .type = &asn_DEF_VariablePart,
Lev Walkin67a30122017-08-10 05:48:54 -0700228 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700229 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700230 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000231 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000232 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000233};
Lev Walkina7591b52014-10-12 18:37:35 -0700234static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000235 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
236};
Lev Walkin59b176e2005-11-26 11:25:14 +0000237static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000238 sizeof(struct vparts),
Lev Walkindfae9752004-09-29 13:19:37 +0000239 offsetof(struct vparts, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000240 2, /* XER encoding is XMLValueList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000241};
Lev Walkind04430c2004-09-07 06:44:29 +0000242static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000243asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000244 "vparts",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000245 "vparts",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800246 &asn_OP_SEQUENCE_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000247 asn_DEF_vparts_tags_2,
248 sizeof(asn_DEF_vparts_tags_2)
249 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
250 asn_DEF_vparts_tags_2, /* Same as above */
251 sizeof(asn_DEF_vparts_tags_2)
252 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700253 { 0, 0, SEQUENCE_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000254 asn_MBR_vparts_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000255 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000256 &asn_SPC_vparts_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000257};
258
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800259asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000260 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000261 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
262 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000263 .type = &asn_DEF_vparts_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700264 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700265 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_vparts_constraint_1 },
Lev Walkin20696a42017-10-17 21:27:33 -0700266 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000267 .name = "vparts"
268 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000269 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000270 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
271 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000272 .type = &asn_DEF_ActionItem,
Lev Walkin67a30122017-08-10 05:48:54 -0700273 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700274 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700275 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000276 .name = "resolution"
Lev Walkinf15320b2004-06-03 03:38:44 +0000277 },
278};
Lev Walkina7591b52014-10-12 18:37:35 -0700279static const ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000280 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
281};
Lev Walkina7591b52014-10-12 18:37:35 -0700282static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700283 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */
284 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000285};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800286asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000287 sizeof(struct VariablePartSet),
Lev Walkindfae9752004-09-29 13:19:37 +0000288 offsetof(struct VariablePartSet, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700289 .tag2el = asn_MAP_VariablePartSet_tag2el_1,
290 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000291 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700292 2, /* First extension addition */
Lev Walkinf15320b2004-06-03 03:38:44 +0000293};
Lev Walkindfae9752004-09-29 13:19:37 +0000294asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000295 "VariablePartSet",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000296 "VariablePartSet",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800297 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000298 asn_DEF_VariablePartSet_tags_1,
299 sizeof(asn_DEF_VariablePartSet_tags_1)
300 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
301 asn_DEF_VariablePartSet_tags_1, /* Same as above */
302 sizeof(asn_DEF_VariablePartSet_tags_1)
303 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700304 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000305 asn_MBR_VariablePartSet_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000306 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000307 &asn_SPC_VariablePartSet_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000308};
309
310
Lev Walkinb47ddce2004-08-11 05:25:47 +0000311/*** <<< INCLUDES [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000312
Lev Walkinf15320b2004-06-03 03:38:44 +0000313#include <VisibleString.h>
314#include <asn_SET_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000315#include <constr_SET_OF.h>
316#include <constr_SEQUENCE.h>
317#include <constr_CHOICE.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000318
Lev Walkinb47ddce2004-08-11 05:25:47 +0000319/*** <<< DEPS [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000320
Lev Walkinb47ddce2004-08-11 05:25:47 +0000321typedef enum VariablePart_PR {
322 VariablePart_PR_NOTHING, /* No components present */
323 VariablePart_PR_vset,
johvik792216e2017-04-11 10:42:21 +0200324 VariablePart_PR_vrange
Lev Walkinb47ddce2004-08-11 05:25:47 +0000325 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000326
Lev Walkin64399722004-08-11 07:17:22 +0000327} VariablePart_PR;
Lev Walkinf15320b2004-06-03 03:38:44 +0000328
329/*** <<< TYPE-DECLS [VariablePart] >>> ***/
330
Lev Walkinf15320b2004-06-03 03:38:44 +0000331typedef struct VariablePart {
Lev Walkin64399722004-08-11 07:17:22 +0000332 VariablePart_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000333 union VariablePart_u {
Lev Walkinf15320b2004-06-03 03:38:44 +0000334 struct vset {
335 A_SET_OF(VisibleString_t) list;
336
337 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000338 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000339 } vset;
340 struct vrange {
341 VisibleString_t from;
342 VisibleString_t to;
343 /*
344 * This type is extensible,
345 * possible extensions are below.
346 */
347
348 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000349 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000350 } vrange;
351 /*
352 * This type is extensible,
353 * possible extensions are below.
354 */
355 } choice;
356
357 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000358 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000359} VariablePart_t;
360
Lev Walkinc8285712005-03-04 22:18:20 +0000361/*** <<< FUNC-DECLS [VariablePart] >>> ***/
362
363extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800364extern asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1;
365extern asn_TYPE_member_t asn_MBR_VariablePart_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000366
Lev Walkin2e3055d2004-08-20 13:36:32 +0000367/*** <<< CODE [VariablePart] >>> ***/
368
369static int
Lev Walkin20696a42017-10-17 21:27:33 -0700370memb_vset_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000371 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000372 size_t size;
373
374 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700375 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000376 "%s: value not given (%s:%d)",
377 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000378 return -1;
379 }
380
Lev Walkin66d542b2005-07-04 02:03:57 +0000381 /* Determine the number of elements */
382 size = _A_CSET_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +0000383
384 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +0000385 /* Perform validation of the inner elements */
Lev Walkin46b394d2020-07-06 23:43:55 -0700386 return SET_OF_constraint(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000387 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700388 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000389 "%s: constraint failed (%s:%d)",
390 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000391 return -1;
392 }
393}
394
395
Lev Walkinf15320b2004-06-03 03:38:44 +0000396/*** <<< STAT-DEFS [VariablePart] >>> ***/
397
Lev Walkine0272aa2005-03-04 11:26:08 +0000398static asn_TYPE_member_t asn_MBR_vset_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000399 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000400 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
401 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000402 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700403 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700404 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700405 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000406 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000407 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000408};
Lev Walkina7591b52014-10-12 18:37:35 -0700409static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000410 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
411};
Lev Walkin59b176e2005-11-26 11:25:14 +0000412static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000413 sizeof(struct vset),
Lev Walkindfae9752004-09-29 13:19:37 +0000414 offsetof(struct vset, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000415 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000416};
Lev Walkind04430c2004-09-07 06:44:29 +0000417static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000418asn_TYPE_descriptor_t asn_DEF_vset_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000419 "vset",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000420 "vset",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800421 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000422 asn_DEF_vset_tags_2,
423 sizeof(asn_DEF_vset_tags_2)
424 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
425 asn_DEF_vset_tags_2, /* Same as above */
426 sizeof(asn_DEF_vset_tags_2)
427 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700428 { 0, 0, SET_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000429 asn_MBR_vset_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000430 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000431 &asn_SPC_vset_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000432};
433
Lev Walkine8318b82005-03-06 09:29:03 +0000434static asn_TYPE_member_t asn_MBR_vrange_4[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000435 { ATF_NOFLAGS, 0, offsetof(struct vrange, from),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000436 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
437 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000438 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700439 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700440 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700441 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000442 .name = "from"
443 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000444 { ATF_NOFLAGS, 0, offsetof(struct vrange, to),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000445 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
446 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000447 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700448 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700449 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700450 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000451 .name = "to"
452 },
453};
Lev Walkina7591b52014-10-12 18:37:35 -0700454static const ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000455 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
456};
Lev Walkina7591b52014-10-12 18:37:35 -0700457static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700458 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */
459 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000460};
Lev Walkin59b176e2005-11-26 11:25:14 +0000461static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000462 sizeof(struct vrange),
Lev Walkindfae9752004-09-29 13:19:37 +0000463 offsetof(struct vrange, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700464 .tag2el = asn_MAP_vrange_tag2el_4,
465 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000466 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700467 2, /* First extension addition */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000468};
Lev Walkind04430c2004-09-07 06:44:29 +0000469static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000470asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000471 "vrange",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000472 "vrange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800473 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000474 asn_DEF_vrange_tags_4,
475 sizeof(asn_DEF_vrange_tags_4)
476 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
477 asn_DEF_vrange_tags_4, /* Same as above */
478 sizeof(asn_DEF_vrange_tags_4)
479 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700480 { 0, 0, SEQUENCE_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000481 asn_MBR_vrange_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000482 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000483 &asn_SPC_vrange_specs_4 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000484};
485
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800486asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000487 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000488 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
489 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000490 .type = &asn_DEF_vset_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700491 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700492 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_vset_constraint_1 },
Lev Walkin20696a42017-10-17 21:27:33 -0700493 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000494 .name = "vset"
495 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000496 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000497 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
498 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000499 .type = &asn_DEF_vrange_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700500 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700501 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700502 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000503 .name = "vrange"
Lev Walkinf15320b2004-06-03 03:38:44 +0000504 },
505};
Lev Walkina7591b52014-10-12 18:37:35 -0700506static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700507 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */
508 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */
Lev Walkinf15320b2004-06-03 03:38:44 +0000509};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800510asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000511 sizeof(struct VariablePart),
Lev Walkindfae9752004-09-29 13:19:37 +0000512 offsetof(struct VariablePart, _asn_ctx),
Lev Walkinf15320b2004-06-03 03:38:44 +0000513 offsetof(struct VariablePart, present),
514 sizeof(((struct VariablePart *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700515 .tag2el = asn_MAP_VariablePart_tag2el_1,
516 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin20696a42017-10-17 21:27:33 -0700517 0, 0,
Lev Walkindf2edbb2017-10-21 13:40:07 -0700518 .first_extension = 2 /* Extensions start */
Lev Walkinf15320b2004-06-03 03:38:44 +0000519};
Lev Walkindfae9752004-09-29 13:19:37 +0000520asn_TYPE_descriptor_t asn_DEF_VariablePart = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000521 "VariablePart",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000522 "VariablePart",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800523 &asn_OP_CHOICE,
Lev Walkin188ed2c2004-09-13 08:31:01 +0000524 0, /* No effective tags (pointer) */
525 0, /* No effective tags (count) */
526 0, /* No tags (pointer) */
527 0, /* No tags (count) */
Lev Walkin0bfea562017-09-29 23:16:48 -0700528 { 0, 0, CHOICE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000529 asn_MBR_VariablePart_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000530 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000531 &asn_SPC_VariablePart_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000532};
533
534
Lev Walkinb47ddce2004-08-11 05:25:47 +0000535/*** <<< INCLUDES [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000536
Lev Walkin2a744a72013-03-27 01:56:23 -0700537#include <NativeEnumerated.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000538#include <BOOLEAN.h>
539#include <VisibleString.h>
540#include <asn_SET_OF.h>
541#include <constr_SET_OF.h>
542#include <constr_SEQUENCE.h>
543
544/*** <<< DEPS [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000545
Lev Walkin2e3055d2004-08-20 13:36:32 +0000546typedef enum accept_as {
547 accept_as_unknown = 0,
548 accept_as_safe = 1,
Lev Walkinbbe38662005-02-25 08:17:56 +0000549 accept_as_unsafe = 2
Lev Walkin2e3055d2004-08-20 13:36:32 +0000550 /*
551 * Enumeration is extensible
552 */
Lev Walkin171487e2006-03-21 07:25:18 +0000553} e_accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000554
555/*** <<< TYPE-DECLS [ActionItem] >>> ***/
556
Lev Walkinf15320b2004-06-03 03:38:44 +0000557typedef struct ActionItem {
Lev Walkin2a744a72013-03-27 01:56:23 -0700558 long accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000559 struct notify {
560 BOOLEAN_t critical;
561 struct email {
562 A_SET_OF(VisibleString_t) list;
563
564 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000565 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000566 } email;
567 /*
568 * This type is extensible,
569 * possible extensions are below.
570 */
571
572 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000573 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000574 } *notify;
575 /*
576 * This type is extensible,
577 * possible extensions are below.
578 */
579
580 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000581 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000582} ActionItem_t;
583
Lev Walkinbbe38662005-02-25 08:17:56 +0000584/*** <<< FUNC-DECLS [ActionItem] >>> ***/
585
Lev Walkine0272aa2005-03-04 11:26:08 +0000586/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000587extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800588extern asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1;
589extern asn_TYPE_member_t asn_MBR_ActionItem_1[2];
Lev Walkinbbe38662005-02-25 08:17:56 +0000590
591/*** <<< CODE [ActionItem] >>> ***/
592
Lev Walkinbbe38662005-02-25 08:17:56 +0000593/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700594 * This type is implemented using NativeEnumerated,
Lev Walkinbbe38662005-02-25 08:17:56 +0000595 * so here we adjust the DEF accordingly.
596 */
Lev Walkinbbe38662005-02-25 08:17:56 +0000597
Lev Walkinf15320b2004-06-03 03:38:44 +0000598/*** <<< STAT-DEFS [ActionItem] >>> ***/
599
Lev Walkina7591b52014-10-12 18:37:35 -0700600static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000601 { 0, 7, "unknown" },
602 { 1, 4, "safe" },
603 { 2, 6, "unsafe" }
Lev Walkinbbe38662005-02-25 08:17:56 +0000604 /* This list is extensible */
605};
Lev Walkina7591b52014-10-12 18:37:35 -0700606static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000607 1, /* safe(1) */
608 0, /* unknown(0) */
609 2 /* unsafe(2) */
Lev Walkinbbe38662005-02-25 08:17:56 +0000610 /* This list is extensible */
611};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800612static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000613 asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
614 asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinbbe38662005-02-25 08:17:56 +0000615 3, /* Number of elements in the maps */
Lev Walkin59b176e2005-11-26 11:25:14 +0000616 4, /* Extensions before this member */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000617 1, /* Strict enumeration */
618 0, /* Native long size */
619 0
Lev Walkinbbe38662005-02-25 08:17:56 +0000620};
Lev Walkina7591b52014-10-12 18:37:35 -0700621static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000622 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
623};
624static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000625asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000626 "accept-as",
627 "accept-as",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800628 &asn_OP_NativeEnumerated,
Lev Walkin59b176e2005-11-26 11:25:14 +0000629 asn_DEF_accept_as_tags_2,
630 sizeof(asn_DEF_accept_as_tags_2)
631 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
632 asn_DEF_accept_as_tags_2, /* Same as above */
633 sizeof(asn_DEF_accept_as_tags_2)
634 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700635 { 0, 0, NativeEnumerated_constraint },
Lev Walkinbbe38662005-02-25 08:17:56 +0000636 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000637 &asn_SPC_accept_as_specs_2 /* Additional specs */
Lev Walkinbbe38662005-02-25 08:17:56 +0000638};
639
Lev Walkine8318b82005-03-06 09:29:03 +0000640static asn_TYPE_member_t asn_MBR_email_9[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000641 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000642 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
643 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000644 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700645 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700646 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700647 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000648 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000649 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000650};
Lev Walkina7591b52014-10-12 18:37:35 -0700651static const ber_tlv_tag_t asn_DEF_email_tags_9[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000652 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
653};
Lev Walkin59b176e2005-11-26 11:25:14 +0000654static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000655 sizeof(struct email),
Lev Walkindfae9752004-09-29 13:19:37 +0000656 offsetof(struct email, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000657 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000658};
Lev Walkind04430c2004-09-07 06:44:29 +0000659static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000660asn_TYPE_descriptor_t asn_DEF_email_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000661 "email",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000662 "email",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800663 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000664 asn_DEF_email_tags_9,
665 sizeof(asn_DEF_email_tags_9)
666 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
667 asn_DEF_email_tags_9, /* Same as above */
668 sizeof(asn_DEF_email_tags_9)
669 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700670 { 0, 0, SET_OF_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000671 asn_MBR_email_9,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000672 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000673 &asn_SPC_email_specs_9 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000674};
675
Lev Walkine8318b82005-03-06 09:29:03 +0000676static asn_TYPE_member_t asn_MBR_notify_7[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000677 { ATF_NOFLAGS, 0, offsetof(struct notify, critical),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000678 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
679 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000680 .type = &asn_DEF_BOOLEAN,
Lev Walkin67a30122017-08-10 05:48:54 -0700681 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700682 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700683 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000684 .name = "critical"
685 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000686 { ATF_NOFLAGS, 0, offsetof(struct notify, email),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000687 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
688 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000689 .type = &asn_DEF_email_9,
Lev Walkin67a30122017-08-10 05:48:54 -0700690 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700691 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700692 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000693 .name = "email"
694 },
695};
Lev Walkina7591b52014-10-12 18:37:35 -0700696static const ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000697 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
698};
Lev Walkina7591b52014-10-12 18:37:35 -0700699static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700700 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */
701 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000702};
Lev Walkin59b176e2005-11-26 11:25:14 +0000703static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000704 sizeof(struct notify),
Lev Walkindfae9752004-09-29 13:19:37 +0000705 offsetof(struct notify, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700706 .tag2el = asn_MAP_notify_tag2el_7,
707 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000708 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700709 2, /* First extension addition */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000710};
Lev Walkind04430c2004-09-07 06:44:29 +0000711static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000712asn_TYPE_descriptor_t asn_DEF_notify_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000713 "notify",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000714 "notify",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800715 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000716 asn_DEF_notify_tags_7,
717 sizeof(asn_DEF_notify_tags_7)
718 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
719 asn_DEF_notify_tags_7, /* Same as above */
720 sizeof(asn_DEF_notify_tags_7)
721 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700722 { 0, 0, SEQUENCE_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000723 asn_MBR_notify_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000724 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000725 &asn_SPC_notify_specs_7 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000726};
727
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800728asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000729 { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000730 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
731 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000732 .type = &asn_DEF_accept_as_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700733 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700734 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700735 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000736 .name = "accept-as"
737 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000738 { ATF_POINTER, 1, offsetof(struct ActionItem, notify),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000739 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
740 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000741 .type = &asn_DEF_notify_7,
Lev Walkin67a30122017-08-10 05:48:54 -0700742 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700743 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700744 0, 0, /* No default value */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000745 .name = "notify"
Lev Walkinf15320b2004-06-03 03:38:44 +0000746 },
747};
Lev Walkina7591b52014-10-12 18:37:35 -0700748static const ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000749 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
750};
Lev Walkina7591b52014-10-12 18:37:35 -0700751static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700752 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */
753 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000754};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800755asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000756 sizeof(struct ActionItem),
Lev Walkindfae9752004-09-29 13:19:37 +0000757 offsetof(struct ActionItem, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700758 .tag2el = asn_MAP_ActionItem_tag2el_1,
759 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000760 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -0700761 2, /* First extension addition */
Lev Walkinf15320b2004-06-03 03:38:44 +0000762};
Lev Walkindfae9752004-09-29 13:19:37 +0000763asn_TYPE_descriptor_t asn_DEF_ActionItem = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000764 "ActionItem",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000765 "ActionItem",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800766 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000767 asn_DEF_ActionItem_tags_1,
768 sizeof(asn_DEF_ActionItem_tags_1)
769 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
770 asn_DEF_ActionItem_tags_1, /* Same as above */
771 sizeof(asn_DEF_ActionItem_tags_1)
772 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700773 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000774 asn_MBR_ActionItem_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000775 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000776 &asn_SPC_ActionItem_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000777};
778