blob: 68101885a5a8134a7726a4f094645a50202741e7 [file] [log] [blame]
Lev Walkin59b176e2005-11-26 11:25:14 +00001
2/*** <<< INCLUDES [CN-IntegerUnlimited] >>> ***/
3
Lev Walkin2a744a72013-03-27 01:56:23 -07004#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00005
6/*** <<< TYPE-DECLS [CN-IntegerUnlimited] >>> ***/
7
Lev Walkin2a744a72013-03-27 01:56:23 -07008typedef long CN_IntegerUnlimited_t;
Lev Walkin59b176e2005-11-26 11:25:14 +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;
20per_type_decoder_f CN_IntegerUnlimited_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +000021per_type_encoder_f CN_IntegerUnlimited_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +000022
23/*** <<< CODE [CN-IntegerUnlimited] >>> ***/
24
Lev Walkin59b176e2005-11-26 11:25:14 +000025/*
Lev Walkin2a744a72013-03-27 01:56:23 -070026 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +000027 * so here we adjust the DEF accordingly.
28 */
Lev Walkin59b176e2005-11-26 11:25:14 +000029
30/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
31
Lev Walkina7591b52014-10-12 18:37:35 -070032static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +000033 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
34};
35asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
36 "CN-IntegerUnlimited",
37 "CN-IntegerUnlimited",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080038 &asn_OP_NativeInteger,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080039 NativeInteger_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +000040 asn_DEF_CN_IntegerUnlimited_tags_1,
41 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
42 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
43 asn_DEF_CN_IntegerUnlimited_tags_1, /* Same as above */
44 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
45 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040046 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000047 0, /* No PER visible constraints */
48 0, 0, /* No members */
49 0 /* No specifics */
50};
51
52
53/*** <<< INCLUDES [CN-IntegerMinMax] >>> ***/
54
Lev Walkin2a744a72013-03-27 01:56:23 -070055#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +000056
57/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
58
Lev Walkin2a744a72013-03-27 01:56:23 -070059typedef long CN_IntegerMinMax_t;
Lev Walkin59b176e2005-11-26 11:25:14 +000060
61/*** <<< FUNC-DECLS [CN-IntegerMinMax] >>> ***/
62
63extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax;
64asn_struct_free_f CN_IntegerMinMax_free;
65asn_struct_print_f CN_IntegerMinMax_print;
66asn_constr_check_f CN_IntegerMinMax_constraint;
67ber_type_decoder_f CN_IntegerMinMax_decode_ber;
68der_type_encoder_f CN_IntegerMinMax_encode_der;
69xer_type_decoder_f CN_IntegerMinMax_decode_xer;
70xer_type_encoder_f CN_IntegerMinMax_encode_xer;
71per_type_decoder_f CN_IntegerMinMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +000072per_type_encoder_f CN_IntegerMinMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +000073
74/*** <<< CODE [CN-IntegerMinMax] >>> ***/
75
76int
77CN_IntegerMinMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000078 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +000079
80 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070081 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +000082 "%s: value not given (%s:%d)",
83 td->name, __FILE__, __LINE__);
84 return -1;
85 }
86
87
88 if(1 /* No applicable constraints whatsoever */) {
89 /* Nothing is here. See below */
90 }
91
92 /* Replace with underlying type checker */
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080093 return td->op->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin59b176e2005-11-26 11:25:14 +000094}
95
96/*
Lev Walkin2a744a72013-03-27 01:56:23 -070097 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +000098 * so here we adjust the DEF accordingly.
99 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000100
Lev Walkin725883b2006-10-09 12:07:58 +0000101/*** <<< CTDEFS [CN-IntegerMinMax] >>> ***/
102
Lev Walkin2fce55d2013-03-28 05:00:39 -0700103static asn_per_constraints_t asn_PER_type_CN_IntegerMinMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000104 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
105 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
106 0, 0 /* No PER value map */
107};
108
Lev Walkin59b176e2005-11-26 11:25:14 +0000109/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
110
Lev Walkina7591b52014-10-12 18:37:35 -0700111static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000112 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
113};
Lev Walkin59b176e2005-11-26 11:25:14 +0000114asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
115 "CN-IntegerMinMax",
116 "CN-IntegerMinMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800117 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000118 CN_IntegerMinMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000119 asn_DEF_CN_IntegerMinMax_tags_1,
120 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
121 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
122 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
123 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
124 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400125 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000126 &asn_PER_type_CN_IntegerMinMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000127 0, 0, /* No members */
128 0 /* No specifics */
129};
130
131
132/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
133
Lev Walkin2a744a72013-03-27 01:56:23 -0700134#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000135
136/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
137
Lev Walkin2a744a72013-03-27 01:56:23 -0700138typedef long CN_IntegerMinLow_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000139
140/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
141
142extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
143asn_struct_free_f CN_IntegerMinLow_free;
144asn_struct_print_f CN_IntegerMinLow_print;
145asn_constr_check_f CN_IntegerMinLow_constraint;
146ber_type_decoder_f CN_IntegerMinLow_decode_ber;
147der_type_encoder_f CN_IntegerMinLow_encode_der;
148xer_type_decoder_f CN_IntegerMinLow_decode_xer;
149xer_type_encoder_f CN_IntegerMinLow_encode_xer;
150per_type_decoder_f CN_IntegerMinLow_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000151per_type_encoder_f CN_IntegerMinLow_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000152
153/*** <<< CODE [CN-IntegerMinLow] >>> ***/
154
155int
156CN_IntegerMinLow_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000157 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000158 long value;
159
160 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700161 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000162 "%s: value not given (%s:%d)",
163 td->name, __FILE__, __LINE__);
164 return -1;
165 }
166
Lev Walkin2a744a72013-03-27 01:56:23 -0700167 value = *(const long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000168
169 if((value <= 1)) {
170 /* Constraint check succeeded */
171 return 0;
172 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700173 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000174 "%s: constraint failed (%s:%d)",
175 td->name, __FILE__, __LINE__);
176 return -1;
177 }
178}
179
180/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700181 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000182 * so here we adjust the DEF accordingly.
183 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000184
Lev Walkin725883b2006-10-09 12:07:58 +0000185/*** <<< CTDEFS [CN-IntegerMinLow] >>> ***/
186
Lev Walkin2fce55d2013-03-28 05:00:39 -0700187static asn_per_constraints_t asn_PER_type_CN_IntegerMinLow_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000188 { APC_UNCONSTRAINED, -1, -1, 0, 0 } /* (MIN..1) */,
189 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
190 0, 0 /* No PER value map */
191};
192
Lev Walkin59b176e2005-11-26 11:25:14 +0000193/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
194
Lev Walkina7591b52014-10-12 18:37:35 -0700195static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000196 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
197};
Lev Walkin59b176e2005-11-26 11:25:14 +0000198asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
199 "CN-IntegerMinLow",
200 "CN-IntegerMinLow",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800201 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000202 CN_IntegerMinLow_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000203 asn_DEF_CN_IntegerMinLow_tags_1,
204 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
205 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
206 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
207 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
208 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400209 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000210 &asn_PER_type_CN_IntegerMinLow_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000211 0, 0, /* No members */
212 0 /* No specifics */
213};
214
215
216/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
217
218#include <INTEGER.h>
219
220/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
221
222typedef INTEGER_t NO_IntegerMinHigh_t;
223
224/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
225
226extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
227asn_struct_free_f NO_IntegerMinHigh_free;
228asn_struct_print_f NO_IntegerMinHigh_print;
229asn_constr_check_f NO_IntegerMinHigh_constraint;
230ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
231der_type_encoder_f NO_IntegerMinHigh_encode_der;
232xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
233xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
234per_type_decoder_f NO_IntegerMinHigh_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000235per_type_encoder_f NO_IntegerMinHigh_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000236
237/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
238
239int
240NO_IntegerMinHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000241 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000242 const INTEGER_t *st = (const INTEGER_t *)sptr;
243 long value;
244
245 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700246 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000247 "%s: value not given (%s:%d)",
248 td->name, __FILE__, __LINE__);
249 return -1;
250 }
251
252 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700253 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000254 "%s: value too large (%s:%d)",
255 td->name, __FILE__, __LINE__);
256 return -1;
257 }
258
259 if((value <= 3000000000)) {
260 /* Constraint check succeeded */
261 return 0;
262 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700263 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000264 "%s: constraint failed (%s:%d)",
265 td->name, __FILE__, __LINE__);
266 return -1;
267 }
268}
269
270/*
271 * This type is implemented using INTEGER,
272 * so here we adjust the DEF accordingly.
273 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000274
Lev Walkin725883b2006-10-09 12:07:58 +0000275/*** <<< CTDEFS [NO-IntegerMinHigh] >>> ***/
276
Lev Walkin2fce55d2013-03-28 05:00:39 -0700277static asn_per_constraints_t asn_PER_type_NO_IntegerMinHigh_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000278 { APC_UNCONSTRAINED, -1, -1, 0, 0 } /* (MIN..3000000000) */,
279 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
280 0, 0 /* No PER value map */
281};
282
Lev Walkin59b176e2005-11-26 11:25:14 +0000283/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
284
Lev Walkina7591b52014-10-12 18:37:35 -0700285static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000286 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
287};
Lev Walkin59b176e2005-11-26 11:25:14 +0000288asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
289 "NO-IntegerMinHigh",
290 "NO-IntegerMinHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800291 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000292 NO_IntegerMinHigh_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000293 asn_DEF_NO_IntegerMinHigh_tags_1,
294 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
295 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
296 asn_DEF_NO_IntegerMinHigh_tags_1, /* Same as above */
297 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
298 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400299 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000300 &asn_PER_type_NO_IntegerMinHigh_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000301 0, 0, /* No members */
302 0 /* No specifics */
303};
304
305
306/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
307
Lev Walkin8bb57a22007-12-03 13:41:36 +0000308#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000309
310/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
311
Lev Walkin8bb57a22007-12-03 13:41:36 +0000312typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000313
314/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
315
316extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
317asn_struct_free_f NO_IntegerLowHigh_free;
318asn_struct_print_f NO_IntegerLowHigh_print;
319asn_constr_check_f NO_IntegerLowHigh_constraint;
320ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
321der_type_encoder_f NO_IntegerLowHigh_encode_der;
322xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
323xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
324per_type_decoder_f NO_IntegerLowHigh_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000325per_type_encoder_f NO_IntegerLowHigh_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000326
327/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
328
329int
330NO_IntegerLowHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000331 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000332 unsigned long value;
Lev Walkin59b176e2005-11-26 11:25:14 +0000333
334 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700335 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000336 "%s: value not given (%s:%d)",
337 td->name, __FILE__, __LINE__);
338 return -1;
339 }
340
Lev Walkin8bb57a22007-12-03 13:41:36 +0000341 value = *(const unsigned long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000342
343 if((value >= 1 && value <= 3000000000)) {
344 /* Constraint check succeeded */
345 return 0;
346 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700347 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000348 "%s: constraint failed (%s:%d)",
349 td->name, __FILE__, __LINE__);
350 return -1;
351 }
352}
353
354/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000355 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000356 * so here we adjust the DEF accordingly.
357 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000358
Lev Walkin725883b2006-10-09 12:07:58 +0000359/*** <<< CTDEFS [NO-IntegerLowHigh] >>> ***/
360
Lev Walkin2fce55d2013-03-28 05:00:39 -0700361static asn_per_constraints_t asn_PER_type_NO_IntegerLowHigh_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000362 { APC_CONSTRAINED, 32, -1, 1, 3000000000 } /* (1..3000000000) */,
363 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
364 0, 0 /* No PER value map */
365};
366
Lev Walkin59b176e2005-11-26 11:25:14 +0000367/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
368
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800369static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000370 0, 0, 0, 0, 0,
371 0, /* Native long size */
372 1 /* Unsigned representation */
373};
Lev Walkina7591b52014-10-12 18:37:35 -0700374static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000375 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
376};
Lev Walkin59b176e2005-11-26 11:25:14 +0000377asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
378 "NO-IntegerLowHigh",
379 "NO-IntegerLowHigh",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800380 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000381 NO_IntegerLowHigh_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000382 asn_DEF_NO_IntegerLowHigh_tags_1,
383 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
384 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
385 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
386 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
387 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400388 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000389 &asn_PER_type_NO_IntegerLowHigh_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000390 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000391 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +0000392};
393
394
395/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
396
Lev Walkin2a744a72013-03-27 01:56:23 -0700397#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000398
399/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
400
Lev Walkin2a744a72013-03-27 01:56:23 -0700401typedef long CN_IntegerLowMax_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000402
403/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
404
405extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
406asn_struct_free_f CN_IntegerLowMax_free;
407asn_struct_print_f CN_IntegerLowMax_print;
408asn_constr_check_f CN_IntegerLowMax_constraint;
409ber_type_decoder_f CN_IntegerLowMax_decode_ber;
410der_type_encoder_f CN_IntegerLowMax_encode_der;
411xer_type_decoder_f CN_IntegerLowMax_decode_xer;
412xer_type_encoder_f CN_IntegerLowMax_encode_xer;
413per_type_decoder_f CN_IntegerLowMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000414per_type_encoder_f CN_IntegerLowMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000415
416/*** <<< CODE [CN-IntegerLowMax] >>> ***/
417
418int
419CN_IntegerLowMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000420 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000421 long value;
422
423 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700424 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000425 "%s: value not given (%s:%d)",
426 td->name, __FILE__, __LINE__);
427 return -1;
428 }
429
Lev Walkin2a744a72013-03-27 01:56:23 -0700430 value = *(const long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000431
432 if((value >= 1)) {
433 /* Constraint check succeeded */
434 return 0;
435 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700436 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000437 "%s: constraint failed (%s:%d)",
438 td->name, __FILE__, __LINE__);
439 return -1;
440 }
441}
442
443/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700444 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000445 * so here we adjust the DEF accordingly.
446 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000447
Lev Walkin725883b2006-10-09 12:07:58 +0000448/*** <<< CTDEFS [CN-IntegerLowMax] >>> ***/
449
Lev Walkin2fce55d2013-03-28 05:00:39 -0700450static asn_per_constraints_t asn_PER_type_CN_IntegerLowMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000451 { APC_SEMI_CONSTRAINED, -1, -1, 1, 0 } /* (1..MAX) */,
452 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
453 0, 0 /* No PER value map */
454};
455
Lev Walkin59b176e2005-11-26 11:25:14 +0000456/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
457
Lev Walkina7591b52014-10-12 18:37:35 -0700458static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000459 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
460};
Lev Walkin59b176e2005-11-26 11:25:14 +0000461asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
462 "CN-IntegerLowMax",
463 "CN-IntegerLowMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800464 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000465 CN_IntegerLowMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000466 asn_DEF_CN_IntegerLowMax_tags_1,
467 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
468 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
469 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
470 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
471 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400472 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000473 &asn_PER_type_CN_IntegerLowMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000474 0, 0, /* No members */
475 0 /* No specifics */
476};
477
478
479/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
480
481#include <INTEGER.h>
482
483/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
484
485typedef INTEGER_t NO_IntegerHighMax_t;
486
487/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
488
489extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
490asn_struct_free_f NO_IntegerHighMax_free;
491asn_struct_print_f NO_IntegerHighMax_print;
492asn_constr_check_f NO_IntegerHighMax_constraint;
493ber_type_decoder_f NO_IntegerHighMax_decode_ber;
494der_type_encoder_f NO_IntegerHighMax_encode_der;
495xer_type_decoder_f NO_IntegerHighMax_decode_xer;
496xer_type_encoder_f NO_IntegerHighMax_encode_xer;
497per_type_decoder_f NO_IntegerHighMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000498per_type_encoder_f NO_IntegerHighMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000499
500/*** <<< CODE [NO-IntegerHighMax] >>> ***/
501
502int
503NO_IntegerHighMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000504 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000505 const INTEGER_t *st = (const INTEGER_t *)sptr;
506 long value;
507
508 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700509 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000510 "%s: value not given (%s:%d)",
511 td->name, __FILE__, __LINE__);
512 return -1;
513 }
514
515 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700516 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000517 "%s: value too large (%s:%d)",
518 td->name, __FILE__, __LINE__);
519 return -1;
520 }
521
522 if((value >= 3000000000)) {
523 /* Constraint check succeeded */
524 return 0;
525 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700526 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000527 "%s: constraint failed (%s:%d)",
528 td->name, __FILE__, __LINE__);
529 return -1;
530 }
531}
532
533/*
534 * This type is implemented using INTEGER,
535 * so here we adjust the DEF accordingly.
536 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000537
Lev Walkin725883b2006-10-09 12:07:58 +0000538/*** <<< CTDEFS [NO-IntegerHighMax] >>> ***/
539
Lev Walkin2fce55d2013-03-28 05:00:39 -0700540static asn_per_constraints_t asn_PER_type_NO_IntegerHighMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000541 { APC_SEMI_CONSTRAINED, -1, -1, 3000000000, 0 } /* (3000000000..MAX) */,
542 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
543 0, 0 /* No PER value map */
544};
545
Lev Walkin59b176e2005-11-26 11:25:14 +0000546/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
547
Lev Walkina7591b52014-10-12 18:37:35 -0700548static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000549 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
550};
Lev Walkin59b176e2005-11-26 11:25:14 +0000551asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
552 "NO-IntegerHighMax",
553 "NO-IntegerHighMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800554 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000555 NO_IntegerHighMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000556 asn_DEF_NO_IntegerHighMax_tags_1,
557 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
558 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
559 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
560 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
561 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400562 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000563 &asn_PER_type_NO_IntegerHighMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000564 0, 0, /* No members */
565 0 /* No specifics */
566};
567
568
569/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
570
571#include <INTEGER.h>
572
573/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
574
575typedef INTEGER_t NO_IntegerLowestMax_t;
576
577/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
578
579extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
580asn_struct_free_f NO_IntegerLowestMax_free;
581asn_struct_print_f NO_IntegerLowestMax_print;
582asn_constr_check_f NO_IntegerLowestMax_constraint;
583ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
584der_type_encoder_f NO_IntegerLowestMax_encode_der;
585xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
586xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
587per_type_decoder_f NO_IntegerLowestMax_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000588per_type_encoder_f NO_IntegerLowestMax_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000589
590/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
591
592int
593NO_IntegerLowestMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000594 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000595 const INTEGER_t *st = (const INTEGER_t *)sptr;
596 long value;
597
598 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700599 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000600 "%s: value not given (%s:%d)",
601 td->name, __FILE__, __LINE__);
602 return -1;
603 }
604
605 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700606 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000607 "%s: value too large (%s:%d)",
608 td->name, __FILE__, __LINE__);
609 return -1;
610 }
611
612 if((value >= -3000000000)) {
613 /* Constraint check succeeded */
614 return 0;
615 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700616 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000617 "%s: constraint failed (%s:%d)",
618 td->name, __FILE__, __LINE__);
619 return -1;
620 }
621}
622
623/*
624 * This type is implemented using INTEGER,
625 * so here we adjust the DEF accordingly.
626 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000627
Lev Walkin725883b2006-10-09 12:07:58 +0000628/*** <<< CTDEFS [NO-IntegerLowestMax] >>> ***/
629
Lev Walkin2fce55d2013-03-28 05:00:39 -0700630static asn_per_constraints_t asn_PER_type_NO_IntegerLowestMax_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000631 { APC_SEMI_CONSTRAINED, -1, -1, -3000000000, 0 } /* (-3000000000..MAX) */,
632 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
633 0, 0 /* No PER value map */
634};
635
Lev Walkin59b176e2005-11-26 11:25:14 +0000636/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
637
Lev Walkina7591b52014-10-12 18:37:35 -0700638static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000639 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
640};
Lev Walkin59b176e2005-11-26 11:25:14 +0000641asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
642 "NO-IntegerLowestMax",
643 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800644 &asn_OP_INTEGER,
Lev Walkin59b176e2005-11-26 11:25:14 +0000645 NO_IntegerLowestMax_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000646 asn_DEF_NO_IntegerLowestMax_tags_1,
647 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
648 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
649 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
650 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
651 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400652 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000653 &asn_PER_type_NO_IntegerLowestMax_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000654 0, 0, /* No members */
655 0 /* No specifics */
656};
657
658
659/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
660
Lev Walkin8bb57a22007-12-03 13:41:36 +0000661#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000662
663/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
664
Lev Walkin8bb57a22007-12-03 13:41:36 +0000665typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000666
667/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
668
669extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
670asn_struct_free_f NO_IntegerOutRange_free;
671asn_struct_print_f NO_IntegerOutRange_print;
672asn_constr_check_f NO_IntegerOutRange_constraint;
673ber_type_decoder_f NO_IntegerOutRange_decode_ber;
674der_type_encoder_f NO_IntegerOutRange_encode_der;
675xer_type_decoder_f NO_IntegerOutRange_decode_xer;
676xer_type_encoder_f NO_IntegerOutRange_encode_xer;
677per_type_decoder_f NO_IntegerOutRange_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000678per_type_encoder_f NO_IntegerOutRange_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000679
680/*** <<< CODE [NO-IntegerOutRange] >>> ***/
681
682int
683NO_IntegerOutRange_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000684 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000685 unsigned long value;
Lev Walkin59b176e2005-11-26 11:25:14 +0000686
687 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700688 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000689 "%s: value not given (%s:%d)",
690 td->name, __FILE__, __LINE__);
691 return -1;
692 }
693
Lev Walkin8bb57a22007-12-03 13:41:36 +0000694 value = *(const unsigned long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000695
696 if((value >= 3000000000 && value <= 3000000001)) {
697 /* Constraint check succeeded */
698 return 0;
699 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700700 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000701 "%s: constraint failed (%s:%d)",
702 td->name, __FILE__, __LINE__);
703 return -1;
704 }
705}
706
707/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000708 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000709 * so here we adjust the DEF accordingly.
710 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000711
Lev Walkin725883b2006-10-09 12:07:58 +0000712/*** <<< CTDEFS [NO-IntegerOutRange] >>> ***/
713
Lev Walkin2fce55d2013-03-28 05:00:39 -0700714static asn_per_constraints_t asn_PER_type_NO_IntegerOutRange_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000715 { APC_CONSTRAINED, 1, -1, 3000000000, 3000000001 } /* (3000000000..3000000001) */,
716 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
717 0, 0 /* No PER value map */
718};
719
Lev Walkin59b176e2005-11-26 11:25:14 +0000720/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
721
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800722static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000723 0, 0, 0, 0, 0,
724 0, /* Native long size */
725 1 /* Unsigned representation */
726};
Lev Walkina7591b52014-10-12 18:37:35 -0700727static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000728 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
729};
Lev Walkin59b176e2005-11-26 11:25:14 +0000730asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
731 "NO-IntegerOutRange",
732 "NO-IntegerOutRange",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800733 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000734 NO_IntegerOutRange_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000735 asn_DEF_NO_IntegerOutRange_tags_1,
736 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
737 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
738 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
739 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
740 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400741 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000742 &asn_PER_type_NO_IntegerOutRange_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000743 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000744 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +0000745};
746
747
748/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
749
Lev Walkin8bb57a22007-12-03 13:41:36 +0000750#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +0000751
752/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
753
Lev Walkin8bb57a22007-12-03 13:41:36 +0000754typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin59b176e2005-11-26 11:25:14 +0000755
756/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
757
758extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
759asn_struct_free_f NO_IntegerOutValue_free;
760asn_struct_print_f NO_IntegerOutValue_print;
761asn_constr_check_f NO_IntegerOutValue_constraint;
762ber_type_decoder_f NO_IntegerOutValue_decode_ber;
763der_type_encoder_f NO_IntegerOutValue_encode_der;
764xer_type_decoder_f NO_IntegerOutValue_decode_xer;
765xer_type_encoder_f NO_IntegerOutValue_encode_xer;
766per_type_decoder_f NO_IntegerOutValue_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000767per_type_encoder_f NO_IntegerOutValue_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000768
769/*** <<< CODE [NO-IntegerOutValue] >>> ***/
770
771int
772NO_IntegerOutValue_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 Walkin8bb57a22007-12-03 13:41:36 +0000774 unsigned long value;
Lev Walkin59b176e2005-11-26 11:25:14 +0000775
776 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700777 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000778 "%s: value not given (%s:%d)",
779 td->name, __FILE__, __LINE__);
780 return -1;
781 }
782
Lev Walkin8bb57a22007-12-03 13:41:36 +0000783 value = *(const unsigned long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +0000784
785 if((value == 3000000000)) {
786 /* Constraint check succeeded */
787 return 0;
788 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700789 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000790 "%s: constraint failed (%s:%d)",
791 td->name, __FILE__, __LINE__);
792 return -1;
793 }
794}
795
796/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000797 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000798 * so here we adjust the DEF accordingly.
799 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000800
Lev Walkin725883b2006-10-09 12:07:58 +0000801/*** <<< CTDEFS [NO-IntegerOutValue] >>> ***/
802
Lev Walkin2fce55d2013-03-28 05:00:39 -0700803static asn_per_constraints_t asn_PER_type_NO_IntegerOutValue_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000804 { APC_CONSTRAINED, 0, -1, 3000000000, 3000000000 } /* (3000000000..3000000000) */,
805 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
806 0, 0 /* No PER value map */
807};
808
Lev Walkin59b176e2005-11-26 11:25:14 +0000809/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
810
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800811static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000812 0, 0, 0, 0, 0,
813 0, /* Native long size */
814 1 /* Unsigned representation */
815};
Lev Walkina7591b52014-10-12 18:37:35 -0700816static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000817 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
818};
Lev Walkin59b176e2005-11-26 11:25:14 +0000819asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
820 "NO-IntegerOutValue",
821 "NO-IntegerOutValue",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800822 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000823 NO_IntegerOutValue_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000824 asn_DEF_NO_IntegerOutValue_tags_1,
825 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
826 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
827 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
828 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
829 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400830 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000831 &asn_PER_type_NO_IntegerOutValue_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000832 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000833 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +0000834};
835
836
837/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
838
839#include <NativeInteger.h>
840
841/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
842
843typedef long OK_IntegerInRange1_t;
844
845/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
846
847extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
848asn_struct_free_f OK_IntegerInRange1_free;
849asn_struct_print_f OK_IntegerInRange1_print;
850asn_constr_check_f OK_IntegerInRange1_constraint;
851ber_type_decoder_f OK_IntegerInRange1_decode_ber;
852der_type_encoder_f OK_IntegerInRange1_encode_der;
853xer_type_decoder_f OK_IntegerInRange1_decode_xer;
854xer_type_encoder_f OK_IntegerInRange1_encode_xer;
855per_type_decoder_f OK_IntegerInRange1_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000856per_type_encoder_f OK_IntegerInRange1_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000857
858/*** <<< CODE [OK-IntegerInRange1] >>> ***/
859
860int
861OK_IntegerInRange1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000862 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000863 long value;
864
865 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700866 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000867 "%s: value not given (%s:%d)",
868 td->name, __FILE__, __LINE__);
869 return -1;
870 }
871
872 value = *(const long *)sptr;
873
874 if((value >= -100 && value <= 100)) {
875 /* Constraint check succeeded */
876 return 0;
877 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700878 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000879 "%s: constraint failed (%s:%d)",
880 td->name, __FILE__, __LINE__);
881 return -1;
882 }
883}
884
885/*
886 * This type is implemented using NativeInteger,
887 * so here we adjust the DEF accordingly.
888 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000889
Lev Walkin725883b2006-10-09 12:07:58 +0000890/*** <<< CTDEFS [OK-IntegerInRange1] >>> ***/
891
Lev Walkin2fce55d2013-03-28 05:00:39 -0700892static asn_per_constraints_t asn_PER_type_OK_IntegerInRange1_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000893 { APC_CONSTRAINED, 8, 8, -100, 100 } /* (-100..100) */,
894 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
895 0, 0 /* No PER value map */
896};
897
Lev Walkin59b176e2005-11-26 11:25:14 +0000898/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
899
Lev Walkina7591b52014-10-12 18:37:35 -0700900static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000901 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
902};
Lev Walkin59b176e2005-11-26 11:25:14 +0000903asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
904 "OK-IntegerInRange1",
905 "OK-IntegerInRange1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800906 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000907 OK_IntegerInRange1_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000908 asn_DEF_OK_IntegerInRange1_tags_1,
909 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
910 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
911 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
912 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
913 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400914 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000915 &asn_PER_type_OK_IntegerInRange1_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +0000916 0, 0, /* No members */
917 0 /* No specifics */
918};
919
920
921/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
922
923#include <NativeInteger.h>
924
925/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
926
927typedef long OK_IntegerInRange2_t;
928
929/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
930
931extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
932asn_struct_free_f OK_IntegerInRange2_free;
933asn_struct_print_f OK_IntegerInRange2_print;
934asn_constr_check_f OK_IntegerInRange2_constraint;
935ber_type_decoder_f OK_IntegerInRange2_decode_ber;
936der_type_encoder_f OK_IntegerInRange2_encode_der;
937xer_type_decoder_f OK_IntegerInRange2_decode_xer;
938xer_type_encoder_f OK_IntegerInRange2_encode_xer;
939per_type_decoder_f OK_IntegerInRange2_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +0000940per_type_encoder_f OK_IntegerInRange2_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +0000941
942/*** <<< CODE [OK-IntegerInRange2] >>> ***/
943
944int
945OK_IntegerInRange2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000946 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +0000947 long value;
948
949 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700950 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000951 "%s: value not given (%s:%d)",
952 td->name, __FILE__, __LINE__);
953 return -1;
954 }
955
956 value = *(const long *)sptr;
957
958 if(((value == -100) || (value == 100))) {
959 /* Constraint check succeeded */
960 return 0;
961 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700962 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +0000963 "%s: constraint failed (%s:%d)",
964 td->name, __FILE__, __LINE__);
965 return -1;
966 }
967}
968
969/*
970 * This type is implemented using NativeInteger,
971 * so here we adjust the DEF accordingly.
972 */
Lev Walkin59b176e2005-11-26 11:25:14 +0000973
Lev Walkin725883b2006-10-09 12:07:58 +0000974/*** <<< CTDEFS [OK-IntegerInRange2] >>> ***/
975
Lev Walkin2fce55d2013-03-28 05:00:39 -0700976static asn_per_constraints_t asn_PER_type_OK_IntegerInRange2_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +0000977 { APC_CONSTRAINED, 8, 8, -100, 100 } /* (-100..100) */,
978 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
979 0, 0 /* No PER value map */
980};
981
Lev Walkin59b176e2005-11-26 11:25:14 +0000982/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
983
Lev Walkina7591b52014-10-12 18:37:35 -0700984static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +0000985 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
986};
Lev Walkin59b176e2005-11-26 11:25:14 +0000987asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
988 "OK-IntegerInRange2",
989 "OK-IntegerInRange2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +0800990 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +0000991 OK_IntegerInRange2_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +0000992 asn_DEF_OK_IntegerInRange2_tags_1,
993 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
994 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
995 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
996 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
997 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400998 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +0000999 &asn_PER_type_OK_IntegerInRange2_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001000 0, 0, /* No members */
1001 0 /* No specifics */
1002};
1003
1004
1005/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
1006
1007#include <NativeInteger.h>
1008
1009/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
1010
1011typedef long OK_IntegerInRange3_t;
1012
1013/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
1014
1015extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
1016asn_struct_free_f OK_IntegerInRange3_free;
1017asn_struct_print_f OK_IntegerInRange3_print;
1018asn_constr_check_f OK_IntegerInRange3_constraint;
1019ber_type_decoder_f OK_IntegerInRange3_decode_ber;
1020der_type_encoder_f OK_IntegerInRange3_encode_der;
1021xer_type_decoder_f OK_IntegerInRange3_decode_xer;
1022xer_type_encoder_f OK_IntegerInRange3_encode_xer;
1023per_type_decoder_f OK_IntegerInRange3_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001024per_type_encoder_f OK_IntegerInRange3_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001025
1026/*** <<< CODE [OK-IntegerInRange3] >>> ***/
1027
1028int
1029OK_IntegerInRange3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001030 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001031 long value;
1032
1033 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001034 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001035 "%s: value not given (%s:%d)",
1036 td->name, __FILE__, __LINE__);
1037 return -1;
1038 }
1039
1040 value = *(const long *)sptr;
1041
Lev Walkin63b41262007-11-06 01:48:46 +00001042 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001043 /* Constraint check succeeded */
1044 return 0;
1045 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001046 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001047 "%s: constraint failed (%s:%d)",
1048 td->name, __FILE__, __LINE__);
1049 return -1;
1050 }
1051}
1052
1053/*
1054 * This type is implemented using NativeInteger,
1055 * so here we adjust the DEF accordingly.
1056 */
Lev Walkin59b176e2005-11-26 11:25:14 +00001057
Lev Walkin725883b2006-10-09 12:07:58 +00001058/*** <<< CTDEFS [OK-IntegerInRange3] >>> ***/
1059
Lev Walkin2fce55d2013-03-28 05:00:39 -07001060static asn_per_constraints_t asn_PER_type_OK_IntegerInRange3_constr_1 GCC_NOTUSED = {
Lev Walkin63b41262007-11-06 01:48:46 +00001061 { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
Lev Walkin725883b2006-10-09 12:07:58 +00001062 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1063 0, 0 /* No PER value map */
1064};
1065
Lev Walkin59b176e2005-11-26 11:25:14 +00001066/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
1067
Lev Walkina7591b52014-10-12 18:37:35 -07001068static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001069 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1070};
Lev Walkin59b176e2005-11-26 11:25:14 +00001071asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
1072 "OK-IntegerInRange3",
1073 "OK-IntegerInRange3",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001074 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001075 OK_IntegerInRange3_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001076 asn_DEF_OK_IntegerInRange3_tags_1,
1077 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
1078 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
1079 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
1080 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
1081 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001082 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001083 &asn_PER_type_OK_IntegerInRange3_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001084 0, 0, /* No members */
1085 0 /* No specifics */
1086};
1087
1088
1089/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
1090
1091#include <NativeInteger.h>
1092
1093/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
1094
1095typedef long OK_IntegerInRange4_t;
1096
1097/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
1098
1099extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
1100asn_struct_free_f OK_IntegerInRange4_free;
1101asn_struct_print_f OK_IntegerInRange4_print;
1102asn_constr_check_f OK_IntegerInRange4_constraint;
1103ber_type_decoder_f OK_IntegerInRange4_decode_ber;
1104der_type_encoder_f OK_IntegerInRange4_encode_der;
1105xer_type_decoder_f OK_IntegerInRange4_decode_xer;
1106xer_type_encoder_f OK_IntegerInRange4_encode_xer;
1107per_type_decoder_f OK_IntegerInRange4_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001108per_type_encoder_f OK_IntegerInRange4_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001109
1110/*** <<< CODE [OK-IntegerInRange4] >>> ***/
1111
1112int
1113OK_IntegerInRange4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001114 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001115 long value;
1116
1117 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001118 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001119 "%s: value not given (%s:%d)",
1120 td->name, __FILE__, __LINE__);
1121 return -1;
1122 }
1123
1124 value = *(const long *)sptr;
1125
Lev Walkin63b41262007-11-06 01:48:46 +00001126 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001127 /* Constraint check succeeded */
1128 return 0;
1129 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001130 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001131 "%s: constraint failed (%s:%d)",
1132 td->name, __FILE__, __LINE__);
1133 return -1;
1134 }
1135}
1136
1137/*
1138 * This type is implemented using NativeInteger,
1139 * so here we adjust the DEF accordingly.
1140 */
Lev Walkin59b176e2005-11-26 11:25:14 +00001141
Lev Walkin725883b2006-10-09 12:07:58 +00001142/*** <<< CTDEFS [OK-IntegerInRange4] >>> ***/
1143
Lev Walkin2fce55d2013-03-28 05:00:39 -07001144static asn_per_constraints_t asn_PER_type_OK_IntegerInRange4_constr_1 GCC_NOTUSED = {
Lev Walkin63b41262007-11-06 01:48:46 +00001145 { APC_CONSTRAINED, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647) */,
Lev Walkin725883b2006-10-09 12:07:58 +00001146 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1147 0, 0 /* No PER value map */
1148};
1149
Lev Walkin59b176e2005-11-26 11:25:14 +00001150/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
1151
Lev Walkina7591b52014-10-12 18:37:35 -07001152static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001153 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1154};
Lev Walkin59b176e2005-11-26 11:25:14 +00001155asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1156 "OK-IntegerInRange4",
1157 "OK-IntegerInRange4",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001158 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001159 OK_IntegerInRange4_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001160 asn_DEF_OK_IntegerInRange4_tags_1,
1161 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1162 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1163 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1164 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1165 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001166 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001167 &asn_PER_type_OK_IntegerInRange4_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001168 0, 0, /* No members */
1169 0 /* No specifics */
1170};
1171
1172
1173/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1174
Lev Walkin2a744a72013-03-27 01:56:23 -07001175#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00001176
1177/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1178
Lev Walkin2a744a72013-03-27 01:56:23 -07001179typedef long OK_IntegerInRange5_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00001180
1181/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1182
1183extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1184asn_struct_free_f OK_IntegerInRange5_free;
1185asn_struct_print_f OK_IntegerInRange5_print;
1186asn_constr_check_f OK_IntegerInRange5_constraint;
1187ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1188der_type_encoder_f OK_IntegerInRange5_encode_der;
1189xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1190xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1191per_type_decoder_f OK_IntegerInRange5_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001192per_type_encoder_f OK_IntegerInRange5_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001193
1194/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1195
1196int
1197OK_IntegerInRange5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001198 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001199 long value;
1200
1201 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001202 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001203 "%s: value not given (%s:%d)",
1204 td->name, __FILE__, __LINE__);
1205 return -1;
1206 }
1207
Lev Walkin2a744a72013-03-27 01:56:23 -07001208 value = *(const long *)sptr;
Lev Walkin59b176e2005-11-26 11:25:14 +00001209
Lev Walkin63b41262007-11-06 01:48:46 +00001210 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001211 /* Constraint check succeeded */
1212 return 0;
1213 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001214 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001215 "%s: constraint failed (%s:%d)",
1216 td->name, __FILE__, __LINE__);
1217 return -1;
1218 }
1219}
1220
1221/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001222 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001223 * so here we adjust the DEF accordingly.
1224 */
Lev Walkin59b176e2005-11-26 11:25:14 +00001225
Lev Walkin725883b2006-10-09 12:07:58 +00001226/*** <<< CTDEFS [OK-IntegerInRange5] >>> ***/
1227
Lev Walkin2fce55d2013-03-28 05:00:39 -07001228static asn_per_constraints_t asn_PER_type_OK_IntegerInRange5_constr_1 GCC_NOTUSED = {
Lev Walkin63b41262007-11-06 01:48:46 +00001229 { APC_CONSTRAINED | APC_EXTENSIBLE, 32, -1, (-2147483647L - 1), 2147483647 } /* (-2147483648..2147483647,...) */,
Lev Walkin725883b2006-10-09 12:07:58 +00001230 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1231 0, 0 /* No PER value map */
1232};
1233
Lev Walkin59b176e2005-11-26 11:25:14 +00001234/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1235
Lev Walkina7591b52014-10-12 18:37:35 -07001236static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001237 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1238};
Lev Walkin59b176e2005-11-26 11:25:14 +00001239asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1240 "OK-IntegerInRange5",
1241 "OK-IntegerInRange5",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001242 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001243 OK_IntegerInRange5_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001244 asn_DEF_OK_IntegerInRange5_tags_1,
1245 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1246 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1247 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1248 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1249 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001250 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001251 &asn_PER_type_OK_IntegerInRange5_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001252 0, 0, /* No members */
1253 0 /* No specifics */
1254};
1255
1256
1257/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1258
Lev Walkin8bb57a22007-12-03 13:41:36 +00001259#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00001260
1261/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1262
Lev Walkin8bb57a22007-12-03 13:41:36 +00001263typedef unsigned long NO_IntegerInRange6_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00001264
1265/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1266
1267extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1268asn_struct_free_f NO_IntegerInRange6_free;
1269asn_struct_print_f NO_IntegerInRange6_print;
1270asn_constr_check_f NO_IntegerInRange6_constraint;
1271ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1272der_type_encoder_f NO_IntegerInRange6_encode_der;
1273xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1274xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1275per_type_decoder_f NO_IntegerInRange6_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001276per_type_encoder_f NO_IntegerInRange6_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001277
1278/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1279
1280int
1281NO_IntegerInRange6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001282 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin59b176e2005-11-26 11:25:14 +00001283
1284 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001285 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin59b176e2005-11-26 11:25:14 +00001286 "%s: value not given (%s:%d)",
1287 td->name, __FILE__, __LINE__);
1288 return -1;
1289 }
1290
Lev Walkin59b176e2005-11-26 11:25:14 +00001291
Lev Walkin8bb57a22007-12-03 13:41:36 +00001292 /* Constraint check succeeded */
1293 return 0;
Lev Walkin59b176e2005-11-26 11:25:14 +00001294}
1295
1296/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001297 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001298 * so here we adjust the DEF accordingly.
1299 */
Lev Walkin59b176e2005-11-26 11:25:14 +00001300
Lev Walkin725883b2006-10-09 12:07:58 +00001301/*** <<< CTDEFS [NO-IntegerInRange6] >>> ***/
1302
Lev Walkin2fce55d2013-03-28 05:00:39 -07001303static asn_per_constraints_t asn_PER_type_NO_IntegerInRange6_constr_1 GCC_NOTUSED = {
Lev Walkin725883b2006-10-09 12:07:58 +00001304 { APC_CONSTRAINED, 32, -1, 0, 4294967295 } /* (0..4294967295) */,
1305 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
1306 0, 0 /* No PER value map */
1307};
1308
Lev Walkin59b176e2005-11-26 11:25:14 +00001309/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1310
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001311static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001312 0, 0, 0, 0, 0,
1313 0, /* Native long size */
1314 1 /* Unsigned representation */
1315};
Lev Walkina7591b52014-10-12 18:37:35 -07001316static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001317 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1318};
Lev Walkin59b176e2005-11-26 11:25:14 +00001319asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1320 "NO-IntegerInRange6",
1321 "NO-IntegerInRange6",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001322 &asn_OP_NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001323 NO_IntegerInRange6_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001324 asn_DEF_NO_IntegerInRange6_tags_1,
1325 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1326 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1327 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1328 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1329 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001330 0, /* No OER visible constraints */
Lev Walkin4b5dae32006-10-09 12:27:44 +00001331 &asn_PER_type_NO_IntegerInRange6_constr_1,
Lev Walkin59b176e2005-11-26 11:25:14 +00001332 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001333 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkin59b176e2005-11-26 11:25:14 +00001334};
1335
1336
1337/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1338
Lev Walkin2a744a72013-03-27 01:56:23 -07001339#include <NativeInteger.h>
Lev Walkin59b176e2005-11-26 11:25:14 +00001340
1341/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1342
1343typedef enum CN_IntegerEnumerated1 {
1344 CN_IntegerEnumerated1_a = 1,
1345 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001346} e_CN_IntegerEnumerated1;
Lev Walkin59b176e2005-11-26 11:25:14 +00001347
1348/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1349
Lev Walkin2a744a72013-03-27 01:56:23 -07001350typedef long CN_IntegerEnumerated1_t;
Lev Walkin59b176e2005-11-26 11:25:14 +00001351
1352/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1353
1354extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1355asn_struct_free_f CN_IntegerEnumerated1_free;
1356asn_struct_print_f CN_IntegerEnumerated1_print;
1357asn_constr_check_f CN_IntegerEnumerated1_constraint;
1358ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1359der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1360xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1361xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1362per_type_decoder_f CN_IntegerEnumerated1_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001363per_type_encoder_f CN_IntegerEnumerated1_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001364
1365/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1366
Lev Walkin59b176e2005-11-26 11:25:14 +00001367/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001368 * This type is implemented using NativeInteger,
Lev Walkin59b176e2005-11-26 11:25:14 +00001369 * so here we adjust the DEF accordingly.
1370 */
Lev Walkin59b176e2005-11-26 11:25:14 +00001371
1372/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1373
Lev Walkina7591b52014-10-12 18:37:35 -07001374static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001375 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1376};
1377asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1378 "CN-IntegerEnumerated1",
1379 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001380 &asn_OP_NativeInteger,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001381 NativeInteger_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001382 asn_DEF_CN_IntegerEnumerated1_tags_1,
1383 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1384 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1385 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1386 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1387 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001388 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001389 0, /* No PER visible constraints */
1390 0, 0, /* Defined elsewhere */
1391 0 /* No specifics */
1392};
1393
1394
1395/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1396
1397#include <INTEGER.h>
1398
1399/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1400
1401typedef enum NO_IntegerEnumerated2 {
1402 NO_IntegerEnumerated2_a = 1,
1403 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001404} e_NO_IntegerEnumerated2;
Lev Walkin59b176e2005-11-26 11:25:14 +00001405
1406/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1407
1408typedef INTEGER_t NO_IntegerEnumerated2_t;
1409
1410/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1411
1412extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1413asn_struct_free_f NO_IntegerEnumerated2_free;
1414asn_struct_print_f NO_IntegerEnumerated2_print;
1415asn_constr_check_f NO_IntegerEnumerated2_constraint;
1416ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1417der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1418xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1419xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1420per_type_decoder_f NO_IntegerEnumerated2_decode_uper;
Lev Walkin9f5bb3a2006-08-18 01:46:46 +00001421per_type_encoder_f NO_IntegerEnumerated2_encode_uper;
Lev Walkin59b176e2005-11-26 11:25:14 +00001422
1423/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1424
Lev Walkin59b176e2005-11-26 11:25:14 +00001425/*
1426 * This type is implemented using INTEGER,
1427 * so here we adjust the DEF accordingly.
1428 */
Lev Walkin59b176e2005-11-26 11:25:14 +00001429
1430/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1431
Lev Walkina7591b52014-10-12 18:37:35 -07001432static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkin59b176e2005-11-26 11:25:14 +00001433 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1434};
1435asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1436 "NO-IntegerEnumerated2",
1437 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +08001438 &asn_OP_INTEGER,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001439 INTEGER_constraint,
Lev Walkin59b176e2005-11-26 11:25:14 +00001440 asn_DEF_NO_IntegerEnumerated2_tags_1,
1441 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1442 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1443 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1444 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1445 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001446 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001447 0, /* No PER visible constraints */
1448 0, 0, /* Defined elsewhere */
1449 0 /* No specifics */
1450};
1451