blob: 7b28052367125ad9928e2f767d4d4b164ebe130e [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,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080037 NativeInteger_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +000038 asn_DEF_CN_IntegerUnlimited_tags_1,
39 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
40 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
41 asn_DEF_CN_IntegerUnlimited_tags_1, /* Same as above */
42 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
43 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040044 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000045 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +000046 0, 0, /* No members */
47 0 /* No specifics */
48};
49
50
51/*** <<< INCLUDES [CN-IntegerMinMax] >>> ***/
52
Lev Walkin2a744a72013-03-27 01:56:23 -070053#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +000054
55/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
56
Lev Walkin2a744a72013-03-27 01:56:23 -070057typedef long CN_IntegerMinMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +000058
59/*** <<< FUNC-DECLS [CN-IntegerMinMax] >>> ***/
60
61extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax;
62asn_struct_free_f CN_IntegerMinMax_free;
63asn_struct_print_f CN_IntegerMinMax_print;
64asn_constr_check_f CN_IntegerMinMax_constraint;
65ber_type_decoder_f CN_IntegerMinMax_decode_ber;
66der_type_encoder_f CN_IntegerMinMax_encode_der;
67xer_type_decoder_f CN_IntegerMinMax_decode_xer;
68xer_type_encoder_f CN_IntegerMinMax_encode_xer;
69
70/*** <<< CODE [CN-IntegerMinMax] >>> ***/
71
72int
73CN_IntegerMinMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000074 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +000075
76 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070077 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +000078 "%s: value not given (%s:%d)",
79 td->name, __FILE__, __LINE__);
80 return -1;
81 }
82
83
84 if(1 /* No applicable constraints whatsoever */) {
85 /* Nothing is here. See below */
86 }
87
88 /* Replace with underlying type checker */
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080089 return td->op->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin082cadc2005-08-14 02:18:27 +000090}
91
92/*
Lev Walkin2a744a72013-03-27 01:56:23 -070093 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +000094 * so here we adjust the DEF accordingly.
95 */
Lev Walkin082cadc2005-08-14 02:18:27 +000096
97/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
98
Lev Walkina7591b52014-10-12 18:37:35 -070099static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000100 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
101};
102asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
103 "CN-IntegerMinMax",
104 "CN-IntegerMinMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800105 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000106 CN_IntegerMinMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000107 asn_DEF_CN_IntegerMinMax_tags_1,
108 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
109 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
110 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
111 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
112 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400113 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000114 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000115 0, 0, /* No members */
116 0 /* No specifics */
117};
118
119
120/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
121
Lev Walkin2a744a72013-03-27 01:56:23 -0700122#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000123
124/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
125
Lev Walkin2a744a72013-03-27 01:56:23 -0700126typedef long CN_IntegerMinLow_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000127
128/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
129
130extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
131asn_struct_free_f CN_IntegerMinLow_free;
132asn_struct_print_f CN_IntegerMinLow_print;
133asn_constr_check_f CN_IntegerMinLow_constraint;
134ber_type_decoder_f CN_IntegerMinLow_decode_ber;
135der_type_encoder_f CN_IntegerMinLow_encode_der;
136xer_type_decoder_f CN_IntegerMinLow_decode_xer;
137xer_type_encoder_f CN_IntegerMinLow_encode_xer;
138
139/*** <<< CODE [CN-IntegerMinLow] >>> ***/
140
141int
142CN_IntegerMinLow_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000143 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000144 long value;
145
146 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700147 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000148 "%s: value not given (%s:%d)",
149 td->name, __FILE__, __LINE__);
150 return -1;
151 }
152
Lev Walkin2a744a72013-03-27 01:56:23 -0700153 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000154
155 if((value <= 1)) {
156 /* Constraint check succeeded */
157 return 0;
158 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700159 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000160 "%s: constraint failed (%s:%d)",
161 td->name, __FILE__, __LINE__);
162 return -1;
163 }
164}
165
166/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700167 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000168 * so here we adjust the DEF accordingly.
169 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000170
171/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
172
Lev Walkina7591b52014-10-12 18:37:35 -0700173static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000174 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
175};
176asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
177 "CN-IntegerMinLow",
178 "CN-IntegerMinLow",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800179 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000180 CN_IntegerMinLow_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000181 asn_DEF_CN_IntegerMinLow_tags_1,
182 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
183 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
184 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
185 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
186 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400187 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000188 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000189 0, 0, /* No members */
190 0 /* No specifics */
191};
192
193
194/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
195
196#include <INTEGER.h>
197
198/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
199
200typedef INTEGER_t NO_IntegerMinHigh_t;
201
202/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
203
204extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
205asn_struct_free_f NO_IntegerMinHigh_free;
206asn_struct_print_f NO_IntegerMinHigh_print;
207asn_constr_check_f NO_IntegerMinHigh_constraint;
208ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
209der_type_encoder_f NO_IntegerMinHigh_encode_der;
210xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
211xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
212
213/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
214
215int
216NO_IntegerMinHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000217 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000218 const INTEGER_t *st = (const INTEGER_t *)sptr;
219 long value;
220
221 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700222 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000223 "%s: value not given (%s:%d)",
224 td->name, __FILE__, __LINE__);
225 return -1;
226 }
227
228 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700229 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000230 "%s: value too large (%s:%d)",
231 td->name, __FILE__, __LINE__);
232 return -1;
233 }
234
Lev Walkinc3f0b892005-08-14 02:40:04 +0000235 if((value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000236 /* Constraint check succeeded */
237 return 0;
238 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700239 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000240 "%s: constraint failed (%s:%d)",
241 td->name, __FILE__, __LINE__);
242 return -1;
243 }
244}
245
246/*
247 * This type is implemented using INTEGER,
248 * so here we adjust the DEF accordingly.
249 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000250
251/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
252
Lev Walkina7591b52014-10-12 18:37:35 -0700253static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000254 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
255};
256asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
257 "NO-IntegerMinHigh",
258 "NO-IntegerMinHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800259 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000260 NO_IntegerMinHigh_constraint,
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 Walkinb33425f2017-07-14 14:59:52 +0400267 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000268 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000269 0, 0, /* No members */
270 0 /* No specifics */
271};
272
273
274/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
275
Lev Walkin8bb57a22007-12-03 13:41:36 +0000276#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000277
278/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
279
Lev Walkin8bb57a22007-12-03 13:41:36 +0000280typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000281
282/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
283
284extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
285asn_struct_free_f NO_IntegerLowHigh_free;
286asn_struct_print_f NO_IntegerLowHigh_print;
287asn_constr_check_f NO_IntegerLowHigh_constraint;
288ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
289der_type_encoder_f NO_IntegerLowHigh_encode_der;
290xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
291xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
292
293/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
294
295int
296NO_IntegerLowHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000297 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000298 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000299
300 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700301 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000302 "%s: value not given (%s:%d)",
303 td->name, __FILE__, __LINE__);
304 return -1;
305 }
306
Lev Walkin8bb57a22007-12-03 13:41:36 +0000307 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000308
Lev Walkinc3f0b892005-08-14 02:40:04 +0000309 if((value >= 1 && value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000310 /* Constraint check succeeded */
311 return 0;
312 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700313 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000314 "%s: constraint failed (%s:%d)",
315 td->name, __FILE__, __LINE__);
316 return -1;
317 }
318}
319
320/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000321 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000322 * so here we adjust the DEF accordingly.
323 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000324
325/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
326
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800327static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000328 0, 0, 0, 0, 0,
329 0, /* Native long size */
330 1 /* Unsigned representation */
331};
Lev Walkina7591b52014-10-12 18:37:35 -0700332static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000333 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
334};
335asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
336 "NO-IntegerLowHigh",
337 "NO-IntegerLowHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800338 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000339 NO_IntegerLowHigh_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000340 asn_DEF_NO_IntegerLowHigh_tags_1,
341 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
342 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
343 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
344 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
345 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400346 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000347 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000348 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000349 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000350};
351
352
353/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
354
Lev Walkin2a744a72013-03-27 01:56:23 -0700355#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000356
357/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
358
Lev Walkin2a744a72013-03-27 01:56:23 -0700359typedef long CN_IntegerLowMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000360
361/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
362
363extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
364asn_struct_free_f CN_IntegerLowMax_free;
365asn_struct_print_f CN_IntegerLowMax_print;
366asn_constr_check_f CN_IntegerLowMax_constraint;
367ber_type_decoder_f CN_IntegerLowMax_decode_ber;
368der_type_encoder_f CN_IntegerLowMax_encode_der;
369xer_type_decoder_f CN_IntegerLowMax_decode_xer;
370xer_type_encoder_f CN_IntegerLowMax_encode_xer;
371
372/*** <<< CODE [CN-IntegerLowMax] >>> ***/
373
374int
375CN_IntegerLowMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000376 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000377 long value;
378
379 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700380 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000381 "%s: value not given (%s:%d)",
382 td->name, __FILE__, __LINE__);
383 return -1;
384 }
385
Lev Walkin2a744a72013-03-27 01:56:23 -0700386 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000387
388 if((value >= 1)) {
389 /* Constraint check succeeded */
390 return 0;
391 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700392 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000393 "%s: constraint failed (%s:%d)",
394 td->name, __FILE__, __LINE__);
395 return -1;
396 }
397}
398
399/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700400 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000401 * so here we adjust the DEF accordingly.
402 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000403
404/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
405
Lev Walkina7591b52014-10-12 18:37:35 -0700406static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000407 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
408};
409asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
410 "CN-IntegerLowMax",
411 "CN-IntegerLowMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800412 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000413 CN_IntegerLowMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000414 asn_DEF_CN_IntegerLowMax_tags_1,
415 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
416 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
417 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
418 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
419 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400420 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000421 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000422 0, 0, /* No members */
423 0 /* No specifics */
424};
425
426
427/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
428
429#include <INTEGER.h>
430
431/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
432
433typedef INTEGER_t NO_IntegerHighMax_t;
434
435/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
436
437extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
438asn_struct_free_f NO_IntegerHighMax_free;
439asn_struct_print_f NO_IntegerHighMax_print;
440asn_constr_check_f NO_IntegerHighMax_constraint;
441ber_type_decoder_f NO_IntegerHighMax_decode_ber;
442der_type_encoder_f NO_IntegerHighMax_encode_der;
443xer_type_decoder_f NO_IntegerHighMax_decode_xer;
444xer_type_encoder_f NO_IntegerHighMax_encode_xer;
445
446/*** <<< CODE [NO-IntegerHighMax] >>> ***/
447
448int
449NO_IntegerHighMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000450 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000451 const INTEGER_t *st = (const INTEGER_t *)sptr;
452 long value;
453
454 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700455 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000456 "%s: value not given (%s:%d)",
457 td->name, __FILE__, __LINE__);
458 return -1;
459 }
460
461 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700462 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000463 "%s: value too large (%s:%d)",
464 td->name, __FILE__, __LINE__);
465 return -1;
466 }
467
Lev Walkinc3f0b892005-08-14 02:40:04 +0000468 if((value >= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000469 /* Constraint check succeeded */
470 return 0;
471 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700472 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000473 "%s: constraint failed (%s:%d)",
474 td->name, __FILE__, __LINE__);
475 return -1;
476 }
477}
478
479/*
480 * This type is implemented using INTEGER,
481 * so here we adjust the DEF accordingly.
482 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000483
484/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
485
Lev Walkina7591b52014-10-12 18:37:35 -0700486static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000487 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
488};
489asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
490 "NO-IntegerHighMax",
491 "NO-IntegerHighMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800492 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000493 NO_IntegerHighMax_constraint,
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 Walkinb33425f2017-07-14 14:59:52 +0400500 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000501 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000502 0, 0, /* No members */
503 0 /* No specifics */
504};
505
506
507/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
508
509#include <INTEGER.h>
510
511/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
512
513typedef INTEGER_t NO_IntegerLowestMax_t;
514
515/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
516
517extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
518asn_struct_free_f NO_IntegerLowestMax_free;
519asn_struct_print_f NO_IntegerLowestMax_print;
520asn_constr_check_f NO_IntegerLowestMax_constraint;
521ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
522der_type_encoder_f NO_IntegerLowestMax_encode_der;
523xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
524xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
525
526/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
527
528int
529NO_IntegerLowestMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000530 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000531 const INTEGER_t *st = (const INTEGER_t *)sptr;
532 long value;
533
534 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700535 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000536 "%s: value not given (%s:%d)",
537 td->name, __FILE__, __LINE__);
538 return -1;
539 }
540
541 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700542 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000543 "%s: value too large (%s:%d)",
544 td->name, __FILE__, __LINE__);
545 return -1;
546 }
547
Lev Walkinc3f0b892005-08-14 02:40:04 +0000548 if((value >= -3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000549 /* Constraint check succeeded */
550 return 0;
551 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700552 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000553 "%s: constraint failed (%s:%d)",
554 td->name, __FILE__, __LINE__);
555 return -1;
556 }
557}
558
559/*
560 * This type is implemented using INTEGER,
561 * so here we adjust the DEF accordingly.
562 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000563
564/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
565
Lev Walkina7591b52014-10-12 18:37:35 -0700566static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000567 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
568};
569asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
570 "NO-IntegerLowestMax",
571 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800572 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000573 NO_IntegerLowestMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000574 asn_DEF_NO_IntegerLowestMax_tags_1,
575 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
576 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
577 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
578 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
579 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400580 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000581 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000582 0, 0, /* No members */
583 0 /* No specifics */
584};
585
586
587/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
588
Lev Walkin8bb57a22007-12-03 13:41:36 +0000589#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000590
591/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
592
Lev Walkin8bb57a22007-12-03 13:41:36 +0000593typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000594
595/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
596
597extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
598asn_struct_free_f NO_IntegerOutRange_free;
599asn_struct_print_f NO_IntegerOutRange_print;
600asn_constr_check_f NO_IntegerOutRange_constraint;
601ber_type_decoder_f NO_IntegerOutRange_decode_ber;
602der_type_encoder_f NO_IntegerOutRange_encode_der;
603xer_type_decoder_f NO_IntegerOutRange_decode_xer;
604xer_type_encoder_f NO_IntegerOutRange_encode_xer;
605
606/*** <<< CODE [NO-IntegerOutRange] >>> ***/
607
608int
609NO_IntegerOutRange_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000610 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000611 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000612
613 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700614 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000615 "%s: value not given (%s:%d)",
616 td->name, __FILE__, __LINE__);
617 return -1;
618 }
619
Lev Walkin8bb57a22007-12-03 13:41:36 +0000620 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000621
Lev Walkinc3f0b892005-08-14 02:40:04 +0000622 if((value >= 3000000000 && value <= 3000000001)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000623 /* Constraint check succeeded */
624 return 0;
625 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700626 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000627 "%s: constraint failed (%s:%d)",
628 td->name, __FILE__, __LINE__);
629 return -1;
630 }
631}
632
633/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000634 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000635 * so here we adjust the DEF accordingly.
636 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000637
638/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
639
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800640static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000641 0, 0, 0, 0, 0,
642 0, /* Native long size */
643 1 /* Unsigned representation */
644};
Lev Walkina7591b52014-10-12 18:37:35 -0700645static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000646 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
647};
648asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
649 "NO-IntegerOutRange",
650 "NO-IntegerOutRange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800651 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000652 NO_IntegerOutRange_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000653 asn_DEF_NO_IntegerOutRange_tags_1,
654 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
655 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
656 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
657 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
658 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400659 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000660 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000661 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000662 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000663};
664
665
666/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
667
Lev Walkin8bb57a22007-12-03 13:41:36 +0000668#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000669
670/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
671
Lev Walkin8bb57a22007-12-03 13:41:36 +0000672typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000673
674/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
675
676extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
677asn_struct_free_f NO_IntegerOutValue_free;
678asn_struct_print_f NO_IntegerOutValue_print;
679asn_constr_check_f NO_IntegerOutValue_constraint;
680ber_type_decoder_f NO_IntegerOutValue_decode_ber;
681der_type_encoder_f NO_IntegerOutValue_encode_der;
682xer_type_decoder_f NO_IntegerOutValue_decode_xer;
683xer_type_encoder_f NO_IntegerOutValue_encode_xer;
684
685/*** <<< CODE [NO-IntegerOutValue] >>> ***/
686
687int
688NO_IntegerOutValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000689 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000690 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000691
692 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700693 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000694 "%s: value not given (%s:%d)",
695 td->name, __FILE__, __LINE__);
696 return -1;
697 }
698
Lev Walkin8bb57a22007-12-03 13:41:36 +0000699 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000700
Lev Walkinc3f0b892005-08-14 02:40:04 +0000701 if((value == 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000702 /* Constraint check succeeded */
703 return 0;
704 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700705 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000706 "%s: constraint failed (%s:%d)",
707 td->name, __FILE__, __LINE__);
708 return -1;
709 }
710}
711
712/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000713 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000714 * so here we adjust the DEF accordingly.
715 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000716
717/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
718
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800719static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000720 0, 0, 0, 0, 0,
721 0, /* Native long size */
722 1 /* Unsigned representation */
723};
Lev Walkina7591b52014-10-12 18:37:35 -0700724static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000725 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
726};
727asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
728 "NO-IntegerOutValue",
729 "NO-IntegerOutValue",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800730 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000731 NO_IntegerOutValue_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000732 asn_DEF_NO_IntegerOutValue_tags_1,
733 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
734 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
735 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
736 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
737 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400738 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000739 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000740 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000741 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000742};
743
744
745/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
746
Lev Walkinc3f0b892005-08-14 02:40:04 +0000747#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000748
749/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
750
Lev Walkinc3f0b892005-08-14 02:40:04 +0000751typedef long OK_IntegerInRange1_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000752
753/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
754
755extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
756asn_struct_free_f OK_IntegerInRange1_free;
757asn_struct_print_f OK_IntegerInRange1_print;
758asn_constr_check_f OK_IntegerInRange1_constraint;
759ber_type_decoder_f OK_IntegerInRange1_decode_ber;
760der_type_encoder_f OK_IntegerInRange1_encode_der;
761xer_type_decoder_f OK_IntegerInRange1_decode_xer;
762xer_type_encoder_f OK_IntegerInRange1_encode_xer;
763
764/*** <<< CODE [OK-IntegerInRange1] >>> ***/
765
766int
767OK_IntegerInRange1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000768 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000769 long value;
770
771 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700772 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000773 "%s: value not given (%s:%d)",
774 td->name, __FILE__, __LINE__);
775 return -1;
776 }
777
Lev Walkinc3f0b892005-08-14 02:40:04 +0000778 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000779
780 if((value >= -100 && value <= 100)) {
781 /* Constraint check succeeded */
782 return 0;
783 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700784 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000785 "%s: constraint failed (%s:%d)",
786 td->name, __FILE__, __LINE__);
787 return -1;
788 }
789}
790
791/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000792 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000793 * so here we adjust the DEF accordingly.
794 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000795
796/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
797
Lev Walkina7591b52014-10-12 18:37:35 -0700798static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000799 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
800};
801asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
802 "OK-IntegerInRange1",
803 "OK-IntegerInRange1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800804 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000805 OK_IntegerInRange1_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000806 asn_DEF_OK_IntegerInRange1_tags_1,
807 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
808 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
809 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
810 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
811 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400812 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000813 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000814 0, 0, /* No members */
815 0 /* No specifics */
816};
817
818
819/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
820
Lev Walkinc3f0b892005-08-14 02:40:04 +0000821#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000822
823/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
824
Lev Walkinc3f0b892005-08-14 02:40:04 +0000825typedef long OK_IntegerInRange2_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000826
827/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
828
829extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
830asn_struct_free_f OK_IntegerInRange2_free;
831asn_struct_print_f OK_IntegerInRange2_print;
832asn_constr_check_f OK_IntegerInRange2_constraint;
833ber_type_decoder_f OK_IntegerInRange2_decode_ber;
834der_type_encoder_f OK_IntegerInRange2_encode_der;
835xer_type_decoder_f OK_IntegerInRange2_decode_xer;
836xer_type_encoder_f OK_IntegerInRange2_encode_xer;
837
838/*** <<< CODE [OK-IntegerInRange2] >>> ***/
839
840int
841OK_IntegerInRange2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000842 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000843 long value;
844
845 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700846 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000847 "%s: value not given (%s:%d)",
848 td->name, __FILE__, __LINE__);
849 return -1;
850 }
851
Lev Walkinc3f0b892005-08-14 02:40:04 +0000852 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000853
854 if(((value == -100) || (value == 100))) {
855 /* Constraint check succeeded */
856 return 0;
857 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700858 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000859 "%s: constraint failed (%s:%d)",
860 td->name, __FILE__, __LINE__);
861 return -1;
862 }
863}
864
865/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000866 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000867 * so here we adjust the DEF accordingly.
868 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000869
870/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
871
Lev Walkina7591b52014-10-12 18:37:35 -0700872static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000873 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
874};
875asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
876 "OK-IntegerInRange2",
877 "OK-IntegerInRange2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800878 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000879 OK_IntegerInRange2_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000880 asn_DEF_OK_IntegerInRange2_tags_1,
881 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
882 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
883 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
884 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
885 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400886 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000887 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000888 0, 0, /* No members */
889 0 /* No specifics */
890};
891
892
893/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
894
Lev Walkinc3f0b892005-08-14 02:40:04 +0000895#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000896
897/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
898
Lev Walkinc3f0b892005-08-14 02:40:04 +0000899typedef long OK_IntegerInRange3_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000900
901/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
902
903extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
904asn_struct_free_f OK_IntegerInRange3_free;
905asn_struct_print_f OK_IntegerInRange3_print;
906asn_constr_check_f OK_IntegerInRange3_constraint;
907ber_type_decoder_f OK_IntegerInRange3_decode_ber;
908der_type_encoder_f OK_IntegerInRange3_encode_der;
909xer_type_decoder_f OK_IntegerInRange3_decode_xer;
910xer_type_encoder_f OK_IntegerInRange3_encode_xer;
911
912/*** <<< CODE [OK-IntegerInRange3] >>> ***/
913
914int
915OK_IntegerInRange3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000916 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000917 long value;
918
919 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700920 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000921 "%s: value not given (%s:%d)",
922 td->name, __FILE__, __LINE__);
923 return -1;
924 }
925
Lev Walkinc3f0b892005-08-14 02:40:04 +0000926 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000927
Lev Walkin63b41262007-11-06 01:48:46 +0000928 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000929 /* Constraint check succeeded */
930 return 0;
931 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700932 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000933 "%s: constraint failed (%s:%d)",
934 td->name, __FILE__, __LINE__);
935 return -1;
936 }
937}
938
939/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000940 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000941 * so here we adjust the DEF accordingly.
942 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000943
944/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
945
Lev Walkina7591b52014-10-12 18:37:35 -0700946static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000947 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
948};
949asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
950 "OK-IntegerInRange3",
951 "OK-IntegerInRange3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800952 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000953 OK_IntegerInRange3_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000954 asn_DEF_OK_IntegerInRange3_tags_1,
955 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
956 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
957 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
958 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
959 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400960 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000961 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000962 0, 0, /* No members */
963 0 /* No specifics */
964};
965
966
967/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
968
Lev Walkinc3f0b892005-08-14 02:40:04 +0000969#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000970
971/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
972
Lev Walkinc3f0b892005-08-14 02:40:04 +0000973typedef long OK_IntegerInRange4_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000974
975/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
976
977extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
978asn_struct_free_f OK_IntegerInRange4_free;
979asn_struct_print_f OK_IntegerInRange4_print;
980asn_constr_check_f OK_IntegerInRange4_constraint;
981ber_type_decoder_f OK_IntegerInRange4_decode_ber;
982der_type_encoder_f OK_IntegerInRange4_encode_der;
983xer_type_decoder_f OK_IntegerInRange4_decode_xer;
984xer_type_encoder_f OK_IntegerInRange4_encode_xer;
985
986/*** <<< CODE [OK-IntegerInRange4] >>> ***/
987
988int
989OK_IntegerInRange4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000990 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000991 long value;
992
993 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700994 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000995 "%s: value not given (%s:%d)",
996 td->name, __FILE__, __LINE__);
997 return -1;
998 }
999
Lev Walkinc3f0b892005-08-14 02:40:04 +00001000 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001001
Lev Walkin63b41262007-11-06 01:48:46 +00001002 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001003 /* Constraint check succeeded */
1004 return 0;
1005 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001006 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001007 "%s: constraint failed (%s:%d)",
1008 td->name, __FILE__, __LINE__);
1009 return -1;
1010 }
1011}
1012
1013/*
Lev Walkinc3f0b892005-08-14 02:40:04 +00001014 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001015 * so here we adjust the DEF accordingly.
1016 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001017
1018/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
1019
Lev Walkina7591b52014-10-12 18:37:35 -07001020static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001021 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1022};
1023asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1024 "OK-IntegerInRange4",
1025 "OK-IntegerInRange4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001026 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001027 OK_IntegerInRange4_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001028 asn_DEF_OK_IntegerInRange4_tags_1,
1029 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1030 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1031 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1032 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1033 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001034 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001035 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001036 0, 0, /* No members */
1037 0 /* No specifics */
1038};
1039
1040
1041/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1042
Lev Walkin2a744a72013-03-27 01:56:23 -07001043#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001044
1045/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1046
Lev Walkin2a744a72013-03-27 01:56:23 -07001047typedef long OK_IntegerInRange5_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001048
1049/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1050
1051extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1052asn_struct_free_f OK_IntegerInRange5_free;
1053asn_struct_print_f OK_IntegerInRange5_print;
1054asn_constr_check_f OK_IntegerInRange5_constraint;
1055ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1056der_type_encoder_f OK_IntegerInRange5_encode_der;
1057xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1058xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1059
1060/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1061
1062int
1063OK_IntegerInRange5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001064 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001065 long value;
1066
1067 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001068 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001069 "%s: value not given (%s:%d)",
1070 td->name, __FILE__, __LINE__);
1071 return -1;
1072 }
1073
Lev Walkin2a744a72013-03-27 01:56:23 -07001074 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001075
Lev Walkin63b41262007-11-06 01:48:46 +00001076 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001077 /* Constraint check succeeded */
1078 return 0;
1079 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001080 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001081 "%s: constraint failed (%s:%d)",
1082 td->name, __FILE__, __LINE__);
1083 return -1;
1084 }
1085}
1086
1087/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001088 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001089 * so here we adjust the DEF accordingly.
1090 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001091
1092/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1093
Lev Walkina7591b52014-10-12 18:37:35 -07001094static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001095 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1096};
1097asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1098 "OK-IntegerInRange5",
1099 "OK-IntegerInRange5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001100 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001101 OK_IntegerInRange5_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001102 asn_DEF_OK_IntegerInRange5_tags_1,
1103 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1104 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1105 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1106 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1107 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001108 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001109 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001110 0, 0, /* No members */
1111 0 /* No specifics */
1112};
1113
Lev Walkinc3f0b892005-08-14 02:40:04 +00001114
Lev Walkinfee6f712005-08-27 03:13:51 +00001115/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1116
Lev Walkin8bb57a22007-12-03 13:41:36 +00001117#include <NativeInteger.h>
Lev Walkinfee6f712005-08-27 03:13:51 +00001118
1119/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1120
Lev Walkin8bb57a22007-12-03 13:41:36 +00001121typedef unsigned long NO_IntegerInRange6_t;
Lev Walkinfee6f712005-08-27 03:13:51 +00001122
1123/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1124
1125extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1126asn_struct_free_f NO_IntegerInRange6_free;
1127asn_struct_print_f NO_IntegerInRange6_print;
1128asn_constr_check_f NO_IntegerInRange6_constraint;
1129ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1130der_type_encoder_f NO_IntegerInRange6_encode_der;
1131xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1132xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1133
1134/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1135
1136int
1137NO_IntegerInRange6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001138 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinfee6f712005-08-27 03:13:51 +00001139
1140 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001141 ASN__CTFAIL(app_key, td, sptr,
Lev Walkinfee6f712005-08-27 03:13:51 +00001142 "%s: value not given (%s:%d)",
1143 td->name, __FILE__, __LINE__);
1144 return -1;
1145 }
1146
Lev Walkinfee6f712005-08-27 03:13:51 +00001147
Lev Walkin8bb57a22007-12-03 13:41:36 +00001148 /* Constraint check succeeded */
1149 return 0;
Lev Walkinfee6f712005-08-27 03:13:51 +00001150}
1151
1152/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001153 * This type is implemented using NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001154 * so here we adjust the DEF accordingly.
1155 */
Lev Walkinfee6f712005-08-27 03:13:51 +00001156
1157/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1158
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001159static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001160 0, 0, 0, 0, 0,
1161 0, /* Native long size */
1162 1 /* Unsigned representation */
1163};
Lev Walkina7591b52014-10-12 18:37:35 -07001164static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkinfee6f712005-08-27 03:13:51 +00001165 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1166};
1167asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1168 "NO-IntegerInRange6",
1169 "NO-IntegerInRange6",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001170 &asn_OP_NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001171 NO_IntegerInRange6_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001172 asn_DEF_NO_IntegerInRange6_tags_1,
1173 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1174 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1175 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1176 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1177 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001178 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001179 0, /* No PER visible constraints */
Lev Walkinfee6f712005-08-27 03:13:51 +00001180 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001181 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkinfee6f712005-08-27 03:13:51 +00001182};
1183
1184
Lev Walkinc3f0b892005-08-14 02:40:04 +00001185/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1186
Lev Walkin2a744a72013-03-27 01:56:23 -07001187#include <NativeInteger.h>
Lev Walkinc3f0b892005-08-14 02:40:04 +00001188
1189/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1190
1191typedef enum CN_IntegerEnumerated1 {
1192 CN_IntegerEnumerated1_a = 1,
1193 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001194} e_CN_IntegerEnumerated1;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001195
1196/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1197
Lev Walkin2a744a72013-03-27 01:56:23 -07001198typedef long CN_IntegerEnumerated1_t;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001199
1200/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1201
1202extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1203asn_struct_free_f CN_IntegerEnumerated1_free;
1204asn_struct_print_f CN_IntegerEnumerated1_print;
1205asn_constr_check_f CN_IntegerEnumerated1_constraint;
1206ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1207der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1208xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1209xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1210
1211/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1212
Lev Walkinc3f0b892005-08-14 02:40:04 +00001213/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001214 * This type is implemented using NativeInteger,
Lev Walkinc3f0b892005-08-14 02:40:04 +00001215 * so here we adjust the DEF accordingly.
1216 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001217
1218/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1219
Lev Walkina7591b52014-10-12 18:37:35 -07001220static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001221 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1222};
1223asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1224 "CN-IntegerEnumerated1",
1225 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001226 &asn_OP_NativeInteger,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001227 NativeInteger_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001228 asn_DEF_CN_IntegerEnumerated1_tags_1,
1229 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1230 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1231 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1232 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1233 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001234 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001235 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001236 0, 0, /* Defined elsewhere */
1237 0 /* No specifics */
1238};
1239
1240
1241/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1242
1243#include <INTEGER.h>
1244
1245/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1246
1247typedef enum NO_IntegerEnumerated2 {
1248 NO_IntegerEnumerated2_a = 1,
1249 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001250} e_NO_IntegerEnumerated2;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001251
1252/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1253
1254typedef INTEGER_t NO_IntegerEnumerated2_t;
1255
1256/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1257
1258extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1259asn_struct_free_f NO_IntegerEnumerated2_free;
1260asn_struct_print_f NO_IntegerEnumerated2_print;
1261asn_constr_check_f NO_IntegerEnumerated2_constraint;
1262ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1263der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1264xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1265xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1266
1267/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1268
Lev Walkinc3f0b892005-08-14 02:40:04 +00001269/*
1270 * This type is implemented using INTEGER,
1271 * so here we adjust the DEF accordingly.
1272 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001273
1274/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1275
Lev Walkina7591b52014-10-12 18:37:35 -07001276static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001277 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1278};
1279asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1280 "NO-IntegerEnumerated2",
1281 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001282 &asn_OP_INTEGER,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001283 INTEGER_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001284 asn_DEF_NO_IntegerEnumerated2_tags_1,
1285 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1286 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1287 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1288 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1289 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001290 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001291 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001292 0, 0, /* Defined elsewhere */
1293 0 /* No specifics */
1294};
1295