blob: 61b7d4cdb4cfbf08a5c0ab092fc64285d7b9a155 [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 <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00005
6/*** <<< TYPE-DECLS [CN-IntegerUnlimited] >>> ***/
7
Lev Walkin2a744a72013-03-27 01:56:23 -07008typedef long 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 NativeInteger,
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_NativeInteger,
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, NativeInteger_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 <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +000052
53/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
54
Lev Walkin2a744a72013-03-27 01:56:23 -070055typedef long 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 Walkin082cadc2005-08-14 02:18:27 +000073
74 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070075 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +000076 "%s: value not given (%s:%d)",
77 td->name, __FILE__, __LINE__);
78 return -1;
79 }
80
81
82 if(1 /* No applicable constraints whatsoever */) {
83 /* Nothing is here. See below */
84 }
85
Lev Walkin0bfea562017-09-29 23:16:48 -070086 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin082cadc2005-08-14 02:18:27 +000087}
88
89/*
Lev Walkin2a744a72013-03-27 01:56:23 -070090 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +000091 * so here we adjust the DEF accordingly.
92 */
Lev Walkin082cadc2005-08-14 02:18:27 +000093
94/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
95
Lev Walkina7591b52014-10-12 18:37:35 -070096static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +000097 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
98};
99asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
100 "CN-IntegerMinMax",
101 "CN-IntegerMinMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800102 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000103 asn_DEF_CN_IntegerMinMax_tags_1,
104 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
105 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
106 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
107 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
108 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700109 { 0, 0, CN_IntegerMinMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000110 0, 0, /* No members */
111 0 /* No specifics */
112};
113
114
115/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
116
Lev Walkin2a744a72013-03-27 01:56:23 -0700117#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000118
119/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
120
Lev Walkin2a744a72013-03-27 01:56:23 -0700121typedef long CN_IntegerMinLow_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000122
123/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
124
125extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
126asn_struct_free_f CN_IntegerMinLow_free;
127asn_struct_print_f CN_IntegerMinLow_print;
128asn_constr_check_f CN_IntegerMinLow_constraint;
129ber_type_decoder_f CN_IntegerMinLow_decode_ber;
130der_type_encoder_f CN_IntegerMinLow_encode_der;
131xer_type_decoder_f CN_IntegerMinLow_decode_xer;
132xer_type_encoder_f CN_IntegerMinLow_encode_xer;
133
134/*** <<< CODE [CN-IntegerMinLow] >>> ***/
135
136int
Lev Walkin20696a42017-10-17 21:27:33 -0700137CN_IntegerMinLow_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000138 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000139 long value;
140
141 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700142 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000143 "%s: value not given (%s:%d)",
144 td->name, __FILE__, __LINE__);
145 return -1;
146 }
147
Lev Walkin2a744a72013-03-27 01:56:23 -0700148 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000149
150 if((value <= 1)) {
151 /* Constraint check succeeded */
152 return 0;
153 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700154 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000155 "%s: constraint failed (%s:%d)",
156 td->name, __FILE__, __LINE__);
157 return -1;
158 }
159}
160
161/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700162 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000163 * so here we adjust the DEF accordingly.
164 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000165
166/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
167
Lev Walkina7591b52014-10-12 18:37:35 -0700168static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000169 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
170};
171asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
172 "CN-IntegerMinLow",
173 "CN-IntegerMinLow",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800174 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000175 asn_DEF_CN_IntegerMinLow_tags_1,
176 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
177 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
178 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
179 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
180 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700181 { 0, 0, CN_IntegerMinLow_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000182 0, 0, /* No members */
183 0 /* No specifics */
184};
185
186
187/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
188
189#include <INTEGER.h>
190
191/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
192
193typedef INTEGER_t NO_IntegerMinHigh_t;
194
195/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
196
197extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
198asn_struct_free_f NO_IntegerMinHigh_free;
199asn_struct_print_f NO_IntegerMinHigh_print;
200asn_constr_check_f NO_IntegerMinHigh_constraint;
201ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
202der_type_encoder_f NO_IntegerMinHigh_encode_der;
203xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
204xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
205
206/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
207
208int
Lev Walkin20696a42017-10-17 21:27:33 -0700209NO_IntegerMinHigh_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000210 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000211 const INTEGER_t *st = (const INTEGER_t *)sptr;
212 long value;
213
214 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700215 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000216 "%s: value not given (%s:%d)",
217 td->name, __FILE__, __LINE__);
218 return -1;
219 }
220
221 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700222 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000223 "%s: value too large (%s:%d)",
224 td->name, __FILE__, __LINE__);
225 return -1;
226 }
227
Lev Walkinc3f0b892005-08-14 02:40:04 +0000228 if((value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000229 /* Constraint check succeeded */
230 return 0;
231 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700232 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000233 "%s: constraint failed (%s:%d)",
234 td->name, __FILE__, __LINE__);
235 return -1;
236 }
237}
238
239/*
240 * This type is implemented using INTEGER,
241 * so here we adjust the DEF accordingly.
242 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000243
244/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
245
Lev Walkina7591b52014-10-12 18:37:35 -0700246static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000247 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
248};
249asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
250 "NO-IntegerMinHigh",
251 "NO-IntegerMinHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800252 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000253 asn_DEF_NO_IntegerMinHigh_tags_1,
254 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
255 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
256 asn_DEF_NO_IntegerMinHigh_tags_1, /* Same as above */
257 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
258 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700259 { 0, 0, NO_IntegerMinHigh_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000260 0, 0, /* No members */
261 0 /* No specifics */
262};
263
264
265/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
266
Lev Walkin8bb57a22007-12-03 13:41:36 +0000267#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000268
269/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
270
Lev Walkin8bb57a22007-12-03 13:41:36 +0000271typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000272
273/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
274
275extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
276asn_struct_free_f NO_IntegerLowHigh_free;
277asn_struct_print_f NO_IntegerLowHigh_print;
278asn_constr_check_f NO_IntegerLowHigh_constraint;
279ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
280der_type_encoder_f NO_IntegerLowHigh_encode_der;
281xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
282xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
283
284/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
285
286int
Lev Walkin20696a42017-10-17 21:27:33 -0700287NO_IntegerLowHigh_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000288 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000289 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000290
291 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700292 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000293 "%s: value not given (%s:%d)",
294 td->name, __FILE__, __LINE__);
295 return -1;
296 }
297
Lev Walkin8bb57a22007-12-03 13:41:36 +0000298 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000299
Lev Walkinc3f0b892005-08-14 02:40:04 +0000300 if((value >= 1 && value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000301 /* Constraint check succeeded */
302 return 0;
303 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700304 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000305 "%s: constraint failed (%s:%d)",
306 td->name, __FILE__, __LINE__);
307 return -1;
308 }
309}
310
311/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000312 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000313 * so here we adjust the DEF accordingly.
314 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000315
316/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
317
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800318static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000319 0, 0, 0, 0, 0,
320 0, /* Native long size */
321 1 /* Unsigned representation */
322};
Lev Walkina7591b52014-10-12 18:37:35 -0700323static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000324 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
325};
326asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
327 "NO-IntegerLowHigh",
328 "NO-IntegerLowHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800329 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000330 asn_DEF_NO_IntegerLowHigh_tags_1,
331 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
332 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
333 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
334 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
335 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700336 { 0, 0, NO_IntegerLowHigh_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000337 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000338 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000339};
340
341
342/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
343
Lev Walkin2a744a72013-03-27 01:56:23 -0700344#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000345
346/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
347
Lev Walkine0f2a5b2017-08-30 20:02:29 -0700348typedef unsigned long CN_IntegerLowMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000349
350/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
351
352extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
353asn_struct_free_f CN_IntegerLowMax_free;
354asn_struct_print_f CN_IntegerLowMax_print;
355asn_constr_check_f CN_IntegerLowMax_constraint;
356ber_type_decoder_f CN_IntegerLowMax_decode_ber;
357der_type_encoder_f CN_IntegerLowMax_encode_der;
358xer_type_decoder_f CN_IntegerLowMax_decode_xer;
359xer_type_encoder_f CN_IntegerLowMax_encode_xer;
360
361/*** <<< CODE [CN-IntegerLowMax] >>> ***/
362
363int
Lev Walkin20696a42017-10-17 21:27:33 -0700364CN_IntegerLowMax_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000365 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkine0f2a5b2017-08-30 20:02:29 -0700366 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000367
368 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700369 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000370 "%s: value not given (%s:%d)",
371 td->name, __FILE__, __LINE__);
372 return -1;
373 }
374
Lev Walkine0f2a5b2017-08-30 20:02:29 -0700375 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000376
377 if((value >= 1)) {
378 /* Constraint check succeeded */
379 return 0;
380 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700381 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000382 "%s: constraint failed (%s:%d)",
383 td->name, __FILE__, __LINE__);
384 return -1;
385 }
386}
387
388/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700389 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000390 * so here we adjust the DEF accordingly.
391 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000392
393/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
394
Lev Walkine0f2a5b2017-08-30 20:02:29 -0700395static const asn_INTEGER_specifics_t asn_SPC_CN_IntegerLowMax_specs_1 = {
396 0, 0, 0, 0, 0,
397 0, /* Native long size */
398 1 /* Unsigned representation */
399};
Lev Walkina7591b52014-10-12 18:37:35 -0700400static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000401 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
402};
403asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
404 "CN-IntegerLowMax",
405 "CN-IntegerLowMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800406 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000407 asn_DEF_CN_IntegerLowMax_tags_1,
408 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
409 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
410 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
411 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
412 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700413 { 0, 0, CN_IntegerLowMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000414 0, 0, /* No members */
Lev Walkine0f2a5b2017-08-30 20:02:29 -0700415 &asn_SPC_CN_IntegerLowMax_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000416};
417
418
419/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
420
421#include <INTEGER.h>
422
423/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
424
425typedef INTEGER_t NO_IntegerHighMax_t;
426
427/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
428
429extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
430asn_struct_free_f NO_IntegerHighMax_free;
431asn_struct_print_f NO_IntegerHighMax_print;
432asn_constr_check_f NO_IntegerHighMax_constraint;
433ber_type_decoder_f NO_IntegerHighMax_decode_ber;
434der_type_encoder_f NO_IntegerHighMax_encode_der;
435xer_type_decoder_f NO_IntegerHighMax_decode_xer;
436xer_type_encoder_f NO_IntegerHighMax_encode_xer;
437
438/*** <<< CODE [NO-IntegerHighMax] >>> ***/
439
440int
Lev Walkin20696a42017-10-17 21:27:33 -0700441NO_IntegerHighMax_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000442 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000443 const INTEGER_t *st = (const INTEGER_t *)sptr;
444 long value;
445
446 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700447 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000448 "%s: value not given (%s:%d)",
449 td->name, __FILE__, __LINE__);
450 return -1;
451 }
452
453 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700454 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000455 "%s: value too large (%s:%d)",
456 td->name, __FILE__, __LINE__);
457 return -1;
458 }
459
Lev Walkinc3f0b892005-08-14 02:40:04 +0000460 if((value >= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000461 /* Constraint check succeeded */
462 return 0;
463 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700464 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000465 "%s: constraint failed (%s:%d)",
466 td->name, __FILE__, __LINE__);
467 return -1;
468 }
469}
470
471/*
472 * This type is implemented using INTEGER,
473 * so here we adjust the DEF accordingly.
474 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000475
476/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
477
Lev Walkina7591b52014-10-12 18:37:35 -0700478static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000479 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
480};
481asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
482 "NO-IntegerHighMax",
483 "NO-IntegerHighMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800484 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000485 asn_DEF_NO_IntegerHighMax_tags_1,
486 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
487 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
488 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
489 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
490 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700491 { 0, 0, NO_IntegerHighMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000492 0, 0, /* No members */
493 0 /* No specifics */
494};
495
496
497/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
498
499#include <INTEGER.h>
500
501/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
502
503typedef INTEGER_t NO_IntegerLowestMax_t;
504
505/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
506
507extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
508asn_struct_free_f NO_IntegerLowestMax_free;
509asn_struct_print_f NO_IntegerLowestMax_print;
510asn_constr_check_f NO_IntegerLowestMax_constraint;
511ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
512der_type_encoder_f NO_IntegerLowestMax_encode_der;
513xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
514xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
515
516/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
517
518int
Lev Walkin20696a42017-10-17 21:27:33 -0700519NO_IntegerLowestMax_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000520 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000521 const INTEGER_t *st = (const INTEGER_t *)sptr;
522 long value;
523
524 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700525 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000526 "%s: value not given (%s:%d)",
527 td->name, __FILE__, __LINE__);
528 return -1;
529 }
530
531 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700532 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000533 "%s: value too large (%s:%d)",
534 td->name, __FILE__, __LINE__);
535 return -1;
536 }
537
Lev Walkinc3f0b892005-08-14 02:40:04 +0000538 if((value >= -3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000539 /* Constraint check succeeded */
540 return 0;
541 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700542 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000543 "%s: constraint failed (%s:%d)",
544 td->name, __FILE__, __LINE__);
545 return -1;
546 }
547}
548
549/*
550 * This type is implemented using INTEGER,
551 * so here we adjust the DEF accordingly.
552 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000553
554/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
555
Lev Walkina7591b52014-10-12 18:37:35 -0700556static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000557 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
558};
559asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
560 "NO-IntegerLowestMax",
561 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800562 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000563 asn_DEF_NO_IntegerLowestMax_tags_1,
564 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
565 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
566 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
567 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
568 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700569 { 0, 0, NO_IntegerLowestMax_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000570 0, 0, /* No members */
571 0 /* No specifics */
572};
573
574
575/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
576
Lev Walkin8bb57a22007-12-03 13:41:36 +0000577#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000578
579/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
580
Lev Walkin8bb57a22007-12-03 13:41:36 +0000581typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000582
583/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
584
585extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
586asn_struct_free_f NO_IntegerOutRange_free;
587asn_struct_print_f NO_IntegerOutRange_print;
588asn_constr_check_f NO_IntegerOutRange_constraint;
589ber_type_decoder_f NO_IntegerOutRange_decode_ber;
590der_type_encoder_f NO_IntegerOutRange_encode_der;
591xer_type_decoder_f NO_IntegerOutRange_decode_xer;
592xer_type_encoder_f NO_IntegerOutRange_encode_xer;
593
594/*** <<< CODE [NO-IntegerOutRange] >>> ***/
595
596int
Lev Walkin20696a42017-10-17 21:27:33 -0700597NO_IntegerOutRange_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000598 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000599 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000600
601 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700602 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000603 "%s: value not given (%s:%d)",
604 td->name, __FILE__, __LINE__);
605 return -1;
606 }
607
Lev Walkin8bb57a22007-12-03 13:41:36 +0000608 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000609
Lev Walkinc3f0b892005-08-14 02:40:04 +0000610 if((value >= 3000000000 && value <= 3000000001)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000611 /* Constraint check succeeded */
612 return 0;
613 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700614 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000615 "%s: constraint failed (%s:%d)",
616 td->name, __FILE__, __LINE__);
617 return -1;
618 }
619}
620
621/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000622 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000623 * so here we adjust the DEF accordingly.
624 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000625
626/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
627
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800628static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000629 0, 0, 0, 0, 0,
630 0, /* Native long size */
631 1 /* Unsigned representation */
632};
Lev Walkina7591b52014-10-12 18:37:35 -0700633static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000634 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
635};
636asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
637 "NO-IntegerOutRange",
638 "NO-IntegerOutRange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800639 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000640 asn_DEF_NO_IntegerOutRange_tags_1,
641 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
642 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
643 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
644 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
645 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700646 { 0, 0, NO_IntegerOutRange_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000647 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000648 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000649};
650
651
652/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
653
Lev Walkin8bb57a22007-12-03 13:41:36 +0000654#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000655
656/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
657
Lev Walkin8bb57a22007-12-03 13:41:36 +0000658typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000659
660/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
661
662extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
663asn_struct_free_f NO_IntegerOutValue_free;
664asn_struct_print_f NO_IntegerOutValue_print;
665asn_constr_check_f NO_IntegerOutValue_constraint;
666ber_type_decoder_f NO_IntegerOutValue_decode_ber;
667der_type_encoder_f NO_IntegerOutValue_encode_der;
668xer_type_decoder_f NO_IntegerOutValue_decode_xer;
669xer_type_encoder_f NO_IntegerOutValue_encode_xer;
670
671/*** <<< CODE [NO-IntegerOutValue] >>> ***/
672
673int
Lev Walkin20696a42017-10-17 21:27:33 -0700674NO_IntegerOutValue_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000675 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000676 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000677
678 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700679 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000680 "%s: value not given (%s:%d)",
681 td->name, __FILE__, __LINE__);
682 return -1;
683 }
684
Lev Walkin8bb57a22007-12-03 13:41:36 +0000685 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000686
Lev Walkinc3f0b892005-08-14 02:40:04 +0000687 if((value == 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000688 /* Constraint check succeeded */
689 return 0;
690 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700691 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000692 "%s: constraint failed (%s:%d)",
693 td->name, __FILE__, __LINE__);
694 return -1;
695 }
696}
697
698/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000699 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000700 * so here we adjust the DEF accordingly.
701 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000702
703/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
704
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800705static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000706 0, 0, 0, 0, 0,
707 0, /* Native long size */
708 1 /* Unsigned representation */
709};
Lev Walkina7591b52014-10-12 18:37:35 -0700710static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000711 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
712};
713asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
714 "NO-IntegerOutValue",
715 "NO-IntegerOutValue",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800716 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000717 asn_DEF_NO_IntegerOutValue_tags_1,
718 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
719 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
720 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
721 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
722 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700723 { 0, 0, NO_IntegerOutValue_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000724 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000725 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000726};
727
728
729/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
730
Lev Walkinc3f0b892005-08-14 02:40:04 +0000731#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000732
733/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
734
Lev Walkinc3f0b892005-08-14 02:40:04 +0000735typedef long OK_IntegerInRange1_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000736
737/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
738
739extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
740asn_struct_free_f OK_IntegerInRange1_free;
741asn_struct_print_f OK_IntegerInRange1_print;
742asn_constr_check_f OK_IntegerInRange1_constraint;
743ber_type_decoder_f OK_IntegerInRange1_decode_ber;
744der_type_encoder_f OK_IntegerInRange1_encode_der;
745xer_type_decoder_f OK_IntegerInRange1_decode_xer;
746xer_type_encoder_f OK_IntegerInRange1_encode_xer;
747
748/*** <<< CODE [OK-IntegerInRange1] >>> ***/
749
750int
Lev Walkin20696a42017-10-17 21:27:33 -0700751OK_IntegerInRange1_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000752 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000753 long value;
754
755 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700756 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000757 "%s: value not given (%s:%d)",
758 td->name, __FILE__, __LINE__);
759 return -1;
760 }
761
Lev Walkinc3f0b892005-08-14 02:40:04 +0000762 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000763
764 if((value >= -100 && value <= 100)) {
765 /* Constraint check succeeded */
766 return 0;
767 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700768 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000769 "%s: constraint failed (%s:%d)",
770 td->name, __FILE__, __LINE__);
771 return -1;
772 }
773}
774
775/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000776 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000777 * so here we adjust the DEF accordingly.
778 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000779
780/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
781
Lev Walkina7591b52014-10-12 18:37:35 -0700782static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000783 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
784};
785asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
786 "OK-IntegerInRange1",
787 "OK-IntegerInRange1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800788 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000789 asn_DEF_OK_IntegerInRange1_tags_1,
790 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
791 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
792 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
793 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
794 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700795 { 0, 0, OK_IntegerInRange1_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000796 0, 0, /* No members */
797 0 /* No specifics */
798};
799
800
801/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
802
Lev Walkinc3f0b892005-08-14 02:40:04 +0000803#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000804
805/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
806
Lev Walkinc3f0b892005-08-14 02:40:04 +0000807typedef long OK_IntegerInRange2_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000808
809/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
810
811extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
812asn_struct_free_f OK_IntegerInRange2_free;
813asn_struct_print_f OK_IntegerInRange2_print;
814asn_constr_check_f OK_IntegerInRange2_constraint;
815ber_type_decoder_f OK_IntegerInRange2_decode_ber;
816der_type_encoder_f OK_IntegerInRange2_encode_der;
817xer_type_decoder_f OK_IntegerInRange2_decode_xer;
818xer_type_encoder_f OK_IntegerInRange2_encode_xer;
819
820/*** <<< CODE [OK-IntegerInRange2] >>> ***/
821
822int
Lev Walkin20696a42017-10-17 21:27:33 -0700823OK_IntegerInRange2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000824 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000825 long value;
826
827 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700828 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000829 "%s: value not given (%s:%d)",
830 td->name, __FILE__, __LINE__);
831 return -1;
832 }
833
Lev Walkinc3f0b892005-08-14 02:40:04 +0000834 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000835
836 if(((value == -100) || (value == 100))) {
837 /* Constraint check succeeded */
838 return 0;
839 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700840 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000841 "%s: constraint failed (%s:%d)",
842 td->name, __FILE__, __LINE__);
843 return -1;
844 }
845}
846
847/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000848 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000849 * so here we adjust the DEF accordingly.
850 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000851
852/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
853
Lev Walkina7591b52014-10-12 18:37:35 -0700854static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000855 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
856};
857asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
858 "OK-IntegerInRange2",
859 "OK-IntegerInRange2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800860 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000861 asn_DEF_OK_IntegerInRange2_tags_1,
862 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
863 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
864 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
865 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
866 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700867 { 0, 0, OK_IntegerInRange2_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000868 0, 0, /* No members */
869 0 /* No specifics */
870};
871
872
873/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
874
Lev Walkinc3f0b892005-08-14 02:40:04 +0000875#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000876
877/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
878
Lev Walkinc3f0b892005-08-14 02:40:04 +0000879typedef long OK_IntegerInRange3_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000880
881/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
882
883extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
884asn_struct_free_f OK_IntegerInRange3_free;
885asn_struct_print_f OK_IntegerInRange3_print;
886asn_constr_check_f OK_IntegerInRange3_constraint;
887ber_type_decoder_f OK_IntegerInRange3_decode_ber;
888der_type_encoder_f OK_IntegerInRange3_encode_der;
889xer_type_decoder_f OK_IntegerInRange3_decode_xer;
890xer_type_encoder_f OK_IntegerInRange3_encode_xer;
891
892/*** <<< CODE [OK-IntegerInRange3] >>> ***/
893
894int
Lev Walkin20696a42017-10-17 21:27:33 -0700895OK_IntegerInRange3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000896 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000897 long value;
898
899 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700900 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000901 "%s: value not given (%s:%d)",
902 td->name, __FILE__, __LINE__);
903 return -1;
904 }
905
Lev Walkinc3f0b892005-08-14 02:40:04 +0000906 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000907
Lev Walkin63b41262007-11-06 01:48:46 +0000908 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000909 /* Constraint check succeeded */
910 return 0;
911 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700912 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000913 "%s: constraint failed (%s:%d)",
914 td->name, __FILE__, __LINE__);
915 return -1;
916 }
917}
918
919/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000920 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000921 * so here we adjust the DEF accordingly.
922 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000923
924/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
925
Lev Walkina7591b52014-10-12 18:37:35 -0700926static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000927 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
928};
929asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
930 "OK-IntegerInRange3",
931 "OK-IntegerInRange3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800932 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000933 asn_DEF_OK_IntegerInRange3_tags_1,
934 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
935 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
936 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
937 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
938 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -0700939 { 0, 0, OK_IntegerInRange3_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +0000940 0, 0, /* No members */
941 0 /* No specifics */
942};
943
944
945/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
946
Lev Walkinc3f0b892005-08-14 02:40:04 +0000947#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000948
949/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
950
Lev Walkinc3f0b892005-08-14 02:40:04 +0000951typedef long OK_IntegerInRange4_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000952
953/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
954
955extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
956asn_struct_free_f OK_IntegerInRange4_free;
957asn_struct_print_f OK_IntegerInRange4_print;
958asn_constr_check_f OK_IntegerInRange4_constraint;
959ber_type_decoder_f OK_IntegerInRange4_decode_ber;
960der_type_encoder_f OK_IntegerInRange4_encode_der;
961xer_type_decoder_f OK_IntegerInRange4_decode_xer;
962xer_type_encoder_f OK_IntegerInRange4_encode_xer;
963
964/*** <<< CODE [OK-IntegerInRange4] >>> ***/
965
966int
Lev Walkin20696a42017-10-17 21:27:33 -0700967OK_IntegerInRange4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000968 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000969 long value;
970
971 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700972 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000973 "%s: value not given (%s:%d)",
974 td->name, __FILE__, __LINE__);
975 return -1;
976 }
977
Lev Walkinc3f0b892005-08-14 02:40:04 +0000978 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000979
Lev Walkin63b41262007-11-06 01:48:46 +0000980 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000981 /* Constraint check succeeded */
982 return 0;
983 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700984 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000985 "%s: constraint failed (%s:%d)",
986 td->name, __FILE__, __LINE__);
987 return -1;
988 }
989}
990
991/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000992 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000993 * so here we adjust the DEF accordingly.
994 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000995
996/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
997
Lev Walkina7591b52014-10-12 18:37:35 -0700998static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000999 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1000};
1001asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1002 "OK-IntegerInRange4",
1003 "OK-IntegerInRange4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001004 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001005 asn_DEF_OK_IntegerInRange4_tags_1,
1006 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1007 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1008 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1009 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1010 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001011 { 0, 0, OK_IntegerInRange4_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +00001012 0, 0, /* No members */
1013 0 /* No specifics */
1014};
1015
1016
1017/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1018
Lev Walkin2a744a72013-03-27 01:56:23 -07001019#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001020
1021/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1022
Lev Walkin2a744a72013-03-27 01:56:23 -07001023typedef long OK_IntegerInRange5_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001024
1025/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1026
1027extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1028asn_struct_free_f OK_IntegerInRange5_free;
1029asn_struct_print_f OK_IntegerInRange5_print;
1030asn_constr_check_f OK_IntegerInRange5_constraint;
1031ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1032der_type_encoder_f OK_IntegerInRange5_encode_der;
1033xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1034xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1035
1036/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1037
1038int
Lev Walkin20696a42017-10-17 21:27:33 -07001039OK_IntegerInRange5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001040 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001041 long value;
1042
1043 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001044 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001045 "%s: value not given (%s:%d)",
1046 td->name, __FILE__, __LINE__);
1047 return -1;
1048 }
1049
Lev Walkin2a744a72013-03-27 01:56:23 -07001050 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001051
Lev Walkin63b41262007-11-06 01:48:46 +00001052 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001053 /* Constraint check succeeded */
1054 return 0;
1055 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001056 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001057 "%s: constraint failed (%s:%d)",
1058 td->name, __FILE__, __LINE__);
1059 return -1;
1060 }
1061}
1062
1063/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001064 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001065 * so here we adjust the DEF accordingly.
1066 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001067
1068/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1069
Lev Walkina7591b52014-10-12 18:37:35 -07001070static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001071 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1072};
1073asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1074 "OK-IntegerInRange5",
1075 "OK-IntegerInRange5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001076 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001077 asn_DEF_OK_IntegerInRange5_tags_1,
1078 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1079 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1080 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1081 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1082 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001083 { 0, 0, OK_IntegerInRange5_constraint },
Lev Walkin082cadc2005-08-14 02:18:27 +00001084 0, 0, /* No members */
1085 0 /* No specifics */
1086};
1087
Lev Walkinc3f0b892005-08-14 02:40:04 +00001088
Lev Walkinfee6f712005-08-27 03:13:51 +00001089/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1090
Lev Walkin8bb57a22007-12-03 13:41:36 +00001091#include <NativeInteger.h>
Lev Walkinfee6f712005-08-27 03:13:51 +00001092
1093/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1094
Lev Walkin8bb57a22007-12-03 13:41:36 +00001095typedef unsigned long NO_IntegerInRange6_t;
Lev Walkinfee6f712005-08-27 03:13:51 +00001096
1097/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1098
1099extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1100asn_struct_free_f NO_IntegerInRange6_free;
1101asn_struct_print_f NO_IntegerInRange6_print;
1102asn_constr_check_f NO_IntegerInRange6_constraint;
1103ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1104der_type_encoder_f NO_IntegerInRange6_encode_der;
1105xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1106xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1107
1108/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1109
1110int
Lev Walkin20696a42017-10-17 21:27:33 -07001111NO_IntegerInRange6_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001112 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinfee6f712005-08-27 03:13:51 +00001113
1114 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001115 ASN__CTFAIL(app_key, td, sptr,
Lev Walkinfee6f712005-08-27 03:13:51 +00001116 "%s: value not given (%s:%d)",
1117 td->name, __FILE__, __LINE__);
1118 return -1;
1119 }
1120
Lev Walkinfee6f712005-08-27 03:13:51 +00001121
Lev Walkin8bb57a22007-12-03 13:41:36 +00001122 /* Constraint check succeeded */
1123 return 0;
Lev Walkinfee6f712005-08-27 03:13:51 +00001124}
1125
1126/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001127 * This type is implemented using NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001128 * so here we adjust the DEF accordingly.
1129 */
Lev Walkinfee6f712005-08-27 03:13:51 +00001130
1131/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1132
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001133static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001134 0, 0, 0, 0, 0,
1135 0, /* Native long size */
1136 1 /* Unsigned representation */
1137};
Lev Walkina7591b52014-10-12 18:37:35 -07001138static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkinfee6f712005-08-27 03:13:51 +00001139 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1140};
1141asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1142 "NO-IntegerInRange6",
1143 "NO-IntegerInRange6",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001144 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001145 asn_DEF_NO_IntegerInRange6_tags_1,
1146 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1147 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1148 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1149 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1150 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001151 { 0, 0, NO_IntegerInRange6_constraint },
Lev Walkinfee6f712005-08-27 03:13:51 +00001152 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001153 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkinfee6f712005-08-27 03:13:51 +00001154};
1155
1156
Lev Walkinc3f0b892005-08-14 02:40:04 +00001157/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1158
Lev Walkin2a744a72013-03-27 01:56:23 -07001159#include <NativeInteger.h>
Lev Walkinc3f0b892005-08-14 02:40:04 +00001160
1161/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1162
1163typedef enum CN_IntegerEnumerated1 {
1164 CN_IntegerEnumerated1_a = 1,
1165 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001166} e_CN_IntegerEnumerated1;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001167
1168/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1169
Lev Walkin2a744a72013-03-27 01:56:23 -07001170typedef long CN_IntegerEnumerated1_t;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001171
1172/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1173
1174extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1175asn_struct_free_f CN_IntegerEnumerated1_free;
1176asn_struct_print_f CN_IntegerEnumerated1_print;
1177asn_constr_check_f CN_IntegerEnumerated1_constraint;
1178ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1179der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1180xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1181xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1182
1183/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1184
Lev Walkinc3f0b892005-08-14 02:40:04 +00001185/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001186 * This type is implemented using NativeInteger,
Lev Walkinc3f0b892005-08-14 02:40:04 +00001187 * so here we adjust the DEF accordingly.
1188 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001189
1190/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1191
Lev Walkina7591b52014-10-12 18:37:35 -07001192static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001193 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1194};
1195asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1196 "CN-IntegerEnumerated1",
1197 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001198 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001199 asn_DEF_CN_IntegerEnumerated1_tags_1,
1200 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1201 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1202 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1203 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1204 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001205 { 0, 0, NativeInteger_constraint },
Lev Walkinc3f0b892005-08-14 02:40:04 +00001206 0, 0, /* Defined elsewhere */
1207 0 /* No specifics */
1208};
1209
1210
1211/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1212
1213#include <INTEGER.h>
1214
1215/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1216
1217typedef enum NO_IntegerEnumerated2 {
1218 NO_IntegerEnumerated2_a = 1,
1219 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001220} e_NO_IntegerEnumerated2;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001221
1222/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1223
1224typedef INTEGER_t NO_IntegerEnumerated2_t;
1225
1226/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1227
1228extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1229asn_struct_free_f NO_IntegerEnumerated2_free;
1230asn_struct_print_f NO_IntegerEnumerated2_print;
1231asn_constr_check_f NO_IntegerEnumerated2_constraint;
1232ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1233der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1234xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1235xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1236
1237/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1238
Lev Walkinc3f0b892005-08-14 02:40:04 +00001239/*
1240 * This type is implemented using INTEGER,
1241 * so here we adjust the DEF accordingly.
1242 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001243
1244/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1245
Lev Walkina7591b52014-10-12 18:37:35 -07001246static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001247 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1248};
1249asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1250 "NO-IntegerEnumerated2",
1251 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001252 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +00001253 asn_DEF_NO_IntegerEnumerated2_tags_1,
1254 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1255 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1256 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1257 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1258 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkin0bfea562017-09-29 23:16:48 -07001259 { 0, 0, INTEGER_constraint },
Lev Walkinc3f0b892005-08-14 02:40:04 +00001260 0, 0, /* Defined elsewhere */
1261 0 /* No specifics */
1262};
1263