blob: 8339f07a8c7e0103030c1ad0247706a213fcde67 [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 */
Lev Walkin154519a2017-09-06 23:34:40 -070089 return td->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 Walkine0f2a5b2017-08-30 20:02:29 -0700359typedef unsigned 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 Walkine0f2a5b2017-08-30 20:02:29 -0700377 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000378
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 Walkine0f2a5b2017-08-30 20:02:29 -0700386 value = *(const unsigned 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 Walkine0f2a5b2017-08-30 20:02:29 -0700406static const asn_INTEGER_specifics_t asn_SPC_CN_IntegerLowMax_specs_1 = {
407 0, 0, 0, 0, 0,
408 0, /* Native long size */
409 1 /* Unsigned representation */
410};
Lev Walkina7591b52014-10-12 18:37:35 -0700411static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000412 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
413};
414asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
415 "CN-IntegerLowMax",
416 "CN-IntegerLowMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800417 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000418 CN_IntegerLowMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000419 asn_DEF_CN_IntegerLowMax_tags_1,
420 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
421 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
422 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
423 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
424 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400425 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000426 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000427 0, 0, /* No members */
Lev Walkine0f2a5b2017-08-30 20:02:29 -0700428 &asn_SPC_CN_IntegerLowMax_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000429};
430
431
432/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
433
434#include <INTEGER.h>
435
436/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
437
438typedef INTEGER_t NO_IntegerHighMax_t;
439
440/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
441
442extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
443asn_struct_free_f NO_IntegerHighMax_free;
444asn_struct_print_f NO_IntegerHighMax_print;
445asn_constr_check_f NO_IntegerHighMax_constraint;
446ber_type_decoder_f NO_IntegerHighMax_decode_ber;
447der_type_encoder_f NO_IntegerHighMax_encode_der;
448xer_type_decoder_f NO_IntegerHighMax_decode_xer;
449xer_type_encoder_f NO_IntegerHighMax_encode_xer;
450
451/*** <<< CODE [NO-IntegerHighMax] >>> ***/
452
453int
454NO_IntegerHighMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000455 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000456 const INTEGER_t *st = (const INTEGER_t *)sptr;
457 long value;
458
459 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700460 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000461 "%s: value not given (%s:%d)",
462 td->name, __FILE__, __LINE__);
463 return -1;
464 }
465
466 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700467 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000468 "%s: value too large (%s:%d)",
469 td->name, __FILE__, __LINE__);
470 return -1;
471 }
472
Lev Walkinc3f0b892005-08-14 02:40:04 +0000473 if((value >= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000474 /* Constraint check succeeded */
475 return 0;
476 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700477 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000478 "%s: constraint failed (%s:%d)",
479 td->name, __FILE__, __LINE__);
480 return -1;
481 }
482}
483
484/*
485 * This type is implemented using INTEGER,
486 * so here we adjust the DEF accordingly.
487 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000488
489/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
490
Lev Walkina7591b52014-10-12 18:37:35 -0700491static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000492 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
493};
494asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
495 "NO-IntegerHighMax",
496 "NO-IntegerHighMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800497 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000498 NO_IntegerHighMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000499 asn_DEF_NO_IntegerHighMax_tags_1,
500 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
501 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
502 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
503 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
504 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400505 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000506 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000507 0, 0, /* No members */
508 0 /* No specifics */
509};
510
511
512/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
513
514#include <INTEGER.h>
515
516/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
517
518typedef INTEGER_t NO_IntegerLowestMax_t;
519
520/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
521
522extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
523asn_struct_free_f NO_IntegerLowestMax_free;
524asn_struct_print_f NO_IntegerLowestMax_print;
525asn_constr_check_f NO_IntegerLowestMax_constraint;
526ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
527der_type_encoder_f NO_IntegerLowestMax_encode_der;
528xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
529xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
530
531/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
532
533int
534NO_IntegerLowestMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000535 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000536 const INTEGER_t *st = (const INTEGER_t *)sptr;
537 long value;
538
539 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700540 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000541 "%s: value not given (%s:%d)",
542 td->name, __FILE__, __LINE__);
543 return -1;
544 }
545
546 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700547 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000548 "%s: value too large (%s:%d)",
549 td->name, __FILE__, __LINE__);
550 return -1;
551 }
552
Lev Walkinc3f0b892005-08-14 02:40:04 +0000553 if((value >= -3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000554 /* Constraint check succeeded */
555 return 0;
556 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700557 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000558 "%s: constraint failed (%s:%d)",
559 td->name, __FILE__, __LINE__);
560 return -1;
561 }
562}
563
564/*
565 * This type is implemented using INTEGER,
566 * so here we adjust the DEF accordingly.
567 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000568
569/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
570
Lev Walkina7591b52014-10-12 18:37:35 -0700571static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000572 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
573};
574asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
575 "NO-IntegerLowestMax",
576 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800577 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000578 NO_IntegerLowestMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000579 asn_DEF_NO_IntegerLowestMax_tags_1,
580 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
581 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
582 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
583 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
584 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400585 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000586 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000587 0, 0, /* No members */
588 0 /* No specifics */
589};
590
591
592/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
593
Lev Walkin8bb57a22007-12-03 13:41:36 +0000594#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000595
596/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
597
Lev Walkin8bb57a22007-12-03 13:41:36 +0000598typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000599
600/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
601
602extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
603asn_struct_free_f NO_IntegerOutRange_free;
604asn_struct_print_f NO_IntegerOutRange_print;
605asn_constr_check_f NO_IntegerOutRange_constraint;
606ber_type_decoder_f NO_IntegerOutRange_decode_ber;
607der_type_encoder_f NO_IntegerOutRange_encode_der;
608xer_type_decoder_f NO_IntegerOutRange_decode_xer;
609xer_type_encoder_f NO_IntegerOutRange_encode_xer;
610
611/*** <<< CODE [NO-IntegerOutRange] >>> ***/
612
613int
614NO_IntegerOutRange_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000615 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000616 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000617
618 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700619 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000620 "%s: value not given (%s:%d)",
621 td->name, __FILE__, __LINE__);
622 return -1;
623 }
624
Lev Walkin8bb57a22007-12-03 13:41:36 +0000625 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000626
Lev Walkinc3f0b892005-08-14 02:40:04 +0000627 if((value >= 3000000000 && value <= 3000000001)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000628 /* Constraint check succeeded */
629 return 0;
630 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700631 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000632 "%s: constraint failed (%s:%d)",
633 td->name, __FILE__, __LINE__);
634 return -1;
635 }
636}
637
638/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000639 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000640 * so here we adjust the DEF accordingly.
641 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000642
643/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
644
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800645static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000646 0, 0, 0, 0, 0,
647 0, /* Native long size */
648 1 /* Unsigned representation */
649};
Lev Walkina7591b52014-10-12 18:37:35 -0700650static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000651 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
652};
653asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
654 "NO-IntegerOutRange",
655 "NO-IntegerOutRange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800656 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000657 NO_IntegerOutRange_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000658 asn_DEF_NO_IntegerOutRange_tags_1,
659 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
660 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
661 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
662 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
663 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400664 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000665 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000666 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000667 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000668};
669
670
671/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
672
Lev Walkin8bb57a22007-12-03 13:41:36 +0000673#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000674
675/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
676
Lev Walkin8bb57a22007-12-03 13:41:36 +0000677typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000678
679/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
680
681extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
682asn_struct_free_f NO_IntegerOutValue_free;
683asn_struct_print_f NO_IntegerOutValue_print;
684asn_constr_check_f NO_IntegerOutValue_constraint;
685ber_type_decoder_f NO_IntegerOutValue_decode_ber;
686der_type_encoder_f NO_IntegerOutValue_encode_der;
687xer_type_decoder_f NO_IntegerOutValue_decode_xer;
688xer_type_encoder_f NO_IntegerOutValue_encode_xer;
689
690/*** <<< CODE [NO-IntegerOutValue] >>> ***/
691
692int
693NO_IntegerOutValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000694 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000695 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000696
697 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700698 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000699 "%s: value not given (%s:%d)",
700 td->name, __FILE__, __LINE__);
701 return -1;
702 }
703
Lev Walkin8bb57a22007-12-03 13:41:36 +0000704 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000705
Lev Walkinc3f0b892005-08-14 02:40:04 +0000706 if((value == 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000707 /* Constraint check succeeded */
708 return 0;
709 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700710 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000711 "%s: constraint failed (%s:%d)",
712 td->name, __FILE__, __LINE__);
713 return -1;
714 }
715}
716
717/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000718 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000719 * so here we adjust the DEF accordingly.
720 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000721
722/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
723
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800724static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000725 0, 0, 0, 0, 0,
726 0, /* Native long size */
727 1 /* Unsigned representation */
728};
Lev Walkina7591b52014-10-12 18:37:35 -0700729static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000730 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
731};
732asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
733 "NO-IntegerOutValue",
734 "NO-IntegerOutValue",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800735 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000736 NO_IntegerOutValue_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000737 asn_DEF_NO_IntegerOutValue_tags_1,
738 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
739 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
740 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
741 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
742 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400743 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000744 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000745 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000746 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000747};
748
749
750/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
751
Lev Walkinc3f0b892005-08-14 02:40:04 +0000752#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000753
754/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
755
Lev Walkinc3f0b892005-08-14 02:40:04 +0000756typedef long OK_IntegerInRange1_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000757
758/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
759
760extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
761asn_struct_free_f OK_IntegerInRange1_free;
762asn_struct_print_f OK_IntegerInRange1_print;
763asn_constr_check_f OK_IntegerInRange1_constraint;
764ber_type_decoder_f OK_IntegerInRange1_decode_ber;
765der_type_encoder_f OK_IntegerInRange1_encode_der;
766xer_type_decoder_f OK_IntegerInRange1_decode_xer;
767xer_type_encoder_f OK_IntegerInRange1_encode_xer;
768
769/*** <<< CODE [OK-IntegerInRange1] >>> ***/
770
771int
772OK_IntegerInRange1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000773 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000774 long value;
775
776 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700777 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000778 "%s: value not given (%s:%d)",
779 td->name, __FILE__, __LINE__);
780 return -1;
781 }
782
Lev Walkinc3f0b892005-08-14 02:40:04 +0000783 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000784
785 if((value >= -100 && value <= 100)) {
786 /* Constraint check succeeded */
787 return 0;
788 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700789 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000790 "%s: constraint failed (%s:%d)",
791 td->name, __FILE__, __LINE__);
792 return -1;
793 }
794}
795
796/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000797 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000798 * so here we adjust the DEF accordingly.
799 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000800
801/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
802
Lev Walkina7591b52014-10-12 18:37:35 -0700803static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000804 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
805};
806asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
807 "OK-IntegerInRange1",
808 "OK-IntegerInRange1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800809 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000810 OK_IntegerInRange1_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000811 asn_DEF_OK_IntegerInRange1_tags_1,
812 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
813 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
814 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
815 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
816 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400817 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000818 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000819 0, 0, /* No members */
820 0 /* No specifics */
821};
822
823
824/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
825
Lev Walkinc3f0b892005-08-14 02:40:04 +0000826#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000827
828/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
829
Lev Walkinc3f0b892005-08-14 02:40:04 +0000830typedef long OK_IntegerInRange2_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000831
832/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
833
834extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
835asn_struct_free_f OK_IntegerInRange2_free;
836asn_struct_print_f OK_IntegerInRange2_print;
837asn_constr_check_f OK_IntegerInRange2_constraint;
838ber_type_decoder_f OK_IntegerInRange2_decode_ber;
839der_type_encoder_f OK_IntegerInRange2_encode_der;
840xer_type_decoder_f OK_IntegerInRange2_decode_xer;
841xer_type_encoder_f OK_IntegerInRange2_encode_xer;
842
843/*** <<< CODE [OK-IntegerInRange2] >>> ***/
844
845int
846OK_IntegerInRange2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000847 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000848 long value;
849
850 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700851 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000852 "%s: value not given (%s:%d)",
853 td->name, __FILE__, __LINE__);
854 return -1;
855 }
856
Lev Walkinc3f0b892005-08-14 02:40:04 +0000857 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000858
859 if(((value == -100) || (value == 100))) {
860 /* Constraint check succeeded */
861 return 0;
862 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700863 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000864 "%s: constraint failed (%s:%d)",
865 td->name, __FILE__, __LINE__);
866 return -1;
867 }
868}
869
870/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000871 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000872 * so here we adjust the DEF accordingly.
873 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000874
875/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
876
Lev Walkina7591b52014-10-12 18:37:35 -0700877static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000878 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
879};
880asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
881 "OK-IntegerInRange2",
882 "OK-IntegerInRange2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800883 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000884 OK_IntegerInRange2_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000885 asn_DEF_OK_IntegerInRange2_tags_1,
886 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
887 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
888 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
889 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
890 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400891 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000892 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000893 0, 0, /* No members */
894 0 /* No specifics */
895};
896
897
898/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
899
Lev Walkinc3f0b892005-08-14 02:40:04 +0000900#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000901
902/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
903
Lev Walkinc3f0b892005-08-14 02:40:04 +0000904typedef long OK_IntegerInRange3_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000905
906/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
907
908extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
909asn_struct_free_f OK_IntegerInRange3_free;
910asn_struct_print_f OK_IntegerInRange3_print;
911asn_constr_check_f OK_IntegerInRange3_constraint;
912ber_type_decoder_f OK_IntegerInRange3_decode_ber;
913der_type_encoder_f OK_IntegerInRange3_encode_der;
914xer_type_decoder_f OK_IntegerInRange3_decode_xer;
915xer_type_encoder_f OK_IntegerInRange3_encode_xer;
916
917/*** <<< CODE [OK-IntegerInRange3] >>> ***/
918
919int
920OK_IntegerInRange3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000921 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000922 long value;
923
924 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700925 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000926 "%s: value not given (%s:%d)",
927 td->name, __FILE__, __LINE__);
928 return -1;
929 }
930
Lev Walkinc3f0b892005-08-14 02:40:04 +0000931 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000932
Lev Walkin63b41262007-11-06 01:48:46 +0000933 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000934 /* Constraint check succeeded */
935 return 0;
936 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700937 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000938 "%s: constraint failed (%s:%d)",
939 td->name, __FILE__, __LINE__);
940 return -1;
941 }
942}
943
944/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000945 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000946 * so here we adjust the DEF accordingly.
947 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000948
949/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
950
Lev Walkina7591b52014-10-12 18:37:35 -0700951static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000952 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
953};
954asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
955 "OK-IntegerInRange3",
956 "OK-IntegerInRange3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800957 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000958 OK_IntegerInRange3_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000959 asn_DEF_OK_IntegerInRange3_tags_1,
960 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
961 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
962 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
963 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
964 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400965 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000966 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000967 0, 0, /* No members */
968 0 /* No specifics */
969};
970
971
972/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
973
Lev Walkinc3f0b892005-08-14 02:40:04 +0000974#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000975
976/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
977
Lev Walkinc3f0b892005-08-14 02:40:04 +0000978typedef long OK_IntegerInRange4_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000979
980/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
981
982extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
983asn_struct_free_f OK_IntegerInRange4_free;
984asn_struct_print_f OK_IntegerInRange4_print;
985asn_constr_check_f OK_IntegerInRange4_constraint;
986ber_type_decoder_f OK_IntegerInRange4_decode_ber;
987der_type_encoder_f OK_IntegerInRange4_encode_der;
988xer_type_decoder_f OK_IntegerInRange4_decode_xer;
989xer_type_encoder_f OK_IntegerInRange4_encode_xer;
990
991/*** <<< CODE [OK-IntegerInRange4] >>> ***/
992
993int
994OK_IntegerInRange4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000995 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000996 long value;
997
998 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700999 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001000 "%s: value not given (%s:%d)",
1001 td->name, __FILE__, __LINE__);
1002 return -1;
1003 }
1004
Lev Walkinc3f0b892005-08-14 02:40:04 +00001005 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001006
Lev Walkin63b41262007-11-06 01:48:46 +00001007 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001008 /* Constraint check succeeded */
1009 return 0;
1010 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001011 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001012 "%s: constraint failed (%s:%d)",
1013 td->name, __FILE__, __LINE__);
1014 return -1;
1015 }
1016}
1017
1018/*
Lev Walkinc3f0b892005-08-14 02:40:04 +00001019 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001020 * so here we adjust the DEF accordingly.
1021 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001022
1023/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
1024
Lev Walkina7591b52014-10-12 18:37:35 -07001025static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001026 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1027};
1028asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1029 "OK-IntegerInRange4",
1030 "OK-IntegerInRange4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001031 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001032 OK_IntegerInRange4_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001033 asn_DEF_OK_IntegerInRange4_tags_1,
1034 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1035 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1036 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1037 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1038 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001039 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001040 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001041 0, 0, /* No members */
1042 0 /* No specifics */
1043};
1044
1045
1046/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1047
Lev Walkin2a744a72013-03-27 01:56:23 -07001048#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001049
1050/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1051
Lev Walkin2a744a72013-03-27 01:56:23 -07001052typedef long OK_IntegerInRange5_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001053
1054/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1055
1056extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1057asn_struct_free_f OK_IntegerInRange5_free;
1058asn_struct_print_f OK_IntegerInRange5_print;
1059asn_constr_check_f OK_IntegerInRange5_constraint;
1060ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1061der_type_encoder_f OK_IntegerInRange5_encode_der;
1062xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1063xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1064
1065/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1066
1067int
1068OK_IntegerInRange5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001069 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001070 long value;
1071
1072 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001073 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001074 "%s: value not given (%s:%d)",
1075 td->name, __FILE__, __LINE__);
1076 return -1;
1077 }
1078
Lev Walkin2a744a72013-03-27 01:56:23 -07001079 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001080
Lev Walkin63b41262007-11-06 01:48:46 +00001081 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001082 /* Constraint check succeeded */
1083 return 0;
1084 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001085 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001086 "%s: constraint failed (%s:%d)",
1087 td->name, __FILE__, __LINE__);
1088 return -1;
1089 }
1090}
1091
1092/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001093 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001094 * so here we adjust the DEF accordingly.
1095 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001096
1097/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1098
Lev Walkina7591b52014-10-12 18:37:35 -07001099static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001100 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1101};
1102asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1103 "OK-IntegerInRange5",
1104 "OK-IntegerInRange5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001105 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001106 OK_IntegerInRange5_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001107 asn_DEF_OK_IntegerInRange5_tags_1,
1108 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1109 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1110 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1111 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1112 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001113 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001114 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001115 0, 0, /* No members */
1116 0 /* No specifics */
1117};
1118
Lev Walkinc3f0b892005-08-14 02:40:04 +00001119
Lev Walkinfee6f712005-08-27 03:13:51 +00001120/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1121
Lev Walkin8bb57a22007-12-03 13:41:36 +00001122#include <NativeInteger.h>
Lev Walkinfee6f712005-08-27 03:13:51 +00001123
1124/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1125
Lev Walkin8bb57a22007-12-03 13:41:36 +00001126typedef unsigned long NO_IntegerInRange6_t;
Lev Walkinfee6f712005-08-27 03:13:51 +00001127
1128/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1129
1130extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1131asn_struct_free_f NO_IntegerInRange6_free;
1132asn_struct_print_f NO_IntegerInRange6_print;
1133asn_constr_check_f NO_IntegerInRange6_constraint;
1134ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1135der_type_encoder_f NO_IntegerInRange6_encode_der;
1136xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1137xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1138
1139/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1140
1141int
1142NO_IntegerInRange6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001143 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinfee6f712005-08-27 03:13:51 +00001144
1145 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001146 ASN__CTFAIL(app_key, td, sptr,
Lev Walkinfee6f712005-08-27 03:13:51 +00001147 "%s: value not given (%s:%d)",
1148 td->name, __FILE__, __LINE__);
1149 return -1;
1150 }
1151
Lev Walkinfee6f712005-08-27 03:13:51 +00001152
Lev Walkin8bb57a22007-12-03 13:41:36 +00001153 /* Constraint check succeeded */
1154 return 0;
Lev Walkinfee6f712005-08-27 03:13:51 +00001155}
1156
1157/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001158 * This type is implemented using NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001159 * so here we adjust the DEF accordingly.
1160 */
Lev Walkinfee6f712005-08-27 03:13:51 +00001161
1162/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1163
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001164static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001165 0, 0, 0, 0, 0,
1166 0, /* Native long size */
1167 1 /* Unsigned representation */
1168};
Lev Walkina7591b52014-10-12 18:37:35 -07001169static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkinfee6f712005-08-27 03:13:51 +00001170 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1171};
1172asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1173 "NO-IntegerInRange6",
1174 "NO-IntegerInRange6",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001175 &asn_OP_NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001176 NO_IntegerInRange6_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001177 asn_DEF_NO_IntegerInRange6_tags_1,
1178 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1179 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1180 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1181 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1182 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001183 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001184 0, /* No PER visible constraints */
Lev Walkinfee6f712005-08-27 03:13:51 +00001185 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001186 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkinfee6f712005-08-27 03:13:51 +00001187};
1188
1189
Lev Walkinc3f0b892005-08-14 02:40:04 +00001190/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1191
Lev Walkin2a744a72013-03-27 01:56:23 -07001192#include <NativeInteger.h>
Lev Walkinc3f0b892005-08-14 02:40:04 +00001193
1194/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1195
1196typedef enum CN_IntegerEnumerated1 {
1197 CN_IntegerEnumerated1_a = 1,
1198 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001199} e_CN_IntegerEnumerated1;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001200
1201/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1202
Lev Walkin2a744a72013-03-27 01:56:23 -07001203typedef long CN_IntegerEnumerated1_t;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001204
1205/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1206
1207extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1208asn_struct_free_f CN_IntegerEnumerated1_free;
1209asn_struct_print_f CN_IntegerEnumerated1_print;
1210asn_constr_check_f CN_IntegerEnumerated1_constraint;
1211ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1212der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1213xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1214xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1215
1216/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1217
Lev Walkinc3f0b892005-08-14 02:40:04 +00001218/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001219 * This type is implemented using NativeInteger,
Lev Walkinc3f0b892005-08-14 02:40:04 +00001220 * so here we adjust the DEF accordingly.
1221 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001222
1223/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1224
Lev Walkina7591b52014-10-12 18:37:35 -07001225static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001226 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1227};
1228asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1229 "CN-IntegerEnumerated1",
1230 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001231 &asn_OP_NativeInteger,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001232 NativeInteger_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001233 asn_DEF_CN_IntegerEnumerated1_tags_1,
1234 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1235 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1236 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1237 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1238 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001239 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001240 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001241 0, 0, /* Defined elsewhere */
1242 0 /* No specifics */
1243};
1244
1245
1246/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1247
1248#include <INTEGER.h>
1249
1250/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1251
1252typedef enum NO_IntegerEnumerated2 {
1253 NO_IntegerEnumerated2_a = 1,
1254 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001255} e_NO_IntegerEnumerated2;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001256
1257/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1258
1259typedef INTEGER_t NO_IntegerEnumerated2_t;
1260
1261/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1262
1263extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1264asn_struct_free_f NO_IntegerEnumerated2_free;
1265asn_struct_print_f NO_IntegerEnumerated2_print;
1266asn_constr_check_f NO_IntegerEnumerated2_constraint;
1267ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1268der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1269xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1270xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1271
1272/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1273
Lev Walkinc3f0b892005-08-14 02:40:04 +00001274/*
1275 * This type is implemented using INTEGER,
1276 * so here we adjust the DEF accordingly.
1277 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001278
1279/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1280
Lev Walkina7591b52014-10-12 18:37:35 -07001281static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001282 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1283};
1284asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1285 "NO-IntegerEnumerated2",
1286 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001287 &asn_OP_INTEGER,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001288 INTEGER_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001289 asn_DEF_NO_IntegerEnumerated2_tags_1,
1290 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1291 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1292 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1293 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1294 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001295 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001296 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001297 0, 0, /* Defined elsewhere */
1298 0 /* No specifics */
1299};
1300