blob: 8564c9b2ecb1a4720fd18c7b0b7ecd7fea6de350 [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 Walkin59b176e2005-11-26 11:25:14 +000043memb_varsets_constraint_1(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 Walkin0bfea562017-09-29 23:16:48 -070059 return td->encoding_constraints.general_constraints(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 Walkin59b176e2005-11-26 11:25:14 +000078 .default_value = 0,
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 Walkin59b176e2005-11-26 11:25:14 +0000114 .default_value = 0,
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 Walkin59b176e2005-11-26 11:25:14 +0000123 .default_value = 0,
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 Walkinf15320b2004-06-03 03:38:44 +0000140 1, /* Start extensions */
141 3 /* Stop extensions */
142};
Lev Walkindfae9752004-09-29 13:19:37 +0000143asn_TYPE_descriptor_t asn_DEF_LogLine = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000144 "LogLine",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000145 "LogLine",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800146 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000147 asn_DEF_LogLine_tags_1,
148 sizeof(asn_DEF_LogLine_tags_1)
149 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
150 asn_DEF_LogLine_tags_1, /* Same as above */
151 sizeof(asn_DEF_LogLine_tags_1)
152 /sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700153 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000154 asn_MBR_LogLine_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000155 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000156 &asn_SPC_LogLine_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000157};
158
159
Lev Walkinb47ddce2004-08-11 05:25:47 +0000160/*** <<< INCLUDES [VariablePartSet] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000161
Lev Walkin22b5ed42006-09-13 02:51:20 +0000162#include "ActionItem.h"
Lev Walkinf15320b2004-06-03 03:38:44 +0000163#include <asn_SEQUENCE_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000164#include <constr_SEQUENCE_OF.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000165#include <constr_SEQUENCE.h>
166
Lev Walkinc8285712005-03-04 22:18:20 +0000167/*** <<< FWD-DECLS [VariablePartSet] >>> ***/
Lev Walkinb47ddce2004-08-11 05:25:47 +0000168
Lev Walkinbf56d542005-03-04 23:50:56 +0000169struct VariablePart;
Lev Walkinf15320b2004-06-03 03:38:44 +0000170
171/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/
172
Lev Walkinf15320b2004-06-03 03:38:44 +0000173typedef struct VariablePartSet {
174 struct vparts {
Lev Walkinc8285712005-03-04 22:18:20 +0000175 A_SEQUENCE_OF(struct VariablePart) list;
Lev Walkinf15320b2004-06-03 03:38:44 +0000176
177 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000178 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000179 } vparts;
180 ActionItem_t resolution;
181 /*
182 * This type is extensible,
183 * possible extensions are below.
184 */
185
186 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000187 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000188} VariablePartSet_t;
189
Lev Walkinc8285712005-03-04 22:18:20 +0000190/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/
191
192extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800193extern asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1;
194extern asn_TYPE_member_t asn_MBR_VariablePartSet_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000195
196/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/
197
Lev Walkin22b5ed42006-09-13 02:51:20 +0000198#include "VariablePart.h"
Lev Walkinc8285712005-03-04 22:18:20 +0000199
Lev Walkin2e3055d2004-08-20 13:36:32 +0000200/*** <<< CODE [VariablePartSet] >>> ***/
201
202static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000203memb_vparts_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000204 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000205
206 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700207 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000208 "%s: value not given (%s:%d)",
209 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000210 return -1;
211 }
212
213
214 if(1 /* No applicable constraints whatsoever */) {
215 /* Nothing is here. See below */
216 }
217
Lev Walkin0bfea562017-09-29 23:16:48 -0700218 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000219}
220
221
Lev Walkinf15320b2004-06-03 03:38:44 +0000222/*** <<< STAT-DEFS [VariablePartSet] >>> ***/
223
Lev Walkine0272aa2005-03-04 11:26:08 +0000224static asn_TYPE_member_t asn_MBR_vparts_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000225 { ATF_POINTER, 0, 0,
Lev Walkinb9189732004-09-10 09:37:12 +0000226 .tag = -1 /* Ambiguous tag (CHOICE?) */,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000227 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000228 .type = &asn_DEF_VariablePart,
Lev Walkin67a30122017-08-10 05:48:54 -0700229 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700230 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000231 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000232 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000233 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000234};
Lev Walkina7591b52014-10-12 18:37:35 -0700235static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000236 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
237};
Lev Walkin59b176e2005-11-26 11:25:14 +0000238static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000239 sizeof(struct vparts),
Lev Walkindfae9752004-09-29 13:19:37 +0000240 offsetof(struct vparts, _asn_ctx),
Lev Walkind1bfea62005-11-08 03:06:16 +0000241 2, /* XER encoding is XMLValueList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000242};
Lev Walkind04430c2004-09-07 06:44:29 +0000243static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000244asn_TYPE_descriptor_t asn_DEF_vparts_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000245 "vparts",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000246 "vparts",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800247 &asn_OP_SEQUENCE_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000248 asn_DEF_vparts_tags_2,
249 sizeof(asn_DEF_vparts_tags_2)
250 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
251 asn_DEF_vparts_tags_2, /* Same as above */
252 sizeof(asn_DEF_vparts_tags_2)
253 /sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700254 { 0, 0, SEQUENCE_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000255 asn_MBR_vparts_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000256 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000257 &asn_SPC_vparts_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000258};
259
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800260asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000261 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000262 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
263 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000264 .type = &asn_DEF_vparts_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700265 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700266 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_vparts_constraint_1 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000267 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000268 .name = "vparts"
269 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000270 { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000271 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
272 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000273 .type = &asn_DEF_ActionItem,
Lev Walkin67a30122017-08-10 05:48:54 -0700274 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700275 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000276 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000277 .name = "resolution"
Lev Walkinf15320b2004-06-03 03:38:44 +0000278 },
279};
Lev Walkina7591b52014-10-12 18:37:35 -0700280static const ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000281 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
282};
Lev Walkina7591b52014-10-12 18:37:35 -0700283static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700284 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */
285 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000286};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800287asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000288 sizeof(struct VariablePartSet),
Lev Walkindfae9752004-09-29 13:19:37 +0000289 offsetof(struct VariablePartSet, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700290 .tag2el = asn_MAP_VariablePartSet_tag2el_1,
291 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000292 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000293 1, /* Start extensions */
294 3 /* Stop extensions */
295};
Lev Walkindfae9752004-09-29 13:19:37 +0000296asn_TYPE_descriptor_t asn_DEF_VariablePartSet = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000297 "VariablePartSet",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000298 "VariablePartSet",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800299 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000300 asn_DEF_VariablePartSet_tags_1,
301 sizeof(asn_DEF_VariablePartSet_tags_1)
302 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
303 asn_DEF_VariablePartSet_tags_1, /* Same as above */
304 sizeof(asn_DEF_VariablePartSet_tags_1)
305 /sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700306 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000307 asn_MBR_VariablePartSet_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000308 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000309 &asn_SPC_VariablePartSet_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000310};
311
312
Lev Walkinb47ddce2004-08-11 05:25:47 +0000313/*** <<< INCLUDES [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000314
Lev Walkinf15320b2004-06-03 03:38:44 +0000315#include <VisibleString.h>
316#include <asn_SET_OF.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000317#include <constr_SET_OF.h>
318#include <constr_SEQUENCE.h>
319#include <constr_CHOICE.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000320
Lev Walkinb47ddce2004-08-11 05:25:47 +0000321/*** <<< DEPS [VariablePart] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000322
Lev Walkinb47ddce2004-08-11 05:25:47 +0000323typedef enum VariablePart_PR {
324 VariablePart_PR_NOTHING, /* No components present */
325 VariablePart_PR_vset,
johvik792216e2017-04-11 10:42:21 +0200326 VariablePart_PR_vrange
Lev Walkinb47ddce2004-08-11 05:25:47 +0000327 /* Extensions may appear below */
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000328
Lev Walkin64399722004-08-11 07:17:22 +0000329} VariablePart_PR;
Lev Walkinf15320b2004-06-03 03:38:44 +0000330
331/*** <<< TYPE-DECLS [VariablePart] >>> ***/
332
Lev Walkinf15320b2004-06-03 03:38:44 +0000333typedef struct VariablePart {
Lev Walkin64399722004-08-11 07:17:22 +0000334 VariablePart_PR present;
Lev Walkin0f5d74c2005-08-14 15:03:31 +0000335 union VariablePart_u {
Lev Walkinf15320b2004-06-03 03:38:44 +0000336 struct vset {
337 A_SET_OF(VisibleString_t) list;
338
339 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000340 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000341 } vset;
342 struct vrange {
343 VisibleString_t from;
344 VisibleString_t to;
345 /*
346 * This type is extensible,
347 * possible extensions are below.
348 */
349
350 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000351 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000352 } vrange;
353 /*
354 * This type is extensible,
355 * possible extensions are below.
356 */
357 } choice;
358
359 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000360 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000361} VariablePart_t;
362
Lev Walkinc8285712005-03-04 22:18:20 +0000363/*** <<< FUNC-DECLS [VariablePart] >>> ***/
364
365extern asn_TYPE_descriptor_t asn_DEF_VariablePart;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800366extern asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1;
367extern asn_TYPE_member_t asn_MBR_VariablePart_1[2];
Lev Walkinc8285712005-03-04 22:18:20 +0000368
Lev Walkin2e3055d2004-08-20 13:36:32 +0000369/*** <<< CODE [VariablePart] >>> ***/
370
371static int
Lev Walkin59b176e2005-11-26 11:25:14 +0000372memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000373 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000374 size_t size;
375
376 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700377 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000378 "%s: value not given (%s:%d)",
379 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000380 return -1;
381 }
382
Lev Walkin66d542b2005-07-04 02:03:57 +0000383 /* Determine the number of elements */
384 size = _A_CSET_FROM_VOID(sptr)->count;
Lev Walkin2e3055d2004-08-20 13:36:32 +0000385
386 if((size >= 1)) {
Lev Walkin29a82192005-03-29 19:05:37 +0000387 /* Perform validation of the inner elements */
Lev Walkin0bfea562017-09-29 23:16:48 -0700388 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000389 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700390 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin16835b62004-08-22 13:47:59 +0000391 "%s: constraint failed (%s:%d)",
392 td->name, __FILE__, __LINE__);
Lev Walkin2e3055d2004-08-20 13:36:32 +0000393 return -1;
394 }
395}
396
397
Lev Walkinf15320b2004-06-03 03:38:44 +0000398/*** <<< STAT-DEFS [VariablePart] >>> ***/
399
Lev Walkine0272aa2005-03-04 11:26:08 +0000400static asn_TYPE_member_t asn_MBR_vset_2[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000401 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000402 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
403 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000404 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700405 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700406 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000407 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000408 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000409 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000410};
Lev Walkina7591b52014-10-12 18:37:35 -0700411static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000412 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
413};
Lev Walkin59b176e2005-11-26 11:25:14 +0000414static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000415 sizeof(struct vset),
Lev Walkindfae9752004-09-29 13:19:37 +0000416 offsetof(struct vset, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000417 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000418};
Lev Walkind04430c2004-09-07 06:44:29 +0000419static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000420asn_TYPE_descriptor_t asn_DEF_vset_2 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000421 "vset",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000422 "vset",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800423 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000424 asn_DEF_vset_tags_2,
425 sizeof(asn_DEF_vset_tags_2)
426 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
427 asn_DEF_vset_tags_2, /* Same as above */
428 sizeof(asn_DEF_vset_tags_2)
429 /sizeof(asn_DEF_vset_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700430 { 0, 0, SET_OF_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000431 asn_MBR_vset_2,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000432 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000433 &asn_SPC_vset_specs_2 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000434};
435
Lev Walkine8318b82005-03-06 09:29:03 +0000436static asn_TYPE_member_t asn_MBR_vrange_4[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000437 { ATF_NOFLAGS, 0, offsetof(struct vrange, from),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000438 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
439 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000440 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700441 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700442 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000443 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000444 .name = "from"
445 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000446 { ATF_NOFLAGS, 0, offsetof(struct vrange, to),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000447 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
448 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000449 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700450 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700451 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000452 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000453 .name = "to"
454 },
455};
Lev Walkina7591b52014-10-12 18:37:35 -0700456static const ber_tlv_tag_t asn_DEF_vrange_tags_4[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000457 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
458};
Lev Walkina7591b52014-10-12 18:37:35 -0700459static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700460 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */
461 { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000462};
Lev Walkin59b176e2005-11-26 11:25:14 +0000463static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000464 sizeof(struct vrange),
Lev Walkindfae9752004-09-29 13:19:37 +0000465 offsetof(struct vrange, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700466 .tag2el = asn_MAP_vrange_tag2el_4,
467 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000468 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000469 1, /* Start extensions */
470 3 /* Stop extensions */
471};
Lev Walkind04430c2004-09-07 06:44:29 +0000472static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000473asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000474 "vrange",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000475 "vrange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800476 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000477 asn_DEF_vrange_tags_4,
478 sizeof(asn_DEF_vrange_tags_4)
479 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
480 asn_DEF_vrange_tags_4, /* Same as above */
481 sizeof(asn_DEF_vrange_tags_4)
482 /sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700483 { 0, 0, SEQUENCE_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000484 asn_MBR_vrange_4,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000485 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000486 &asn_SPC_vrange_specs_4 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000487};
488
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800489asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000490 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000491 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
492 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000493 .type = &asn_DEF_vset_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700494 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700495 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = memb_vset_constraint_1 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000496 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000497 .name = "vset"
498 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000499 { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000500 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
501 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000502 .type = &asn_DEF_vrange_4,
Lev Walkin67a30122017-08-10 05:48:54 -0700503 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700504 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000505 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000506 .name = "vrange"
Lev Walkinf15320b2004-06-03 03:38:44 +0000507 },
508};
Lev Walkina7591b52014-10-12 18:37:35 -0700509static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700510 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */
511 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */
Lev Walkinf15320b2004-06-03 03:38:44 +0000512};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800513asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000514 sizeof(struct VariablePart),
Lev Walkindfae9752004-09-29 13:19:37 +0000515 offsetof(struct VariablePart, _asn_ctx),
Lev Walkinf15320b2004-06-03 03:38:44 +0000516 offsetof(struct VariablePart, present),
517 sizeof(((struct VariablePart *)0)->present),
Lev Walkine3917082017-08-23 10:29:38 -0700518 .tag2el = asn_MAP_VariablePart_tag2el_1,
519 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000520 .canonical_order = 0,
521 .ext_start = 2 /* Extensions start */
Lev Walkinf15320b2004-06-03 03:38:44 +0000522};
Lev Walkindfae9752004-09-29 13:19:37 +0000523asn_TYPE_descriptor_t asn_DEF_VariablePart = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000524 "VariablePart",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000525 "VariablePart",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800526 &asn_OP_CHOICE,
Lev Walkin188ed2c2004-09-13 08:31:01 +0000527 0, /* No effective tags (pointer) */
528 0, /* No effective tags (count) */
529 0, /* No tags (pointer) */
530 0, /* No tags (count) */
Lev Walkin0bfea562017-09-29 23:16:48 -0700531 { 0, 0, CHOICE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000532 asn_MBR_VariablePart_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000533 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000534 &asn_SPC_VariablePart_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000535};
536
537
Lev Walkinb47ddce2004-08-11 05:25:47 +0000538/*** <<< INCLUDES [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000539
Lev Walkin2a744a72013-03-27 01:56:23 -0700540#include <NativeEnumerated.h>
Lev Walkinb47ddce2004-08-11 05:25:47 +0000541#include <BOOLEAN.h>
542#include <VisibleString.h>
543#include <asn_SET_OF.h>
544#include <constr_SET_OF.h>
545#include <constr_SEQUENCE.h>
546
547/*** <<< DEPS [ActionItem] >>> ***/
Lev Walkinf15320b2004-06-03 03:38:44 +0000548
Lev Walkin2e3055d2004-08-20 13:36:32 +0000549typedef enum accept_as {
550 accept_as_unknown = 0,
551 accept_as_safe = 1,
Lev Walkinbbe38662005-02-25 08:17:56 +0000552 accept_as_unsafe = 2
Lev Walkin2e3055d2004-08-20 13:36:32 +0000553 /*
554 * Enumeration is extensible
555 */
Lev Walkin171487e2006-03-21 07:25:18 +0000556} e_accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000557
558/*** <<< TYPE-DECLS [ActionItem] >>> ***/
559
Lev Walkinf15320b2004-06-03 03:38:44 +0000560typedef struct ActionItem {
Lev Walkin2a744a72013-03-27 01:56:23 -0700561 long accept_as;
Lev Walkinf15320b2004-06-03 03:38:44 +0000562 struct notify {
563 BOOLEAN_t critical;
564 struct email {
565 A_SET_OF(VisibleString_t) list;
566
567 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000568 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000569 } email;
570 /*
571 * This type is extensible,
572 * possible extensions are below.
573 */
574
575 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000576 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000577 } *notify;
578 /*
579 * This type is extensible,
580 * possible extensions are below.
581 */
582
583 /* Context for parsing across buffer boundaries */
Lev Walkindfae9752004-09-29 13:19:37 +0000584 asn_struct_ctx_t _asn_ctx;
Lev Walkinf15320b2004-06-03 03:38:44 +0000585} ActionItem_t;
586
Lev Walkinbbe38662005-02-25 08:17:56 +0000587/*** <<< FUNC-DECLS [ActionItem] >>> ***/
588
Lev Walkine0272aa2005-03-04 11:26:08 +0000589/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */
Lev Walkinc8285712005-03-04 22:18:20 +0000590extern asn_TYPE_descriptor_t asn_DEF_ActionItem;
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800591extern asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1;
592extern asn_TYPE_member_t asn_MBR_ActionItem_1[2];
Lev Walkinbbe38662005-02-25 08:17:56 +0000593
594/*** <<< CODE [ActionItem] >>> ***/
595
Lev Walkinbbe38662005-02-25 08:17:56 +0000596/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700597 * This type is implemented using NativeEnumerated,
Lev Walkinbbe38662005-02-25 08:17:56 +0000598 * so here we adjust the DEF accordingly.
599 */
Lev Walkinbbe38662005-02-25 08:17:56 +0000600
Lev Walkinf15320b2004-06-03 03:38:44 +0000601/*** <<< STAT-DEFS [ActionItem] >>> ***/
602
Lev Walkina7591b52014-10-12 18:37:35 -0700603static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000604 { 0, 7, "unknown" },
605 { 1, 4, "safe" },
606 { 2, 6, "unsafe" }
Lev Walkinbbe38662005-02-25 08:17:56 +0000607 /* This list is extensible */
608};
Lev Walkina7591b52014-10-12 18:37:35 -0700609static const unsigned int asn_MAP_accept_as_enum2value_2[] = {
Lev Walkin9f30ef12005-02-25 11:08:02 +0000610 1, /* safe(1) */
611 0, /* unknown(0) */
612 2 /* unsafe(2) */
Lev Walkinbbe38662005-02-25 08:17:56 +0000613 /* This list is extensible */
614};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800615static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000616 asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */
617 asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */
Lev Walkinbbe38662005-02-25 08:17:56 +0000618 3, /* Number of elements in the maps */
Lev Walkin59b176e2005-11-26 11:25:14 +0000619 4, /* Extensions before this member */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000620 1, /* Strict enumeration */
621 0, /* Native long size */
622 0
Lev Walkinbbe38662005-02-25 08:17:56 +0000623};
Lev Walkina7591b52014-10-12 18:37:35 -0700624static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000625 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
626};
627static /* Use -fall-defs-global to expose */
Lev Walkine0272aa2005-03-04 11:26:08 +0000628asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
Lev Walkinbbe38662005-02-25 08:17:56 +0000629 "accept-as",
630 "accept-as",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800631 &asn_OP_NativeEnumerated,
Lev Walkin59b176e2005-11-26 11:25:14 +0000632 asn_DEF_accept_as_tags_2,
633 sizeof(asn_DEF_accept_as_tags_2)
634 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
635 asn_DEF_accept_as_tags_2, /* Same as above */
636 sizeof(asn_DEF_accept_as_tags_2)
637 /sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700638 { 0, 0, NativeEnumerated_constraint },
Lev Walkinbbe38662005-02-25 08:17:56 +0000639 0, 0, /* Defined elsewhere */
Lev Walkin59b176e2005-11-26 11:25:14 +0000640 &asn_SPC_accept_as_specs_2 /* Additional specs */
Lev Walkinbbe38662005-02-25 08:17:56 +0000641};
642
Lev Walkine8318b82005-03-06 09:29:03 +0000643static asn_TYPE_member_t asn_MBR_email_9[] = {
Lev Walkin8eb4b572005-08-16 16:57:17 +0000644 { ATF_POINTER, 0, 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000645 .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
646 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000647 .type = &asn_DEF_VisibleString,
Lev Walkin67a30122017-08-10 05:48:54 -0700648 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700649 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000650 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000651 .name = ""
Lev Walkinf15320b2004-06-03 03:38:44 +0000652 },
Lev Walkin2e3055d2004-08-20 13:36:32 +0000653};
Lev Walkina7591b52014-10-12 18:37:35 -0700654static const ber_tlv_tag_t asn_DEF_email_tags_9[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000655 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
656};
Lev Walkin59b176e2005-11-26 11:25:14 +0000657static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000658 sizeof(struct email),
Lev Walkindfae9752004-09-29 13:19:37 +0000659 offsetof(struct email, _asn_ctx),
Lev Walkina9cc46e2004-09-22 16:06:28 +0000660 0, /* XER encoding is XMLDelimitedItemList */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000661};
Lev Walkind04430c2004-09-07 06:44:29 +0000662static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000663asn_TYPE_descriptor_t asn_DEF_email_9 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000664 "email",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000665 "email",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800666 &asn_OP_SET_OF,
Lev Walkin59b176e2005-11-26 11:25:14 +0000667 asn_DEF_email_tags_9,
668 sizeof(asn_DEF_email_tags_9)
669 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
670 asn_DEF_email_tags_9, /* Same as above */
671 sizeof(asn_DEF_email_tags_9)
672 /sizeof(asn_DEF_email_tags_9[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700673 { 0, 0, SET_OF_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000674 asn_MBR_email_9,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000675 1, /* Single element */
Lev Walkin59b176e2005-11-26 11:25:14 +0000676 &asn_SPC_email_specs_9 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000677};
678
Lev Walkine8318b82005-03-06 09:29:03 +0000679static asn_TYPE_member_t asn_MBR_notify_7[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000680 { ATF_NOFLAGS, 0, offsetof(struct notify, critical),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000681 .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
682 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000683 .type = &asn_DEF_BOOLEAN,
Lev Walkin67a30122017-08-10 05:48:54 -0700684 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700685 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000686 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000687 .name = "critical"
688 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000689 { ATF_NOFLAGS, 0, offsetof(struct notify, email),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000690 .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
691 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000692 .type = &asn_DEF_email_9,
Lev Walkin67a30122017-08-10 05:48:54 -0700693 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700694 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000695 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000696 .name = "email"
697 },
698};
Lev Walkina7591b52014-10-12 18:37:35 -0700699static const ber_tlv_tag_t asn_DEF_notify_tags_7[] = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000700 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
701};
Lev Walkina7591b52014-10-12 18:37:35 -0700702static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700703 { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */
704 { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000705};
Lev Walkin59b176e2005-11-26 11:25:14 +0000706static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000707 sizeof(struct notify),
Lev Walkindfae9752004-09-29 13:19:37 +0000708 offsetof(struct notify, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700709 .tag2el = asn_MAP_notify_tag2el_7,
710 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000711 0, 0, 0, /* Optional elements (not needed) */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000712 1, /* Start extensions */
713 3 /* Stop extensions */
714};
Lev Walkind04430c2004-09-07 06:44:29 +0000715static /* Use -fall-defs-global to expose */
Lev Walkine8318b82005-03-06 09:29:03 +0000716asn_TYPE_descriptor_t asn_DEF_notify_7 = {
Lev Walkin2e3055d2004-08-20 13:36:32 +0000717 "notify",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000718 "notify",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800719 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000720 asn_DEF_notify_tags_7,
721 sizeof(asn_DEF_notify_tags_7)
722 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
723 asn_DEF_notify_tags_7, /* Same as above */
724 sizeof(asn_DEF_notify_tags_7)
725 /sizeof(asn_DEF_notify_tags_7[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700726 { 0, 0, SEQUENCE_constraint },
Lev Walkine8318b82005-03-06 09:29:03 +0000727 asn_MBR_notify_7,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000728 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000729 &asn_SPC_notify_specs_7 /* Additional specs */
Lev Walkin2e3055d2004-08-20 13:36:32 +0000730};
731
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800732asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
Lev Walkincc93b0f2004-09-10 09:18:20 +0000733 { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000734 .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
735 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000736 .type = &asn_DEF_accept_as_2,
Lev Walkin67a30122017-08-10 05:48:54 -0700737 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700738 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000739 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000740 .name = "accept-as"
741 },
Lev Walkincc93b0f2004-09-10 09:18:20 +0000742 { ATF_POINTER, 1, offsetof(struct ActionItem, notify),
Lev Walkin2e3055d2004-08-20 13:36:32 +0000743 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
744 .tag_mode = 0,
Lev Walkinae7bf3f2005-08-29 10:31:14 +0000745 .type = &asn_DEF_notify_7,
Lev Walkin67a30122017-08-10 05:48:54 -0700746 .type_selector = 0,
Lev Walkin0bfea562017-09-29 23:16:48 -0700747 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin59b176e2005-11-26 11:25:14 +0000748 .default_value = 0,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000749 .name = "notify"
Lev Walkinf15320b2004-06-03 03:38:44 +0000750 },
751};
Lev Walkina7591b52014-10-12 18:37:35 -0700752static const ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000753 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
754};
Lev Walkina7591b52014-10-12 18:37:35 -0700755static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = {
Lev Walkin4062b012013-10-11 14:29:38 -0700756 { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */
757 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */
Lev Walkincda6b8a2004-06-06 07:20:52 +0000758};
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800759asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000760 sizeof(struct ActionItem),
Lev Walkindfae9752004-09-29 13:19:37 +0000761 offsetof(struct ActionItem, _asn_ctx),
Lev Walkine3917082017-08-23 10:29:38 -0700762 .tag2el = asn_MAP_ActionItem_tag2el_1,
763 .tag2el_count = 2, /* Count of tags in the map */
Lev Walkin59b176e2005-11-26 11:25:14 +0000764 0, 0, 0, /* Optional elements (not needed) */
Lev Walkinf15320b2004-06-03 03:38:44 +0000765 1, /* Start extensions */
766 3 /* Stop extensions */
767};
Lev Walkindfae9752004-09-29 13:19:37 +0000768asn_TYPE_descriptor_t asn_DEF_ActionItem = {
Lev Walkinf15320b2004-06-03 03:38:44 +0000769 "ActionItem",
Lev Walkindc06f6b2004-10-20 15:50:55 +0000770 "ActionItem",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800771 &asn_OP_SEQUENCE,
Lev Walkin59b176e2005-11-26 11:25:14 +0000772 asn_DEF_ActionItem_tags_1,
773 sizeof(asn_DEF_ActionItem_tags_1)
774 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
775 asn_DEF_ActionItem_tags_1, /* Same as above */
776 sizeof(asn_DEF_ActionItem_tags_1)
777 /sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700778 { 0, 0, SEQUENCE_constraint },
Lev Walkine0272aa2005-03-04 11:26:08 +0000779 asn_MBR_ActionItem_1,
Lev Walkin2e3055d2004-08-20 13:36:32 +0000780 2, /* Elements count */
Lev Walkin59b176e2005-11-26 11:25:14 +0000781 &asn_SPC_ActionItem_specs_1 /* Additional specs */
Lev Walkinf15320b2004-06-03 03:38:44 +0000782};
783