blob: f3facef5a756b7af6b73bc5cf43b6fae2c1c25df [file] [log] [blame]
Lev Walkin082cadc2005-08-14 02:18:27 +00001
2/*** <<< INCLUDES [CN-IntegerUnlimited] >>> ***/
3
Lev Walkin2a744a72013-03-27 01:56:23 -07004#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00005
6/*** <<< TYPE-DECLS [CN-IntegerUnlimited] >>> ***/
7
Lev Walkin2a744a72013-03-27 01:56:23 -07008typedef INTEGER_t CN_IntegerUnlimited_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00009
10/*** <<< FUNC-DECLS [CN-IntegerUnlimited] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited;
13asn_struct_free_f CN_IntegerUnlimited_free;
14asn_struct_print_f CN_IntegerUnlimited_print;
15asn_constr_check_f CN_IntegerUnlimited_constraint;
16ber_type_decoder_f CN_IntegerUnlimited_decode_ber;
17der_type_encoder_f CN_IntegerUnlimited_encode_der;
18xer_type_decoder_f CN_IntegerUnlimited_decode_xer;
19xer_type_encoder_f CN_IntegerUnlimited_encode_xer;
20
21/*** <<< CODE [CN-IntegerUnlimited] >>> ***/
22
Lev Walkin082cadc2005-08-14 02:18:27 +000023/*
Lev Walkin2a744a72013-03-27 01:56:23 -070024 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +000025 * so here we adjust the DEF accordingly.
26 */
Lev Walkin082cadc2005-08-14 02:18:27 +000027
28/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
29
Lev Walkina7591b52014-10-12 18:37:35 -070030static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +000031 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
32};
33asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
34 "CN-IntegerUnlimited",
35 "CN-IntegerUnlimited",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080036 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +000037 asn_DEF_CN_IntegerUnlimited_tags_1,
38 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
39 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
40 asn_DEF_CN_IntegerUnlimited_tags_1, /* Same as above */
41 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
42 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -070043 { 0, 0, INTEGER_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +000044 0, 0, /* No members */
45 0 /* No specifics */
46};
47
48
49/*** <<< INCLUDES [CN-IntegerMinMax] >>> ***/
50
Lev Walkin2a744a72013-03-27 01:56:23 -070051#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +000052
53/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
54
Lev Walkin2a744a72013-03-27 01:56:23 -070055typedef INTEGER_t CN_IntegerMinMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +000056
57/*** <<< FUNC-DECLS [CN-IntegerMinMax] >>> ***/
58
59extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax;
60asn_struct_free_f CN_IntegerMinMax_free;
61asn_struct_print_f CN_IntegerMinMax_print;
62asn_constr_check_f CN_IntegerMinMax_constraint;
63ber_type_decoder_f CN_IntegerMinMax_decode_ber;
64der_type_encoder_f CN_IntegerMinMax_encode_der;
65xer_type_decoder_f CN_IntegerMinMax_decode_xer;
66xer_type_encoder_f CN_IntegerMinMax_encode_xer;
67
68/*** <<< CODE [CN-IntegerMinMax] >>> ***/
69
70int
Lev Walkin20696a42017-10-17 21:27:33 -070071CN_IntegerMinMax_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000072 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2a744a72013-03-27 01:56:23 -070073 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +000074
75 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070076 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +000077 "%s: value not given (%s:%d)",
78 td->name, __FILE__, __LINE__);
79 return -1;
80 }
81
82
83 if(1 /* No applicable constraints whatsoever */) {
johvikbd3dea92017-05-09 10:20:51 +020084 (void)st; /* Unused variable */
Lev Walkin082cadc2005-08-14 02:18:27 +000085 /* Nothing is here. See below */
86 }
87
Lev Walkin0bfea562017-09-29 23:16:48 -070088 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin082cadc2005-08-14 02:18:27 +000089}
90
91/*
Lev Walkin2a744a72013-03-27 01:56:23 -070092 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +000093 * so here we adjust the DEF accordingly.
94 */
Lev Walkin082cadc2005-08-14 02:18:27 +000095
96/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
97
Lev Walkina7591b52014-10-12 18:37:35 -070098static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +000099 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
100};
101asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
102 "CN-IntegerMinMax",
103 "CN-IntegerMinMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800104 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000105 asn_DEF_CN_IntegerMinMax_tags_1,
106 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
107 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
108 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
109 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
110 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700111 { 0, 0, CN_IntegerMinMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000112 0, 0, /* No members */
113 0 /* No specifics */
114};
115
116
117/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
118
Lev Walkin2a744a72013-03-27 01:56:23 -0700119#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000120
121/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
122
Lev Walkin2a744a72013-03-27 01:56:23 -0700123typedef INTEGER_t CN_IntegerMinLow_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000124
125/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
126
127extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
128asn_struct_free_f CN_IntegerMinLow_free;
129asn_struct_print_f CN_IntegerMinLow_print;
130asn_constr_check_f CN_IntegerMinLow_constraint;
131ber_type_decoder_f CN_IntegerMinLow_decode_ber;
132der_type_encoder_f CN_IntegerMinLow_encode_der;
133xer_type_decoder_f CN_IntegerMinLow_decode_xer;
134xer_type_encoder_f CN_IntegerMinLow_encode_xer;
135
136/*** <<< CODE [CN-IntegerMinLow] >>> ***/
137
138int
Lev Walkin20696a42017-10-17 21:27:33 -0700139CN_IntegerMinLow_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000140 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2a744a72013-03-27 01:56:23 -0700141 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000142 long value;
143
144 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700145 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000146 "%s: value not given (%s:%d)",
147 td->name, __FILE__, __LINE__);
148 return -1;
149 }
150
Lev Walkin2a744a72013-03-27 01:56:23 -0700151 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700152 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin2a744a72013-03-27 01:56:23 -0700153 "%s: value too large (%s:%d)",
154 td->name, __FILE__, __LINE__);
155 return -1;
156 }
Lev Walkin082cadc2005-08-14 02:18:27 +0000157
158 if((value <= 1)) {
159 /* Constraint check succeeded */
160 return 0;
161 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700162 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000163 "%s: constraint failed (%s:%d)",
164 td->name, __FILE__, __LINE__);
165 return -1;
166 }
167}
168
169/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700170 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000171 * so here we adjust the DEF accordingly.
172 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000173
174/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
175
Lev Walkina7591b52014-10-12 18:37:35 -0700176static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000177 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
178};
179asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
180 "CN-IntegerMinLow",
181 "CN-IntegerMinLow",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800182 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000183 asn_DEF_CN_IntegerMinLow_tags_1,
184 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
185 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
186 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
187 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
188 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700189 { 0, 0, CN_IntegerMinLow_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000190 0, 0, /* No members */
191 0 /* No specifics */
192};
193
194
195/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
196
197#include <INTEGER.h>
198
199/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
200
201typedef INTEGER_t NO_IntegerMinHigh_t;
202
203/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
204
205extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
206asn_struct_free_f NO_IntegerMinHigh_free;
207asn_struct_print_f NO_IntegerMinHigh_print;
208asn_constr_check_f NO_IntegerMinHigh_constraint;
209ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
210der_type_encoder_f NO_IntegerMinHigh_encode_der;
211xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
212xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
213
214/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
215
216int
Lev Walkin20696a42017-10-17 21:27:33 -0700217NO_IntegerMinHigh_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000218 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000219 const INTEGER_t *st = (const INTEGER_t *)sptr;
220 long value;
221
222 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700223 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000224 "%s: value not given (%s:%d)",
225 td->name, __FILE__, __LINE__);
226 return -1;
227 }
228
229 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700230 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000231 "%s: value too large (%s:%d)",
232 td->name, __FILE__, __LINE__);
233 return -1;
234 }
235
Lev Walkinc3f0b892005-08-14 02:40:04 +0000236 if((value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000237 /* Constraint check succeeded */
238 return 0;
239 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700240 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000241 "%s: constraint failed (%s:%d)",
242 td->name, __FILE__, __LINE__);
243 return -1;
244 }
245}
246
247/*
248 * This type is implemented using INTEGER,
249 * so here we adjust the DEF accordingly.
250 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000251
252/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
253
Lev Walkina7591b52014-10-12 18:37:35 -0700254static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000255 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
256};
257asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
258 "NO-IntegerMinHigh",
259 "NO-IntegerMinHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800260 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000261 asn_DEF_NO_IntegerMinHigh_tags_1,
262 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
263 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
264 asn_DEF_NO_IntegerMinHigh_tags_1, /* Same as above */
265 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
266 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700267 { 0, 0, NO_IntegerMinHigh_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000268 0, 0, /* No members */
269 0 /* No specifics */
270};
271
272
273/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
274
Lev Walkin8bb57a22007-12-03 13:41:36 +0000275#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000276
277/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
278
Lev Walkin8bb57a22007-12-03 13:41:36 +0000279typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000280
281/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
282
283extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
284asn_struct_free_f NO_IntegerLowHigh_free;
285asn_struct_print_f NO_IntegerLowHigh_print;
286asn_constr_check_f NO_IntegerLowHigh_constraint;
287ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
288der_type_encoder_f NO_IntegerLowHigh_encode_der;
289xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
290xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
291
292/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
293
294int
Lev Walkin20696a42017-10-17 21:27:33 -0700295NO_IntegerLowHigh_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000296 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000297 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000298
299 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700300 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000301 "%s: value not given (%s:%d)",
302 td->name, __FILE__, __LINE__);
303 return -1;
304 }
305
Lev Walkin8bb57a22007-12-03 13:41:36 +0000306 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000307
Lev Walkinc3f0b892005-08-14 02:40:04 +0000308 if((value >= 1 && value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000309 /* Constraint check succeeded */
310 return 0;
311 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700312 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000313 "%s: constraint failed (%s:%d)",
314 td->name, __FILE__, __LINE__);
315 return -1;
316 }
317}
318
319/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000320 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000321 * so here we adjust the DEF accordingly.
322 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000323
324/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
325
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800326static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000327 0, 0, 0, 0, 0,
328 0, /* Native long size */
329 1 /* Unsigned representation */
330};
Lev Walkina7591b52014-10-12 18:37:35 -0700331static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000332 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
333};
334asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
335 "NO-IntegerLowHigh",
336 "NO-IntegerLowHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800337 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000338 asn_DEF_NO_IntegerLowHigh_tags_1,
339 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
340 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
341 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
342 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
343 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700344 { 0, 0, NO_IntegerLowHigh_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000345 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000346 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000347};
348
349
350/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
351
Lev Walkin2a744a72013-03-27 01:56:23 -0700352#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000353
354/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
355
Lev Walkin2a744a72013-03-27 01:56:23 -0700356typedef INTEGER_t CN_IntegerLowMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000357
358/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
359
360extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
361asn_struct_free_f CN_IntegerLowMax_free;
362asn_struct_print_f CN_IntegerLowMax_print;
363asn_constr_check_f CN_IntegerLowMax_constraint;
364ber_type_decoder_f CN_IntegerLowMax_decode_ber;
365der_type_encoder_f CN_IntegerLowMax_encode_der;
366xer_type_decoder_f CN_IntegerLowMax_decode_xer;
367xer_type_encoder_f CN_IntegerLowMax_encode_xer;
368
369/*** <<< CODE [CN-IntegerLowMax] >>> ***/
370
371int
Lev Walkin20696a42017-10-17 21:27:33 -0700372CN_IntegerLowMax_constraint(const 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 Walkin2a744a72013-03-27 01:56:23 -0700374 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000375 long value;
376
377 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700378 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000379 "%s: value not given (%s:%d)",
380 td->name, __FILE__, __LINE__);
381 return -1;
382 }
383
Lev Walkin2a744a72013-03-27 01:56:23 -0700384 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700385 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin2a744a72013-03-27 01:56:23 -0700386 "%s: value too large (%s:%d)",
387 td->name, __FILE__, __LINE__);
388 return -1;
389 }
Lev Walkin082cadc2005-08-14 02:18:27 +0000390
391 if((value >= 1)) {
392 /* Constraint check succeeded */
393 return 0;
394 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700395 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000396 "%s: constraint failed (%s:%d)",
397 td->name, __FILE__, __LINE__);
398 return -1;
399 }
400}
401
402/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700403 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000404 * so here we adjust the DEF accordingly.
405 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000406
407/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
408
Lev Walkina7591b52014-10-12 18:37:35 -0700409static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000410 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
411};
412asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
413 "CN-IntegerLowMax",
414 "CN-IntegerLowMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800415 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000416 asn_DEF_CN_IntegerLowMax_tags_1,
417 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
418 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
419 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
420 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
421 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700422 { 0, 0, CN_IntegerLowMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000423 0, 0, /* No members */
424 0 /* No specifics */
425};
426
427
428/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
429
430#include <INTEGER.h>
431
432/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
433
434typedef INTEGER_t NO_IntegerHighMax_t;
435
436/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
437
438extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
439asn_struct_free_f NO_IntegerHighMax_free;
440asn_struct_print_f NO_IntegerHighMax_print;
441asn_constr_check_f NO_IntegerHighMax_constraint;
442ber_type_decoder_f NO_IntegerHighMax_decode_ber;
443der_type_encoder_f NO_IntegerHighMax_encode_der;
444xer_type_decoder_f NO_IntegerHighMax_decode_xer;
445xer_type_encoder_f NO_IntegerHighMax_encode_xer;
446
447/*** <<< CODE [NO-IntegerHighMax] >>> ***/
448
449int
Lev Walkin20696a42017-10-17 21:27:33 -0700450NO_IntegerHighMax_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000451 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000452 const INTEGER_t *st = (const INTEGER_t *)sptr;
453 long value;
454
455 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700456 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000457 "%s: value not given (%s:%d)",
458 td->name, __FILE__, __LINE__);
459 return -1;
460 }
461
462 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700463 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000464 "%s: value too large (%s:%d)",
465 td->name, __FILE__, __LINE__);
466 return -1;
467 }
468
Lev Walkinc3f0b892005-08-14 02:40:04 +0000469 if((value >= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000470 /* Constraint check succeeded */
471 return 0;
472 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700473 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000474 "%s: constraint failed (%s:%d)",
475 td->name, __FILE__, __LINE__);
476 return -1;
477 }
478}
479
480/*
481 * This type is implemented using INTEGER,
482 * so here we adjust the DEF accordingly.
483 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000484
485/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
486
Lev Walkina7591b52014-10-12 18:37:35 -0700487static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000488 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
489};
490asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
491 "NO-IntegerHighMax",
492 "NO-IntegerHighMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800493 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000494 asn_DEF_NO_IntegerHighMax_tags_1,
495 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
496 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
497 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
498 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
499 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700500 { 0, 0, NO_IntegerHighMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000501 0, 0, /* No members */
502 0 /* No specifics */
503};
504
505
506/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
507
508#include <INTEGER.h>
509
510/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
511
512typedef INTEGER_t NO_IntegerLowestMax_t;
513
514/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
515
516extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
517asn_struct_free_f NO_IntegerLowestMax_free;
518asn_struct_print_f NO_IntegerLowestMax_print;
519asn_constr_check_f NO_IntegerLowestMax_constraint;
520ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
521der_type_encoder_f NO_IntegerLowestMax_encode_der;
522xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
523xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
524
525/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
526
527int
Lev Walkin20696a42017-10-17 21:27:33 -0700528NO_IntegerLowestMax_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000529 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000530 const INTEGER_t *st = (const INTEGER_t *)sptr;
531 long value;
532
533 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700534 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000535 "%s: value not given (%s:%d)",
536 td->name, __FILE__, __LINE__);
537 return -1;
538 }
539
540 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700541 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000542 "%s: value too large (%s:%d)",
543 td->name, __FILE__, __LINE__);
544 return -1;
545 }
546
Lev Walkinc3f0b892005-08-14 02:40:04 +0000547 if((value >= -3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000548 /* Constraint check succeeded */
549 return 0;
550 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700551 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000552 "%s: constraint failed (%s:%d)",
553 td->name, __FILE__, __LINE__);
554 return -1;
555 }
556}
557
558/*
559 * This type is implemented using INTEGER,
560 * so here we adjust the DEF accordingly.
561 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000562
563/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
564
Lev Walkina7591b52014-10-12 18:37:35 -0700565static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000566 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
567};
568asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
569 "NO-IntegerLowestMax",
570 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800571 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000572 asn_DEF_NO_IntegerLowestMax_tags_1,
573 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
574 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
575 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
576 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
577 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700578 { 0, 0, NO_IntegerLowestMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000579 0, 0, /* No members */
580 0 /* No specifics */
581};
582
583
584/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
585
Lev Walkin8bb57a22007-12-03 13:41:36 +0000586#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000587
588/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
589
Lev Walkin8bb57a22007-12-03 13:41:36 +0000590typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000591
592/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
593
594extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
595asn_struct_free_f NO_IntegerOutRange_free;
596asn_struct_print_f NO_IntegerOutRange_print;
597asn_constr_check_f NO_IntegerOutRange_constraint;
598ber_type_decoder_f NO_IntegerOutRange_decode_ber;
599der_type_encoder_f NO_IntegerOutRange_encode_der;
600xer_type_decoder_f NO_IntegerOutRange_decode_xer;
601xer_type_encoder_f NO_IntegerOutRange_encode_xer;
602
603/*** <<< CODE [NO-IntegerOutRange] >>> ***/
604
605int
Lev Walkin20696a42017-10-17 21:27:33 -0700606NO_IntegerOutRange_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000607 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000608 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000609
610 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700611 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000612 "%s: value not given (%s:%d)",
613 td->name, __FILE__, __LINE__);
614 return -1;
615 }
616
Lev Walkin8bb57a22007-12-03 13:41:36 +0000617 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000618
Lev Walkinc3f0b892005-08-14 02:40:04 +0000619 if((value >= 3000000000 && value <= 3000000001)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000620 /* Constraint check succeeded */
621 return 0;
622 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700623 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000624 "%s: constraint failed (%s:%d)",
625 td->name, __FILE__, __LINE__);
626 return -1;
627 }
628}
629
630/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000631 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000632 * so here we adjust the DEF accordingly.
633 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000634
635/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
636
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800637static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000638 0, 0, 0, 0, 0,
639 0, /* Native long size */
640 1 /* Unsigned representation */
641};
Lev Walkina7591b52014-10-12 18:37:35 -0700642static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000643 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
644};
645asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
646 "NO-IntegerOutRange",
647 "NO-IntegerOutRange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800648 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000649 asn_DEF_NO_IntegerOutRange_tags_1,
650 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
651 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
652 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
653 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
654 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700655 { 0, 0, NO_IntegerOutRange_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000656 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000657 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000658};
659
660
661/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
662
Lev Walkin8bb57a22007-12-03 13:41:36 +0000663#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000664
665/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
666
Lev Walkin8bb57a22007-12-03 13:41:36 +0000667typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000668
669/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
670
671extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
672asn_struct_free_f NO_IntegerOutValue_free;
673asn_struct_print_f NO_IntegerOutValue_print;
674asn_constr_check_f NO_IntegerOutValue_constraint;
675ber_type_decoder_f NO_IntegerOutValue_decode_ber;
676der_type_encoder_f NO_IntegerOutValue_encode_der;
677xer_type_decoder_f NO_IntegerOutValue_decode_xer;
678xer_type_encoder_f NO_IntegerOutValue_encode_xer;
679
680/*** <<< CODE [NO-IntegerOutValue] >>> ***/
681
682int
Lev Walkin20696a42017-10-17 21:27:33 -0700683NO_IntegerOutValue_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000684 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000685 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000686
687 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700688 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000689 "%s: value not given (%s:%d)",
690 td->name, __FILE__, __LINE__);
691 return -1;
692 }
693
Lev Walkin8bb57a22007-12-03 13:41:36 +0000694 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000695
Lev Walkinc3f0b892005-08-14 02:40:04 +0000696 if((value == 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000697 /* Constraint check succeeded */
698 return 0;
699 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700700 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000701 "%s: constraint failed (%s:%d)",
702 td->name, __FILE__, __LINE__);
703 return -1;
704 }
705}
706
707/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000708 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000709 * so here we adjust the DEF accordingly.
710 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000711
712/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
713
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800714static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000715 0, 0, 0, 0, 0,
716 0, /* Native long size */
717 1 /* Unsigned representation */
718};
Lev Walkina7591b52014-10-12 18:37:35 -0700719static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000720 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
721};
722asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
723 "NO-IntegerOutValue",
724 "NO-IntegerOutValue",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800725 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000726 asn_DEF_NO_IntegerOutValue_tags_1,
727 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
728 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
729 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
730 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
731 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700732 { 0, 0, NO_IntegerOutValue_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000733 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000734 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000735};
736
737
738/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
739
Lev Walkinc3f0b892005-08-14 02:40:04 +0000740#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000741
742/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
743
Lev Walkinc3f0b892005-08-14 02:40:04 +0000744typedef long OK_IntegerInRange1_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000745
746/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
747
748extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
749asn_struct_free_f OK_IntegerInRange1_free;
750asn_struct_print_f OK_IntegerInRange1_print;
751asn_constr_check_f OK_IntegerInRange1_constraint;
752ber_type_decoder_f OK_IntegerInRange1_decode_ber;
753der_type_encoder_f OK_IntegerInRange1_encode_der;
754xer_type_decoder_f OK_IntegerInRange1_decode_xer;
755xer_type_encoder_f OK_IntegerInRange1_encode_xer;
756
757/*** <<< CODE [OK-IntegerInRange1] >>> ***/
758
759int
Lev Walkin20696a42017-10-17 21:27:33 -0700760OK_IntegerInRange1_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000761 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000762 long value;
763
764 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700765 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000766 "%s: value not given (%s:%d)",
767 td->name, __FILE__, __LINE__);
768 return -1;
769 }
770
Lev Walkinc3f0b892005-08-14 02:40:04 +0000771 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000772
773 if((value >= -100 && value <= 100)) {
774 /* Constraint check succeeded */
775 return 0;
776 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700777 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000778 "%s: constraint failed (%s:%d)",
779 td->name, __FILE__, __LINE__);
780 return -1;
781 }
782}
783
784/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000785 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000786 * so here we adjust the DEF accordingly.
787 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000788
789/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
790
Lev Walkina7591b52014-10-12 18:37:35 -0700791static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000792 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
793};
794asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
795 "OK-IntegerInRange1",
796 "OK-IntegerInRange1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800797 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000798 asn_DEF_OK_IntegerInRange1_tags_1,
799 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
800 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
801 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
802 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
803 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700804 { 0, 0, OK_IntegerInRange1_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000805 0, 0, /* No members */
806 0 /* No specifics */
807};
808
809
810/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
811
Lev Walkinc3f0b892005-08-14 02:40:04 +0000812#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000813
814/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
815
Lev Walkinc3f0b892005-08-14 02:40:04 +0000816typedef long OK_IntegerInRange2_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000817
818/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
819
820extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
821asn_struct_free_f OK_IntegerInRange2_free;
822asn_struct_print_f OK_IntegerInRange2_print;
823asn_constr_check_f OK_IntegerInRange2_constraint;
824ber_type_decoder_f OK_IntegerInRange2_decode_ber;
825der_type_encoder_f OK_IntegerInRange2_encode_der;
826xer_type_decoder_f OK_IntegerInRange2_decode_xer;
827xer_type_encoder_f OK_IntegerInRange2_encode_xer;
828
829/*** <<< CODE [OK-IntegerInRange2] >>> ***/
830
831int
Lev Walkin20696a42017-10-17 21:27:33 -0700832OK_IntegerInRange2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000833 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000834 long value;
835
836 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700837 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000838 "%s: value not given (%s:%d)",
839 td->name, __FILE__, __LINE__);
840 return -1;
841 }
842
Lev Walkinc3f0b892005-08-14 02:40:04 +0000843 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000844
845 if(((value == -100) || (value == 100))) {
846 /* Constraint check succeeded */
847 return 0;
848 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700849 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000850 "%s: constraint failed (%s:%d)",
851 td->name, __FILE__, __LINE__);
852 return -1;
853 }
854}
855
856/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000857 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000858 * so here we adjust the DEF accordingly.
859 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000860
861/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
862
Lev Walkina7591b52014-10-12 18:37:35 -0700863static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000864 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
865};
866asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
867 "OK-IntegerInRange2",
868 "OK-IntegerInRange2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800869 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000870 asn_DEF_OK_IntegerInRange2_tags_1,
871 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
872 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
873 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
874 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
875 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700876 { 0, 0, OK_IntegerInRange2_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000877 0, 0, /* No members */
878 0 /* No specifics */
879};
880
881
882/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
883
Lev Walkinc3f0b892005-08-14 02:40:04 +0000884#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000885
886/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
887
Lev Walkinc3f0b892005-08-14 02:40:04 +0000888typedef long OK_IntegerInRange3_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000889
890/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
891
892extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
893asn_struct_free_f OK_IntegerInRange3_free;
894asn_struct_print_f OK_IntegerInRange3_print;
895asn_constr_check_f OK_IntegerInRange3_constraint;
896ber_type_decoder_f OK_IntegerInRange3_decode_ber;
897der_type_encoder_f OK_IntegerInRange3_encode_der;
898xer_type_decoder_f OK_IntegerInRange3_decode_xer;
899xer_type_encoder_f OK_IntegerInRange3_encode_xer;
900
901/*** <<< CODE [OK-IntegerInRange3] >>> ***/
902
903int
Lev Walkin20696a42017-10-17 21:27:33 -0700904OK_IntegerInRange3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000905 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000906 long value;
907
908 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700909 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000910 "%s: value not given (%s:%d)",
911 td->name, __FILE__, __LINE__);
912 return -1;
913 }
914
Lev Walkinc3f0b892005-08-14 02:40:04 +0000915 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000916
Lev Walkin63b41262007-11-06 01:48:46 +0000917 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000918 /* Constraint check succeeded */
919 return 0;
920 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700921 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000922 "%s: constraint failed (%s:%d)",
923 td->name, __FILE__, __LINE__);
924 return -1;
925 }
926}
927
928/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000929 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000930 * so here we adjust the DEF accordingly.
931 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000932
933/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
934
Lev Walkina7591b52014-10-12 18:37:35 -0700935static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000936 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
937};
938asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
939 "OK-IntegerInRange3",
940 "OK-IntegerInRange3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800941 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000942 asn_DEF_OK_IntegerInRange3_tags_1,
943 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
944 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
945 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
946 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
947 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700948 { 0, 0, OK_IntegerInRange3_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000949 0, 0, /* No members */
950 0 /* No specifics */
951};
952
953
954/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
955
Lev Walkinc3f0b892005-08-14 02:40:04 +0000956#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000957
958/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
959
Lev Walkinc3f0b892005-08-14 02:40:04 +0000960typedef long OK_IntegerInRange4_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000961
962/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
963
964extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
965asn_struct_free_f OK_IntegerInRange4_free;
966asn_struct_print_f OK_IntegerInRange4_print;
967asn_constr_check_f OK_IntegerInRange4_constraint;
968ber_type_decoder_f OK_IntegerInRange4_decode_ber;
969der_type_encoder_f OK_IntegerInRange4_encode_der;
970xer_type_decoder_f OK_IntegerInRange4_decode_xer;
971xer_type_encoder_f OK_IntegerInRange4_encode_xer;
972
973/*** <<< CODE [OK-IntegerInRange4] >>> ***/
974
975int
Lev Walkin20696a42017-10-17 21:27:33 -0700976OK_IntegerInRange4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000977 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000978 long value;
979
980 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700981 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000982 "%s: value not given (%s:%d)",
983 td->name, __FILE__, __LINE__);
984 return -1;
985 }
986
Lev Walkinc3f0b892005-08-14 02:40:04 +0000987 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000988
Lev Walkin63b41262007-11-06 01:48:46 +0000989 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000990 /* Constraint check succeeded */
991 return 0;
992 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700993 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000994 "%s: constraint failed (%s:%d)",
995 td->name, __FILE__, __LINE__);
996 return -1;
997 }
998}
999
1000/*
Lev Walkinc3f0b892005-08-14 02:40:04 +00001001 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001002 * so here we adjust the DEF accordingly.
1003 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001004
1005/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
1006
Lev Walkina7591b52014-10-12 18:37:35 -07001007static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001008 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1009};
1010asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1011 "OK-IntegerInRange4",
1012 "OK-IntegerInRange4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001013 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001014 asn_DEF_OK_IntegerInRange4_tags_1,
1015 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1016 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1017 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1018 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1019 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001020 { 0, 0, OK_IntegerInRange4_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +00001021 0, 0, /* No members */
1022 0 /* No specifics */
1023};
1024
1025
1026/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1027
Lev Walkin2a744a72013-03-27 01:56:23 -07001028#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001029
1030/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1031
Lev Walkin2a744a72013-03-27 01:56:23 -07001032typedef INTEGER_t OK_IntegerInRange5_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001033
1034/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1035
1036extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1037asn_struct_free_f OK_IntegerInRange5_free;
1038asn_struct_print_f OK_IntegerInRange5_print;
1039asn_constr_check_f OK_IntegerInRange5_constraint;
1040ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1041der_type_encoder_f OK_IntegerInRange5_encode_der;
1042xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1043xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1044
1045/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1046
1047int
Lev Walkin20696a42017-10-17 21:27:33 -07001048OK_IntegerInRange5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001049 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2a744a72013-03-27 01:56:23 -07001050 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001051 long value;
1052
1053 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001054 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001055 "%s: value not given (%s:%d)",
1056 td->name, __FILE__, __LINE__);
1057 return -1;
1058 }
1059
Lev Walkin2a744a72013-03-27 01:56:23 -07001060 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001061 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin2a744a72013-03-27 01:56:23 -07001062 "%s: value too large (%s:%d)",
1063 td->name, __FILE__, __LINE__);
1064 return -1;
1065 }
Lev Walkin082cadc2005-08-14 02:18:27 +00001066
Lev Walkin63b41262007-11-06 01:48:46 +00001067 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001068 /* Constraint check succeeded */
1069 return 0;
1070 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001071 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001072 "%s: constraint failed (%s:%d)",
1073 td->name, __FILE__, __LINE__);
1074 return -1;
1075 }
1076}
1077
1078/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001079 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +00001080 * so here we adjust the DEF accordingly.
1081 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001082
1083/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1084
Lev Walkina7591b52014-10-12 18:37:35 -07001085static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001086 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1087};
1088asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1089 "OK-IntegerInRange5",
1090 "OK-IntegerInRange5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001091 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +00001092 asn_DEF_OK_IntegerInRange5_tags_1,
1093 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1094 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1095 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1096 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1097 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001098 { 0, 0, OK_IntegerInRange5_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +00001099 0, 0, /* No members */
1100 0 /* No specifics */
1101};
1102
Lev Walkinc3f0b892005-08-14 02:40:04 +00001103
Lev Walkinfee6f712005-08-27 03:13:51 +00001104/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1105
Lev Walkin8bb57a22007-12-03 13:41:36 +00001106#include <NativeInteger.h>
Lev Walkinfee6f712005-08-27 03:13:51 +00001107
1108/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1109
Lev Walkin8bb57a22007-12-03 13:41:36 +00001110typedef unsigned long NO_IntegerInRange6_t;
Lev Walkinfee6f712005-08-27 03:13:51 +00001111
1112/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1113
1114extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1115asn_struct_free_f NO_IntegerInRange6_free;
1116asn_struct_print_f NO_IntegerInRange6_print;
1117asn_constr_check_f NO_IntegerInRange6_constraint;
1118ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1119der_type_encoder_f NO_IntegerInRange6_encode_der;
1120xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1121xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1122
1123/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1124
1125int
Lev Walkin20696a42017-10-17 21:27:33 -07001126NO_IntegerInRange6_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001127 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinfee6f712005-08-27 03:13:51 +00001128
1129 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001130 ASN__CTFAIL(app_key, td, sptr,
Lev Walkinfee6f712005-08-27 03:13:51 +00001131 "%s: value not given (%s:%d)",
1132 td->name, __FILE__, __LINE__);
1133 return -1;
1134 }
1135
Lev Walkinfee6f712005-08-27 03:13:51 +00001136
Lev Walkin8bb57a22007-12-03 13:41:36 +00001137 /* Constraint check succeeded */
1138 return 0;
Lev Walkinfee6f712005-08-27 03:13:51 +00001139}
1140
1141/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001142 * This type is implemented using NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001143 * so here we adjust the DEF accordingly.
1144 */
Lev Walkinfee6f712005-08-27 03:13:51 +00001145
1146/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1147
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001148static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001149 0, 0, 0, 0, 0,
1150 0, /* Native long size */
1151 1 /* Unsigned representation */
1152};
Lev Walkina7591b52014-10-12 18:37:35 -07001153static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkinfee6f712005-08-27 03:13:51 +00001154 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1155};
1156asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1157 "NO-IntegerInRange6",
1158 "NO-IntegerInRange6",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001159 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001160 asn_DEF_NO_IntegerInRange6_tags_1,
1161 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1162 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1163 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1164 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1165 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001166 { 0, 0, NO_IntegerInRange6_constraint },
Lev Walkinfee6f712005-08-27 03:13:51 +00001167 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001168 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkinfee6f712005-08-27 03:13:51 +00001169};
1170
1171
Lev Walkinc3f0b892005-08-14 02:40:04 +00001172/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1173
Lev Walkin2a744a72013-03-27 01:56:23 -07001174#include <INTEGER.h>
Lev Walkinc3f0b892005-08-14 02:40:04 +00001175
1176/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1177
1178typedef enum CN_IntegerEnumerated1 {
1179 CN_IntegerEnumerated1_a = 1,
1180 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001181} e_CN_IntegerEnumerated1;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001182
1183/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1184
Lev Walkin2a744a72013-03-27 01:56:23 -07001185typedef INTEGER_t CN_IntegerEnumerated1_t;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001186
1187/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1188
1189extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1190asn_struct_free_f CN_IntegerEnumerated1_free;
1191asn_struct_print_f CN_IntegerEnumerated1_print;
1192asn_constr_check_f CN_IntegerEnumerated1_constraint;
1193ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1194der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1195xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1196xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1197
1198/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1199
Lev Walkinc3f0b892005-08-14 02:40:04 +00001200/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001201 * This type is implemented using INTEGER,
Lev Walkinc3f0b892005-08-14 02:40:04 +00001202 * so here we adjust the DEF accordingly.
1203 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001204
1205/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1206
Lev Walkina7591b52014-10-12 18:37:35 -07001207static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001208 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1209};
1210asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1211 "CN-IntegerEnumerated1",
1212 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001213 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +00001214 asn_DEF_CN_IntegerEnumerated1_tags_1,
1215 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1216 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1217 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1218 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1219 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001220 { 0, 0, INTEGER_constraint },
Lev Walkinc3f0b892005-08-14 02:40:04 +00001221 0, 0, /* Defined elsewhere */
1222 0 /* No specifics */
1223};
1224
1225
1226/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1227
1228#include <INTEGER.h>
1229
1230/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1231
1232typedef enum NO_IntegerEnumerated2 {
1233 NO_IntegerEnumerated2_a = 1,
1234 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001235} e_NO_IntegerEnumerated2;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001236
1237/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1238
1239typedef INTEGER_t NO_IntegerEnumerated2_t;
1240
1241/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1242
1243extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1244asn_struct_free_f NO_IntegerEnumerated2_free;
1245asn_struct_print_f NO_IntegerEnumerated2_print;
1246asn_constr_check_f NO_IntegerEnumerated2_constraint;
1247ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1248der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1249xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1250xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1251
1252/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1253
Lev Walkinc3f0b892005-08-14 02:40:04 +00001254/*
1255 * This type is implemented using INTEGER,
1256 * so here we adjust the DEF accordingly.
1257 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001258
1259/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1260
Lev Walkina7591b52014-10-12 18:37:35 -07001261static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001262 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1263};
1264asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1265 "NO-IntegerEnumerated2",
1266 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001267 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +00001268 asn_DEF_NO_IntegerEnumerated2_tags_1,
1269 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1270 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1271 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1272 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1273 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001274 { 0, 0, INTEGER_constraint },
Lev Walkinc3f0b892005-08-14 02:40:04 +00001275 0, 0, /* Defined elsewhere */
1276 0 /* No specifics */
1277};
1278