blob: 85146a2801b5637185ed7c3b2b2a8ce1246a2aee [file] [log] [blame]
Lev Walkin082cadc2005-08-14 02:18:27 +00001
2/*** <<< INCLUDES [CN-IntegerUnlimited] >>> ***/
3
Lev Walkin2a744a72013-03-27 01:56:23 -07004#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00005
6/*** <<< TYPE-DECLS [CN-IntegerUnlimited] >>> ***/
7
Lev Walkin2a744a72013-03-27 01:56:23 -07008typedef INTEGER_t CN_IntegerUnlimited_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00009
10/*** <<< FUNC-DECLS [CN-IntegerUnlimited] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited;
13asn_struct_free_f CN_IntegerUnlimited_free;
14asn_struct_print_f CN_IntegerUnlimited_print;
15asn_constr_check_f CN_IntegerUnlimited_constraint;
16ber_type_decoder_f CN_IntegerUnlimited_decode_ber;
17der_type_encoder_f CN_IntegerUnlimited_encode_der;
18xer_type_decoder_f CN_IntegerUnlimited_decode_xer;
19xer_type_encoder_f CN_IntegerUnlimited_encode_xer;
20
21/*** <<< CODE [CN-IntegerUnlimited] >>> ***/
22
Lev Walkin082cadc2005-08-14 02:18:27 +000023/*
Lev Walkin2a744a72013-03-27 01:56:23 -070024 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +000025 * so here we adjust the DEF accordingly.
26 */
Lev Walkin082cadc2005-08-14 02:18:27 +000027
28/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
29
Lev Walkina7591b52014-10-12 18:37:35 -070030static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +000031 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
32};
33asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
34 "CN-IntegerUnlimited",
35 "CN-IntegerUnlimited",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080036 &asn_OP_INTEGER,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080037 INTEGER_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 <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +000054
55/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
56
Lev Walkin2a744a72013-03-27 01:56:23 -070057typedef INTEGER_t 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 Walkin2a744a72013-03-27 01:56:23 -070075 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +000076
77 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070078 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +000079 "%s: value not given (%s:%d)",
80 td->name, __FILE__, __LINE__);
81 return -1;
82 }
83
84
85 if(1 /* No applicable constraints whatsoever */) {
johvikbd3dea92017-05-09 10:20:51 +020086 (void)st; /* Unused variable */
Lev Walkin082cadc2005-08-14 02:18:27 +000087 /* Nothing is here. See below */
88 }
89
90 /* Replace with underlying type checker */
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080091 return td->op->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin082cadc2005-08-14 02:18:27 +000092}
93
94/*
Lev Walkin2a744a72013-03-27 01:56:23 -070095 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +000096 * so here we adjust the DEF accordingly.
97 */
Lev Walkin082cadc2005-08-14 02:18:27 +000098
99/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
100
Lev Walkina7591b52014-10-12 18:37:35 -0700101static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000102 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
103};
104asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
105 "CN-IntegerMinMax",
106 "CN-IntegerMinMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800107 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000108 CN_IntegerMinMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000109 asn_DEF_CN_IntegerMinMax_tags_1,
110 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
111 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
112 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
113 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
114 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400115 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000116 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000117 0, 0, /* No members */
118 0 /* No specifics */
119};
120
121
122/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
123
Lev Walkin2a744a72013-03-27 01:56:23 -0700124#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000125
126/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
127
Lev Walkin2a744a72013-03-27 01:56:23 -0700128typedef INTEGER_t CN_IntegerMinLow_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000129
130/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
131
132extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
133asn_struct_free_f CN_IntegerMinLow_free;
134asn_struct_print_f CN_IntegerMinLow_print;
135asn_constr_check_f CN_IntegerMinLow_constraint;
136ber_type_decoder_f CN_IntegerMinLow_decode_ber;
137der_type_encoder_f CN_IntegerMinLow_encode_der;
138xer_type_decoder_f CN_IntegerMinLow_decode_xer;
139xer_type_encoder_f CN_IntegerMinLow_encode_xer;
140
141/*** <<< CODE [CN-IntegerMinLow] >>> ***/
142
143int
144CN_IntegerMinLow_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000145 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2a744a72013-03-27 01:56:23 -0700146 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000147 long value;
148
149 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700150 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000151 "%s: value not given (%s:%d)",
152 td->name, __FILE__, __LINE__);
153 return -1;
154 }
155
Lev Walkin2a744a72013-03-27 01:56:23 -0700156 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700157 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin2a744a72013-03-27 01:56:23 -0700158 "%s: value too large (%s:%d)",
159 td->name, __FILE__, __LINE__);
160 return -1;
161 }
Lev Walkin082cadc2005-08-14 02:18:27 +0000162
163 if((value <= 1)) {
164 /* Constraint check succeeded */
165 return 0;
166 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700167 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000168 "%s: constraint failed (%s:%d)",
169 td->name, __FILE__, __LINE__);
170 return -1;
171 }
172}
173
174/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700175 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000176 * so here we adjust the DEF accordingly.
177 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000178
179/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
180
Lev Walkina7591b52014-10-12 18:37:35 -0700181static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000182 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
183};
184asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
185 "CN-IntegerMinLow",
186 "CN-IntegerMinLow",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800187 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000188 CN_IntegerMinLow_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000189 asn_DEF_CN_IntegerMinLow_tags_1,
190 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
191 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
192 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
193 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
194 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400195 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000196 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000197 0, 0, /* No members */
198 0 /* No specifics */
199};
200
201
202/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
203
204#include <INTEGER.h>
205
206/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
207
208typedef INTEGER_t NO_IntegerMinHigh_t;
209
210/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
211
212extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
213asn_struct_free_f NO_IntegerMinHigh_free;
214asn_struct_print_f NO_IntegerMinHigh_print;
215asn_constr_check_f NO_IntegerMinHigh_constraint;
216ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
217der_type_encoder_f NO_IntegerMinHigh_encode_der;
218xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
219xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
220
221/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
222
223int
224NO_IntegerMinHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000225 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000226 const INTEGER_t *st = (const INTEGER_t *)sptr;
227 long value;
228
229 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700230 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000231 "%s: value not given (%s:%d)",
232 td->name, __FILE__, __LINE__);
233 return -1;
234 }
235
236 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700237 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000238 "%s: value too large (%s:%d)",
239 td->name, __FILE__, __LINE__);
240 return -1;
241 }
242
Lev Walkinc3f0b892005-08-14 02:40:04 +0000243 if((value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000244 /* Constraint check succeeded */
245 return 0;
246 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700247 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000248 "%s: constraint failed (%s:%d)",
249 td->name, __FILE__, __LINE__);
250 return -1;
251 }
252}
253
254/*
255 * This type is implemented using INTEGER,
256 * so here we adjust the DEF accordingly.
257 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000258
259/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
260
Lev Walkina7591b52014-10-12 18:37:35 -0700261static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000262 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
263};
264asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
265 "NO-IntegerMinHigh",
266 "NO-IntegerMinHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800267 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000268 NO_IntegerMinHigh_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000269 asn_DEF_NO_IntegerMinHigh_tags_1,
270 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
271 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
272 asn_DEF_NO_IntegerMinHigh_tags_1, /* Same as above */
273 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
274 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400275 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000276 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000277 0, 0, /* No members */
278 0 /* No specifics */
279};
280
281
282/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
283
Lev Walkin8bb57a22007-12-03 13:41:36 +0000284#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000285
286/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
287
Lev Walkin8bb57a22007-12-03 13:41:36 +0000288typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000289
290/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
291
292extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
293asn_struct_free_f NO_IntegerLowHigh_free;
294asn_struct_print_f NO_IntegerLowHigh_print;
295asn_constr_check_f NO_IntegerLowHigh_constraint;
296ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
297der_type_encoder_f NO_IntegerLowHigh_encode_der;
298xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
299xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
300
301/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
302
303int
304NO_IntegerLowHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000305 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000306 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000307
308 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700309 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000310 "%s: value not given (%s:%d)",
311 td->name, __FILE__, __LINE__);
312 return -1;
313 }
314
Lev Walkin8bb57a22007-12-03 13:41:36 +0000315 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000316
Lev Walkinc3f0b892005-08-14 02:40:04 +0000317 if((value >= 1 && value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000318 /* Constraint check succeeded */
319 return 0;
320 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700321 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000322 "%s: constraint failed (%s:%d)",
323 td->name, __FILE__, __LINE__);
324 return -1;
325 }
326}
327
328/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000329 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000330 * so here we adjust the DEF accordingly.
331 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000332
333/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
334
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800335static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000336 0, 0, 0, 0, 0,
337 0, /* Native long size */
338 1 /* Unsigned representation */
339};
Lev Walkina7591b52014-10-12 18:37:35 -0700340static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000341 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
342};
343asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
344 "NO-IntegerLowHigh",
345 "NO-IntegerLowHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800346 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000347 NO_IntegerLowHigh_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000348 asn_DEF_NO_IntegerLowHigh_tags_1,
349 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
350 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
351 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
352 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
353 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400354 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000355 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000356 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000357 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000358};
359
360
361/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
362
Lev Walkin2a744a72013-03-27 01:56:23 -0700363#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000364
365/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
366
Lev Walkin2a744a72013-03-27 01:56:23 -0700367typedef INTEGER_t CN_IntegerLowMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000368
369/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
370
371extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
372asn_struct_free_f CN_IntegerLowMax_free;
373asn_struct_print_f CN_IntegerLowMax_print;
374asn_constr_check_f CN_IntegerLowMax_constraint;
375ber_type_decoder_f CN_IntegerLowMax_decode_ber;
376der_type_encoder_f CN_IntegerLowMax_encode_der;
377xer_type_decoder_f CN_IntegerLowMax_decode_xer;
378xer_type_encoder_f CN_IntegerLowMax_encode_xer;
379
380/*** <<< CODE [CN-IntegerLowMax] >>> ***/
381
382int
383CN_IntegerLowMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000384 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2a744a72013-03-27 01:56:23 -0700385 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000386 long value;
387
388 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700389 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000390 "%s: value not given (%s:%d)",
391 td->name, __FILE__, __LINE__);
392 return -1;
393 }
394
Lev Walkin2a744a72013-03-27 01:56:23 -0700395 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700396 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin2a744a72013-03-27 01:56:23 -0700397 "%s: value too large (%s:%d)",
398 td->name, __FILE__, __LINE__);
399 return -1;
400 }
Lev Walkin082cadc2005-08-14 02:18:27 +0000401
402 if((value >= 1)) {
403 /* Constraint check succeeded */
404 return 0;
405 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700406 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000407 "%s: constraint failed (%s:%d)",
408 td->name, __FILE__, __LINE__);
409 return -1;
410 }
411}
412
413/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700414 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000415 * so here we adjust the DEF accordingly.
416 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000417
418/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
419
Lev Walkina7591b52014-10-12 18:37:35 -0700420static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000421 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
422};
423asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
424 "CN-IntegerLowMax",
425 "CN-IntegerLowMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800426 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000427 CN_IntegerLowMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000428 asn_DEF_CN_IntegerLowMax_tags_1,
429 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
430 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
431 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
432 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
433 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400434 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000435 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000436 0, 0, /* No members */
437 0 /* No specifics */
438};
439
440
441/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
442
443#include <INTEGER.h>
444
445/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
446
447typedef INTEGER_t NO_IntegerHighMax_t;
448
449/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
450
451extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
452asn_struct_free_f NO_IntegerHighMax_free;
453asn_struct_print_f NO_IntegerHighMax_print;
454asn_constr_check_f NO_IntegerHighMax_constraint;
455ber_type_decoder_f NO_IntegerHighMax_decode_ber;
456der_type_encoder_f NO_IntegerHighMax_encode_der;
457xer_type_decoder_f NO_IntegerHighMax_decode_xer;
458xer_type_encoder_f NO_IntegerHighMax_encode_xer;
459
460/*** <<< CODE [NO-IntegerHighMax] >>> ***/
461
462int
463NO_IntegerHighMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000464 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000465 const INTEGER_t *st = (const INTEGER_t *)sptr;
466 long value;
467
468 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700469 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000470 "%s: value not given (%s:%d)",
471 td->name, __FILE__, __LINE__);
472 return -1;
473 }
474
475 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700476 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000477 "%s: value too large (%s:%d)",
478 td->name, __FILE__, __LINE__);
479 return -1;
480 }
481
Lev Walkinc3f0b892005-08-14 02:40:04 +0000482 if((value >= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000483 /* Constraint check succeeded */
484 return 0;
485 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700486 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000487 "%s: constraint failed (%s:%d)",
488 td->name, __FILE__, __LINE__);
489 return -1;
490 }
491}
492
493/*
494 * This type is implemented using INTEGER,
495 * so here we adjust the DEF accordingly.
496 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000497
498/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
499
Lev Walkina7591b52014-10-12 18:37:35 -0700500static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000501 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
502};
503asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
504 "NO-IntegerHighMax",
505 "NO-IntegerHighMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800506 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000507 NO_IntegerHighMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000508 asn_DEF_NO_IntegerHighMax_tags_1,
509 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
510 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
511 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
512 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
513 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400514 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000515 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000516 0, 0, /* No members */
517 0 /* No specifics */
518};
519
520
521/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
522
523#include <INTEGER.h>
524
525/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
526
527typedef INTEGER_t NO_IntegerLowestMax_t;
528
529/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
530
531extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
532asn_struct_free_f NO_IntegerLowestMax_free;
533asn_struct_print_f NO_IntegerLowestMax_print;
534asn_constr_check_f NO_IntegerLowestMax_constraint;
535ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
536der_type_encoder_f NO_IntegerLowestMax_encode_der;
537xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
538xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
539
540/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
541
542int
543NO_IntegerLowestMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000544 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000545 const INTEGER_t *st = (const INTEGER_t *)sptr;
546 long value;
547
548 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700549 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000550 "%s: value not given (%s:%d)",
551 td->name, __FILE__, __LINE__);
552 return -1;
553 }
554
555 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700556 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000557 "%s: value too large (%s:%d)",
558 td->name, __FILE__, __LINE__);
559 return -1;
560 }
561
Lev Walkinc3f0b892005-08-14 02:40:04 +0000562 if((value >= -3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000563 /* Constraint check succeeded */
564 return 0;
565 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700566 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000567 "%s: constraint failed (%s:%d)",
568 td->name, __FILE__, __LINE__);
569 return -1;
570 }
571}
572
573/*
574 * This type is implemented using INTEGER,
575 * so here we adjust the DEF accordingly.
576 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000577
578/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
579
Lev Walkina7591b52014-10-12 18:37:35 -0700580static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000581 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
582};
583asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
584 "NO-IntegerLowestMax",
585 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800586 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +0000587 NO_IntegerLowestMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000588 asn_DEF_NO_IntegerLowestMax_tags_1,
589 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
590 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
591 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
592 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
593 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400594 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000595 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000596 0, 0, /* No members */
597 0 /* No specifics */
598};
599
600
601/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
602
Lev Walkin8bb57a22007-12-03 13:41:36 +0000603#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000604
605/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
606
Lev Walkin8bb57a22007-12-03 13:41:36 +0000607typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000608
609/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
610
611extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
612asn_struct_free_f NO_IntegerOutRange_free;
613asn_struct_print_f NO_IntegerOutRange_print;
614asn_constr_check_f NO_IntegerOutRange_constraint;
615ber_type_decoder_f NO_IntegerOutRange_decode_ber;
616der_type_encoder_f NO_IntegerOutRange_encode_der;
617xer_type_decoder_f NO_IntegerOutRange_decode_xer;
618xer_type_encoder_f NO_IntegerOutRange_encode_xer;
619
620/*** <<< CODE [NO-IntegerOutRange] >>> ***/
621
622int
623NO_IntegerOutRange_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000624 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000625 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000626
627 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700628 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000629 "%s: value not given (%s:%d)",
630 td->name, __FILE__, __LINE__);
631 return -1;
632 }
633
Lev Walkin8bb57a22007-12-03 13:41:36 +0000634 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000635
Lev Walkinc3f0b892005-08-14 02:40:04 +0000636 if((value >= 3000000000 && value <= 3000000001)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000637 /* Constraint check succeeded */
638 return 0;
639 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700640 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000641 "%s: constraint failed (%s:%d)",
642 td->name, __FILE__, __LINE__);
643 return -1;
644 }
645}
646
647/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000648 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000649 * so here we adjust the DEF accordingly.
650 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000651
652/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
653
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800654static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000655 0, 0, 0, 0, 0,
656 0, /* Native long size */
657 1 /* Unsigned representation */
658};
Lev Walkina7591b52014-10-12 18:37:35 -0700659static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000660 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
661};
662asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
663 "NO-IntegerOutRange",
664 "NO-IntegerOutRange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800665 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000666 NO_IntegerOutRange_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000667 asn_DEF_NO_IntegerOutRange_tags_1,
668 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
669 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
670 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
671 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
672 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400673 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000674 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000675 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000676 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000677};
678
679
680/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
681
Lev Walkin8bb57a22007-12-03 13:41:36 +0000682#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000683
684/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
685
Lev Walkin8bb57a22007-12-03 13:41:36 +0000686typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000687
688/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
689
690extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
691asn_struct_free_f NO_IntegerOutValue_free;
692asn_struct_print_f NO_IntegerOutValue_print;
693asn_constr_check_f NO_IntegerOutValue_constraint;
694ber_type_decoder_f NO_IntegerOutValue_decode_ber;
695der_type_encoder_f NO_IntegerOutValue_encode_der;
696xer_type_decoder_f NO_IntegerOutValue_decode_xer;
697xer_type_encoder_f NO_IntegerOutValue_encode_xer;
698
699/*** <<< CODE [NO-IntegerOutValue] >>> ***/
700
701int
702NO_IntegerOutValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000703 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000704 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000705
706 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700707 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000708 "%s: value not given (%s:%d)",
709 td->name, __FILE__, __LINE__);
710 return -1;
711 }
712
Lev Walkin8bb57a22007-12-03 13:41:36 +0000713 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000714
Lev Walkinc3f0b892005-08-14 02:40:04 +0000715 if((value == 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000716 /* Constraint check succeeded */
717 return 0;
718 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700719 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000720 "%s: constraint failed (%s:%d)",
721 td->name, __FILE__, __LINE__);
722 return -1;
723 }
724}
725
726/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000727 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000728 * so here we adjust the DEF accordingly.
729 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000730
731/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
732
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800733static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000734 0, 0, 0, 0, 0,
735 0, /* Native long size */
736 1 /* Unsigned representation */
737};
Lev Walkina7591b52014-10-12 18:37:35 -0700738static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000739 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
740};
741asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
742 "NO-IntegerOutValue",
743 "NO-IntegerOutValue",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800744 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000745 NO_IntegerOutValue_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000746 asn_DEF_NO_IntegerOutValue_tags_1,
747 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
748 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
749 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
750 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
751 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400752 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000753 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000754 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000755 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000756};
757
758
759/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
760
Lev Walkinc3f0b892005-08-14 02:40:04 +0000761#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000762
763/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
764
Lev Walkinc3f0b892005-08-14 02:40:04 +0000765typedef long OK_IntegerInRange1_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000766
767/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
768
769extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
770asn_struct_free_f OK_IntegerInRange1_free;
771asn_struct_print_f OK_IntegerInRange1_print;
772asn_constr_check_f OK_IntegerInRange1_constraint;
773ber_type_decoder_f OK_IntegerInRange1_decode_ber;
774der_type_encoder_f OK_IntegerInRange1_encode_der;
775xer_type_decoder_f OK_IntegerInRange1_decode_xer;
776xer_type_encoder_f OK_IntegerInRange1_encode_xer;
777
778/*** <<< CODE [OK-IntegerInRange1] >>> ***/
779
780int
781OK_IntegerInRange1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000782 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000783 long value;
784
785 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700786 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000787 "%s: value not given (%s:%d)",
788 td->name, __FILE__, __LINE__);
789 return -1;
790 }
791
Lev Walkinc3f0b892005-08-14 02:40:04 +0000792 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000793
794 if((value >= -100 && value <= 100)) {
795 /* Constraint check succeeded */
796 return 0;
797 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700798 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000799 "%s: constraint failed (%s:%d)",
800 td->name, __FILE__, __LINE__);
801 return -1;
802 }
803}
804
805/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000806 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000807 * so here we adjust the DEF accordingly.
808 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000809
810/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
811
Lev Walkina7591b52014-10-12 18:37:35 -0700812static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000813 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
814};
815asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
816 "OK-IntegerInRange1",
817 "OK-IntegerInRange1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800818 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000819 OK_IntegerInRange1_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000820 asn_DEF_OK_IntegerInRange1_tags_1,
821 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
822 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
823 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
824 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
825 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400826 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000827 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000828 0, 0, /* No members */
829 0 /* No specifics */
830};
831
832
833/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
834
Lev Walkinc3f0b892005-08-14 02:40:04 +0000835#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000836
837/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
838
Lev Walkinc3f0b892005-08-14 02:40:04 +0000839typedef long OK_IntegerInRange2_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000840
841/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
842
843extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
844asn_struct_free_f OK_IntegerInRange2_free;
845asn_struct_print_f OK_IntegerInRange2_print;
846asn_constr_check_f OK_IntegerInRange2_constraint;
847ber_type_decoder_f OK_IntegerInRange2_decode_ber;
848der_type_encoder_f OK_IntegerInRange2_encode_der;
849xer_type_decoder_f OK_IntegerInRange2_decode_xer;
850xer_type_encoder_f OK_IntegerInRange2_encode_xer;
851
852/*** <<< CODE [OK-IntegerInRange2] >>> ***/
853
854int
855OK_IntegerInRange2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000856 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000857 long value;
858
859 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700860 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000861 "%s: value not given (%s:%d)",
862 td->name, __FILE__, __LINE__);
863 return -1;
864 }
865
Lev Walkinc3f0b892005-08-14 02:40:04 +0000866 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000867
868 if(((value == -100) || (value == 100))) {
869 /* Constraint check succeeded */
870 return 0;
871 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700872 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000873 "%s: constraint failed (%s:%d)",
874 td->name, __FILE__, __LINE__);
875 return -1;
876 }
877}
878
879/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000880 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000881 * so here we adjust the DEF accordingly.
882 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000883
884/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
885
Lev Walkina7591b52014-10-12 18:37:35 -0700886static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000887 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
888};
889asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
890 "OK-IntegerInRange2",
891 "OK-IntegerInRange2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800892 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000893 OK_IntegerInRange2_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000894 asn_DEF_OK_IntegerInRange2_tags_1,
895 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
896 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
897 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
898 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
899 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400900 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000901 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000902 0, 0, /* No members */
903 0 /* No specifics */
904};
905
906
907/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
908
Lev Walkinc3f0b892005-08-14 02:40:04 +0000909#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000910
911/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
912
Lev Walkinc3f0b892005-08-14 02:40:04 +0000913typedef long OK_IntegerInRange3_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000914
915/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
916
917extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
918asn_struct_free_f OK_IntegerInRange3_free;
919asn_struct_print_f OK_IntegerInRange3_print;
920asn_constr_check_f OK_IntegerInRange3_constraint;
921ber_type_decoder_f OK_IntegerInRange3_decode_ber;
922der_type_encoder_f OK_IntegerInRange3_encode_der;
923xer_type_decoder_f OK_IntegerInRange3_decode_xer;
924xer_type_encoder_f OK_IntegerInRange3_encode_xer;
925
926/*** <<< CODE [OK-IntegerInRange3] >>> ***/
927
928int
929OK_IntegerInRange3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000930 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000931 long value;
932
933 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700934 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000935 "%s: value not given (%s:%d)",
936 td->name, __FILE__, __LINE__);
937 return -1;
938 }
939
Lev Walkinc3f0b892005-08-14 02:40:04 +0000940 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000941
Lev Walkin63b41262007-11-06 01:48:46 +0000942 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000943 /* Constraint check succeeded */
944 return 0;
945 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700946 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000947 "%s: constraint failed (%s:%d)",
948 td->name, __FILE__, __LINE__);
949 return -1;
950 }
951}
952
953/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000954 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000955 * so here we adjust the DEF accordingly.
956 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000957
958/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
959
Lev Walkina7591b52014-10-12 18:37:35 -0700960static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000961 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
962};
963asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
964 "OK-IntegerInRange3",
965 "OK-IntegerInRange3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800966 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000967 OK_IntegerInRange3_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000968 asn_DEF_OK_IntegerInRange3_tags_1,
969 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
970 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
971 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
972 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
973 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400974 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000975 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000976 0, 0, /* No members */
977 0 /* No specifics */
978};
979
980
981/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
982
Lev Walkinc3f0b892005-08-14 02:40:04 +0000983#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000984
985/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
986
Lev Walkinc3f0b892005-08-14 02:40:04 +0000987typedef long OK_IntegerInRange4_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000988
989/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
990
991extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
992asn_struct_free_f OK_IntegerInRange4_free;
993asn_struct_print_f OK_IntegerInRange4_print;
994asn_constr_check_f OK_IntegerInRange4_constraint;
995ber_type_decoder_f OK_IntegerInRange4_decode_ber;
996der_type_encoder_f OK_IntegerInRange4_encode_der;
997xer_type_decoder_f OK_IntegerInRange4_decode_xer;
998xer_type_encoder_f OK_IntegerInRange4_encode_xer;
999
1000/*** <<< CODE [OK-IntegerInRange4] >>> ***/
1001
1002int
1003OK_IntegerInRange4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001004 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001005 long value;
1006
1007 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001008 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001009 "%s: value not given (%s:%d)",
1010 td->name, __FILE__, __LINE__);
1011 return -1;
1012 }
1013
Lev Walkinc3f0b892005-08-14 02:40:04 +00001014 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001015
Lev Walkin63b41262007-11-06 01:48:46 +00001016 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001017 /* Constraint check succeeded */
1018 return 0;
1019 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001020 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001021 "%s: constraint failed (%s:%d)",
1022 td->name, __FILE__, __LINE__);
1023 return -1;
1024 }
1025}
1026
1027/*
Lev Walkinc3f0b892005-08-14 02:40:04 +00001028 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001029 * so here we adjust the DEF accordingly.
1030 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001031
1032/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
1033
Lev Walkina7591b52014-10-12 18:37:35 -07001034static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001035 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1036};
1037asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1038 "OK-IntegerInRange4",
1039 "OK-IntegerInRange4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001040 &asn_OP_NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001041 OK_IntegerInRange4_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001042 asn_DEF_OK_IntegerInRange4_tags_1,
1043 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1044 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1045 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1046 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1047 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001048 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001049 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001050 0, 0, /* No members */
1051 0 /* No specifics */
1052};
1053
1054
1055/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1056
Lev Walkin2a744a72013-03-27 01:56:23 -07001057#include <INTEGER.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001058
1059/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1060
Lev Walkin2a744a72013-03-27 01:56:23 -07001061typedef INTEGER_t OK_IntegerInRange5_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001062
1063/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1064
1065extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1066asn_struct_free_f OK_IntegerInRange5_free;
1067asn_struct_print_f OK_IntegerInRange5_print;
1068asn_constr_check_f OK_IntegerInRange5_constraint;
1069ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1070der_type_encoder_f OK_IntegerInRange5_encode_der;
1071xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1072xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1073
1074/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1075
1076int
1077OK_IntegerInRange5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001078 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin2a744a72013-03-27 01:56:23 -07001079 const INTEGER_t *st = (const INTEGER_t *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001080 long value;
1081
1082 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001083 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001084 "%s: value not given (%s:%d)",
1085 td->name, __FILE__, __LINE__);
1086 return -1;
1087 }
1088
Lev Walkin2a744a72013-03-27 01:56:23 -07001089 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001090 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin2a744a72013-03-27 01:56:23 -07001091 "%s: value too large (%s:%d)",
1092 td->name, __FILE__, __LINE__);
1093 return -1;
1094 }
Lev Walkin082cadc2005-08-14 02:18:27 +00001095
Lev Walkin63b41262007-11-06 01:48:46 +00001096 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001097 /* Constraint check succeeded */
1098 return 0;
1099 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001100 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001101 "%s: constraint failed (%s:%d)",
1102 td->name, __FILE__, __LINE__);
1103 return -1;
1104 }
1105}
1106
1107/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001108 * This type is implemented using INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +00001109 * so here we adjust the DEF accordingly.
1110 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001111
1112/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1113
Lev Walkina7591b52014-10-12 18:37:35 -07001114static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001115 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1116};
1117asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1118 "OK-IntegerInRange5",
1119 "OK-IntegerInRange5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001120 &asn_OP_INTEGER,
Lev Walkin082cadc2005-08-14 02:18:27 +00001121 OK_IntegerInRange5_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001122 asn_DEF_OK_IntegerInRange5_tags_1,
1123 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1124 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1125 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1126 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1127 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001128 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001129 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001130 0, 0, /* No members */
1131 0 /* No specifics */
1132};
1133
Lev Walkinc3f0b892005-08-14 02:40:04 +00001134
Lev Walkinfee6f712005-08-27 03:13:51 +00001135/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1136
Lev Walkin8bb57a22007-12-03 13:41:36 +00001137#include <NativeInteger.h>
Lev Walkinfee6f712005-08-27 03:13:51 +00001138
1139/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1140
Lev Walkin8bb57a22007-12-03 13:41:36 +00001141typedef unsigned long NO_IntegerInRange6_t;
Lev Walkinfee6f712005-08-27 03:13:51 +00001142
1143/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1144
1145extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1146asn_struct_free_f NO_IntegerInRange6_free;
1147asn_struct_print_f NO_IntegerInRange6_print;
1148asn_constr_check_f NO_IntegerInRange6_constraint;
1149ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1150der_type_encoder_f NO_IntegerInRange6_encode_der;
1151xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1152xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1153
1154/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1155
1156int
1157NO_IntegerInRange6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001158 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinfee6f712005-08-27 03:13:51 +00001159
1160 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001161 ASN__CTFAIL(app_key, td, sptr,
Lev Walkinfee6f712005-08-27 03:13:51 +00001162 "%s: value not given (%s:%d)",
1163 td->name, __FILE__, __LINE__);
1164 return -1;
1165 }
1166
Lev Walkinfee6f712005-08-27 03:13:51 +00001167
Lev Walkin8bb57a22007-12-03 13:41:36 +00001168 /* Constraint check succeeded */
1169 return 0;
Lev Walkinfee6f712005-08-27 03:13:51 +00001170}
1171
1172/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001173 * This type is implemented using NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001174 * so here we adjust the DEF accordingly.
1175 */
Lev Walkinfee6f712005-08-27 03:13:51 +00001176
1177/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1178
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001179static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001180 0, 0, 0, 0, 0,
1181 0, /* Native long size */
1182 1 /* Unsigned representation */
1183};
Lev Walkina7591b52014-10-12 18:37:35 -07001184static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkinfee6f712005-08-27 03:13:51 +00001185 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1186};
1187asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1188 "NO-IntegerInRange6",
1189 "NO-IntegerInRange6",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001190 &asn_OP_NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001191 NO_IntegerInRange6_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001192 asn_DEF_NO_IntegerInRange6_tags_1,
1193 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1194 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1195 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1196 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1197 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001198 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001199 0, /* No PER visible constraints */
Lev Walkinfee6f712005-08-27 03:13:51 +00001200 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001201 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkinfee6f712005-08-27 03:13:51 +00001202};
1203
1204
Lev Walkinc3f0b892005-08-14 02:40:04 +00001205/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1206
Lev Walkin2a744a72013-03-27 01:56:23 -07001207#include <INTEGER.h>
Lev Walkinc3f0b892005-08-14 02:40:04 +00001208
1209/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1210
1211typedef enum CN_IntegerEnumerated1 {
1212 CN_IntegerEnumerated1_a = 1,
1213 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001214} e_CN_IntegerEnumerated1;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001215
1216/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1217
Lev Walkin2a744a72013-03-27 01:56:23 -07001218typedef INTEGER_t CN_IntegerEnumerated1_t;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001219
1220/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1221
1222extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1223asn_struct_free_f CN_IntegerEnumerated1_free;
1224asn_struct_print_f CN_IntegerEnumerated1_print;
1225asn_constr_check_f CN_IntegerEnumerated1_constraint;
1226ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1227der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1228xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1229xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1230
1231/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1232
Lev Walkinc3f0b892005-08-14 02:40:04 +00001233/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001234 * This type is implemented using INTEGER,
Lev Walkinc3f0b892005-08-14 02:40:04 +00001235 * so here we adjust the DEF accordingly.
1236 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001237
1238/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1239
Lev Walkina7591b52014-10-12 18:37:35 -07001240static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001241 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1242};
1243asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1244 "CN-IntegerEnumerated1",
1245 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001246 &asn_OP_INTEGER,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001247 INTEGER_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001248 asn_DEF_CN_IntegerEnumerated1_tags_1,
1249 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1250 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1251 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1252 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1253 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001254 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001255 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001256 0, 0, /* Defined elsewhere */
1257 0 /* No specifics */
1258};
1259
1260
1261/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1262
1263#include <INTEGER.h>
1264
1265/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1266
1267typedef enum NO_IntegerEnumerated2 {
1268 NO_IntegerEnumerated2_a = 1,
1269 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001270} e_NO_IntegerEnumerated2;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001271
1272/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1273
1274typedef INTEGER_t NO_IntegerEnumerated2_t;
1275
1276/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1277
1278extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1279asn_struct_free_f NO_IntegerEnumerated2_free;
1280asn_struct_print_f NO_IntegerEnumerated2_print;
1281asn_constr_check_f NO_IntegerEnumerated2_constraint;
1282ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1283der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1284xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1285xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1286
1287/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1288
Lev Walkinc3f0b892005-08-14 02:40:04 +00001289/*
1290 * This type is implemented using INTEGER,
1291 * so here we adjust the DEF accordingly.
1292 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001293
1294/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1295
Lev Walkina7591b52014-10-12 18:37:35 -07001296static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001297 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1298};
1299asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1300 "NO-IntegerEnumerated2",
1301 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001302 &asn_OP_INTEGER,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001303 INTEGER_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001304 asn_DEF_NO_IntegerEnumerated2_tags_1,
1305 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1306 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1307 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1308 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1309 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001310 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001311 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001312 0, 0, /* Defined elsewhere */
1313 0 /* No specifics */
1314};
1315