blob: b2e28383819910308ad4a5c915118fe04ceb518d [file] [log] [blame]
Lev Walkin082cadc2005-08-14 02:18:27 +00001
2/*** <<< INCLUDES [CN-IntegerUnlimited] >>> ***/
3
Lev Walkin2a744a72013-03-27 01:56:23 -07004#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00005
6/*** <<< TYPE-DECLS [CN-IntegerUnlimited] >>> ***/
7
Lev Walkin2a744a72013-03-27 01:56:23 -07008typedef long CN_IntegerUnlimited_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00009
10/*** <<< FUNC-DECLS [CN-IntegerUnlimited] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited;
13asn_struct_free_f CN_IntegerUnlimited_free;
14asn_struct_print_f CN_IntegerUnlimited_print;
15asn_constr_check_f CN_IntegerUnlimited_constraint;
16ber_type_decoder_f CN_IntegerUnlimited_decode_ber;
17der_type_encoder_f CN_IntegerUnlimited_encode_der;
18xer_type_decoder_f CN_IntegerUnlimited_decode_xer;
19xer_type_encoder_f CN_IntegerUnlimited_encode_xer;
20
21/*** <<< CODE [CN-IntegerUnlimited] >>> ***/
22
Lev Walkin082cadc2005-08-14 02:18:27 +000023/*
Lev Walkin2a744a72013-03-27 01:56:23 -070024 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +000025 * so here we adjust the DEF accordingly.
26 */
Lev Walkin082cadc2005-08-14 02:18:27 +000027
28/*** <<< STAT-DEFS [CN-IntegerUnlimited] >>> ***/
29
Lev Walkina7591b52014-10-12 18:37:35 -070030static const ber_tlv_tag_t asn_DEF_CN_IntegerUnlimited_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +000031 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
32};
33asn_TYPE_descriptor_t asn_DEF_CN_IntegerUnlimited = {
34 "CN-IntegerUnlimited",
35 "CN-IntegerUnlimited",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080036 NativeInteger_free,
37 NativeInteger_print,
38 NativeInteger_constraint,
39 NativeInteger_decode_ber,
40 NativeInteger_encode_der,
41 NativeInteger_decode_xer,
42 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -070043 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +040044 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +000045 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +000046 asn_DEF_CN_IntegerUnlimited_tags_1,
47 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
48 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
49 asn_DEF_CN_IntegerUnlimited_tags_1, /* Same as above */
50 sizeof(asn_DEF_CN_IntegerUnlimited_tags_1)
51 /sizeof(asn_DEF_CN_IntegerUnlimited_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +040052 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000053 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +000054 0, 0, /* No members */
55 0 /* No specifics */
56};
57
58
59/*** <<< INCLUDES [CN-IntegerMinMax] >>> ***/
60
Lev Walkin2a744a72013-03-27 01:56:23 -070061#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +000062
63/*** <<< TYPE-DECLS [CN-IntegerMinMax] >>> ***/
64
Lev Walkin2a744a72013-03-27 01:56:23 -070065typedef long CN_IntegerMinMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +000066
67/*** <<< FUNC-DECLS [CN-IntegerMinMax] >>> ***/
68
69extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax;
70asn_struct_free_f CN_IntegerMinMax_free;
71asn_struct_print_f CN_IntegerMinMax_print;
72asn_constr_check_f CN_IntegerMinMax_constraint;
73ber_type_decoder_f CN_IntegerMinMax_decode_ber;
74der_type_encoder_f CN_IntegerMinMax_encode_der;
75xer_type_decoder_f CN_IntegerMinMax_decode_xer;
76xer_type_encoder_f CN_IntegerMinMax_encode_xer;
77
78/*** <<< CODE [CN-IntegerMinMax] >>> ***/
79
80int
81CN_IntegerMinMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +000082 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +000083
84 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -070085 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +000086 "%s: value not given (%s:%d)",
87 td->name, __FILE__, __LINE__);
88 return -1;
89 }
90
91
92 if(1 /* No applicable constraints whatsoever */) {
93 /* Nothing is here. See below */
94 }
95
96 /* Replace with underlying type checker */
Lev Walkin2a744a72013-03-27 01:56:23 -070097 td->check_constraints = asn_DEF_NativeInteger.check_constraints;
Lev Walkin1eded352006-07-13 11:19:01 +000098 return td->check_constraints(td, sptr, ctfailcb, app_key);
Lev Walkin082cadc2005-08-14 02:18:27 +000099}
100
101/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700102 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000103 * so here we adjust the DEF accordingly.
104 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000105
106/*** <<< STAT-DEFS [CN-IntegerMinMax] >>> ***/
107
Lev Walkina7591b52014-10-12 18:37:35 -0700108static const ber_tlv_tag_t asn_DEF_CN_IntegerMinMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000109 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
110};
111asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinMax = {
112 "CN-IntegerMinMax",
113 "CN-IntegerMinMax",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800114 NativeInteger_free,
115 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000116 CN_IntegerMinMax_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800117 NativeInteger_decode_ber,
118 NativeInteger_encode_der,
119 NativeInteger_decode_xer,
120 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700121 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400122 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000123 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000124 asn_DEF_CN_IntegerMinMax_tags_1,
125 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
126 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
127 asn_DEF_CN_IntegerMinMax_tags_1, /* Same as above */
128 sizeof(asn_DEF_CN_IntegerMinMax_tags_1)
129 /sizeof(asn_DEF_CN_IntegerMinMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400130 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000131 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000132 0, 0, /* No members */
133 0 /* No specifics */
134};
135
136
137/*** <<< INCLUDES [CN-IntegerMinLow] >>> ***/
138
Lev Walkin2a744a72013-03-27 01:56:23 -0700139#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000140
141/*** <<< TYPE-DECLS [CN-IntegerMinLow] >>> ***/
142
Lev Walkin2a744a72013-03-27 01:56:23 -0700143typedef long CN_IntegerMinLow_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000144
145/*** <<< FUNC-DECLS [CN-IntegerMinLow] >>> ***/
146
147extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow;
148asn_struct_free_f CN_IntegerMinLow_free;
149asn_struct_print_f CN_IntegerMinLow_print;
150asn_constr_check_f CN_IntegerMinLow_constraint;
151ber_type_decoder_f CN_IntegerMinLow_decode_ber;
152der_type_encoder_f CN_IntegerMinLow_encode_der;
153xer_type_decoder_f CN_IntegerMinLow_decode_xer;
154xer_type_encoder_f CN_IntegerMinLow_encode_xer;
155
156/*** <<< CODE [CN-IntegerMinLow] >>> ***/
157
158int
159CN_IntegerMinLow_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000160 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000161 long value;
162
163 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700164 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000165 "%s: value not given (%s:%d)",
166 td->name, __FILE__, __LINE__);
167 return -1;
168 }
169
Lev Walkin2a744a72013-03-27 01:56:23 -0700170 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000171
172 if((value <= 1)) {
173 /* Constraint check succeeded */
174 return 0;
175 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700176 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000177 "%s: constraint failed (%s:%d)",
178 td->name, __FILE__, __LINE__);
179 return -1;
180 }
181}
182
183/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700184 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000185 * so here we adjust the DEF accordingly.
186 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000187
188/*** <<< STAT-DEFS [CN-IntegerMinLow] >>> ***/
189
Lev Walkina7591b52014-10-12 18:37:35 -0700190static const ber_tlv_tag_t asn_DEF_CN_IntegerMinLow_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000191 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
192};
193asn_TYPE_descriptor_t asn_DEF_CN_IntegerMinLow = {
194 "CN-IntegerMinLow",
195 "CN-IntegerMinLow",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800196 NativeInteger_free,
197 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000198 CN_IntegerMinLow_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800199 NativeInteger_decode_ber,
200 NativeInteger_encode_der,
201 NativeInteger_decode_xer,
202 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700203 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400204 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000205 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000206 asn_DEF_CN_IntegerMinLow_tags_1,
207 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
208 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
209 asn_DEF_CN_IntegerMinLow_tags_1, /* Same as above */
210 sizeof(asn_DEF_CN_IntegerMinLow_tags_1)
211 /sizeof(asn_DEF_CN_IntegerMinLow_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400212 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000213 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000214 0, 0, /* No members */
215 0 /* No specifics */
216};
217
218
219/*** <<< INCLUDES [NO-IntegerMinHigh] >>> ***/
220
221#include <INTEGER.h>
222
223/*** <<< TYPE-DECLS [NO-IntegerMinHigh] >>> ***/
224
225typedef INTEGER_t NO_IntegerMinHigh_t;
226
227/*** <<< FUNC-DECLS [NO-IntegerMinHigh] >>> ***/
228
229extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh;
230asn_struct_free_f NO_IntegerMinHigh_free;
231asn_struct_print_f NO_IntegerMinHigh_print;
232asn_constr_check_f NO_IntegerMinHigh_constraint;
233ber_type_decoder_f NO_IntegerMinHigh_decode_ber;
234der_type_encoder_f NO_IntegerMinHigh_encode_der;
235xer_type_decoder_f NO_IntegerMinHigh_decode_xer;
236xer_type_encoder_f NO_IntegerMinHigh_encode_xer;
237
238/*** <<< CODE [NO-IntegerMinHigh] >>> ***/
239
240int
241NO_IntegerMinHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000242 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000243 const INTEGER_t *st = (const INTEGER_t *)sptr;
244 long value;
245
246 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700247 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000248 "%s: value not given (%s:%d)",
249 td->name, __FILE__, __LINE__);
250 return -1;
251 }
252
253 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700254 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000255 "%s: value too large (%s:%d)",
256 td->name, __FILE__, __LINE__);
257 return -1;
258 }
259
Lev Walkinc3f0b892005-08-14 02:40:04 +0000260 if((value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000261 /* Constraint check succeeded */
262 return 0;
263 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700264 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000265 "%s: constraint failed (%s:%d)",
266 td->name, __FILE__, __LINE__);
267 return -1;
268 }
269}
270
271/*
272 * This type is implemented using INTEGER,
273 * so here we adjust the DEF accordingly.
274 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000275
276/*** <<< STAT-DEFS [NO-IntegerMinHigh] >>> ***/
277
Lev Walkina7591b52014-10-12 18:37:35 -0700278static const ber_tlv_tag_t asn_DEF_NO_IntegerMinHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000279 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
280};
281asn_TYPE_descriptor_t asn_DEF_NO_IntegerMinHigh = {
282 "NO-IntegerMinHigh",
283 "NO-IntegerMinHigh",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800284 INTEGER_free,
285 INTEGER_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000286 NO_IntegerMinHigh_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800287 INTEGER_decode_ber,
288 INTEGER_encode_der,
289 INTEGER_decode_xer,
290 INTEGER_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700291 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400292 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000293 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000294 asn_DEF_NO_IntegerMinHigh_tags_1,
295 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
296 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
297 asn_DEF_NO_IntegerMinHigh_tags_1, /* Same as above */
298 sizeof(asn_DEF_NO_IntegerMinHigh_tags_1)
299 /sizeof(asn_DEF_NO_IntegerMinHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400300 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000301 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000302 0, 0, /* No members */
303 0 /* No specifics */
304};
305
306
307/*** <<< INCLUDES [NO-IntegerLowHigh] >>> ***/
308
Lev Walkin8bb57a22007-12-03 13:41:36 +0000309#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000310
311/*** <<< TYPE-DECLS [NO-IntegerLowHigh] >>> ***/
312
Lev Walkin8bb57a22007-12-03 13:41:36 +0000313typedef unsigned long NO_IntegerLowHigh_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000314
315/*** <<< FUNC-DECLS [NO-IntegerLowHigh] >>> ***/
316
317extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh;
318asn_struct_free_f NO_IntegerLowHigh_free;
319asn_struct_print_f NO_IntegerLowHigh_print;
320asn_constr_check_f NO_IntegerLowHigh_constraint;
321ber_type_decoder_f NO_IntegerLowHigh_decode_ber;
322der_type_encoder_f NO_IntegerLowHigh_encode_der;
323xer_type_decoder_f NO_IntegerLowHigh_decode_xer;
324xer_type_encoder_f NO_IntegerLowHigh_encode_xer;
325
326/*** <<< CODE [NO-IntegerLowHigh] >>> ***/
327
328int
329NO_IntegerLowHigh_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000330 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000331 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000332
333 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700334 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000335 "%s: value not given (%s:%d)",
336 td->name, __FILE__, __LINE__);
337 return -1;
338 }
339
Lev Walkin8bb57a22007-12-03 13:41:36 +0000340 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000341
Lev Walkinc3f0b892005-08-14 02:40:04 +0000342 if((value >= 1 && value <= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000343 /* Constraint check succeeded */
344 return 0;
345 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700346 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000347 "%s: constraint failed (%s:%d)",
348 td->name, __FILE__, __LINE__);
349 return -1;
350 }
351}
352
353/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000354 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000355 * so here we adjust the DEF accordingly.
356 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000357
358/*** <<< STAT-DEFS [NO-IntegerLowHigh] >>> ***/
359
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800360static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerLowHigh_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000361 0, 0, 0, 0, 0,
362 0, /* Native long size */
363 1 /* Unsigned representation */
364};
Lev Walkina7591b52014-10-12 18:37:35 -0700365static const ber_tlv_tag_t asn_DEF_NO_IntegerLowHigh_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000366 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
367};
368asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowHigh = {
369 "NO-IntegerLowHigh",
370 "NO-IntegerLowHigh",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800371 NativeInteger_free,
372 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000373 NO_IntegerLowHigh_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800374 NativeInteger_decode_ber,
375 NativeInteger_encode_der,
376 NativeInteger_decode_xer,
377 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700378 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400379 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000380 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000381 asn_DEF_NO_IntegerLowHigh_tags_1,
382 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
383 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
384 asn_DEF_NO_IntegerLowHigh_tags_1, /* Same as above */
385 sizeof(asn_DEF_NO_IntegerLowHigh_tags_1)
386 /sizeof(asn_DEF_NO_IntegerLowHigh_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400387 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000388 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000389 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000390 &asn_SPC_NO_IntegerLowHigh_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000391};
392
393
394/*** <<< INCLUDES [CN-IntegerLowMax] >>> ***/
395
Lev Walkin2a744a72013-03-27 01:56:23 -0700396#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000397
398/*** <<< TYPE-DECLS [CN-IntegerLowMax] >>> ***/
399
Lev Walkin2a744a72013-03-27 01:56:23 -0700400typedef long CN_IntegerLowMax_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000401
402/*** <<< FUNC-DECLS [CN-IntegerLowMax] >>> ***/
403
404extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax;
405asn_struct_free_f CN_IntegerLowMax_free;
406asn_struct_print_f CN_IntegerLowMax_print;
407asn_constr_check_f CN_IntegerLowMax_constraint;
408ber_type_decoder_f CN_IntegerLowMax_decode_ber;
409der_type_encoder_f CN_IntegerLowMax_encode_der;
410xer_type_decoder_f CN_IntegerLowMax_decode_xer;
411xer_type_encoder_f CN_IntegerLowMax_encode_xer;
412
413/*** <<< CODE [CN-IntegerLowMax] >>> ***/
414
415int
416CN_IntegerLowMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000417 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000418 long value;
419
420 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700421 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000422 "%s: value not given (%s:%d)",
423 td->name, __FILE__, __LINE__);
424 return -1;
425 }
426
Lev Walkin2a744a72013-03-27 01:56:23 -0700427 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000428
429 if((value >= 1)) {
430 /* Constraint check succeeded */
431 return 0;
432 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700433 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000434 "%s: constraint failed (%s:%d)",
435 td->name, __FILE__, __LINE__);
436 return -1;
437 }
438}
439
440/*
Lev Walkin2a744a72013-03-27 01:56:23 -0700441 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000442 * so here we adjust the DEF accordingly.
443 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000444
445/*** <<< STAT-DEFS [CN-IntegerLowMax] >>> ***/
446
Lev Walkina7591b52014-10-12 18:37:35 -0700447static const ber_tlv_tag_t asn_DEF_CN_IntegerLowMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000448 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
449};
450asn_TYPE_descriptor_t asn_DEF_CN_IntegerLowMax = {
451 "CN-IntegerLowMax",
452 "CN-IntegerLowMax",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800453 NativeInteger_free,
454 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000455 CN_IntegerLowMax_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800456 NativeInteger_decode_ber,
457 NativeInteger_encode_der,
458 NativeInteger_decode_xer,
459 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700460 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400461 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000462 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000463 asn_DEF_CN_IntegerLowMax_tags_1,
464 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
465 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
466 asn_DEF_CN_IntegerLowMax_tags_1, /* Same as above */
467 sizeof(asn_DEF_CN_IntegerLowMax_tags_1)
468 /sizeof(asn_DEF_CN_IntegerLowMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400469 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000470 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000471 0, 0, /* No members */
472 0 /* No specifics */
473};
474
475
476/*** <<< INCLUDES [NO-IntegerHighMax] >>> ***/
477
478#include <INTEGER.h>
479
480/*** <<< TYPE-DECLS [NO-IntegerHighMax] >>> ***/
481
482typedef INTEGER_t NO_IntegerHighMax_t;
483
484/*** <<< FUNC-DECLS [NO-IntegerHighMax] >>> ***/
485
486extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax;
487asn_struct_free_f NO_IntegerHighMax_free;
488asn_struct_print_f NO_IntegerHighMax_print;
489asn_constr_check_f NO_IntegerHighMax_constraint;
490ber_type_decoder_f NO_IntegerHighMax_decode_ber;
491der_type_encoder_f NO_IntegerHighMax_encode_der;
492xer_type_decoder_f NO_IntegerHighMax_decode_xer;
493xer_type_encoder_f NO_IntegerHighMax_encode_xer;
494
495/*** <<< CODE [NO-IntegerHighMax] >>> ***/
496
497int
498NO_IntegerHighMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000499 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000500 const INTEGER_t *st = (const INTEGER_t *)sptr;
501 long value;
502
503 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700504 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000505 "%s: value not given (%s:%d)",
506 td->name, __FILE__, __LINE__);
507 return -1;
508 }
509
510 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700511 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000512 "%s: value too large (%s:%d)",
513 td->name, __FILE__, __LINE__);
514 return -1;
515 }
516
Lev Walkinc3f0b892005-08-14 02:40:04 +0000517 if((value >= 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000518 /* Constraint check succeeded */
519 return 0;
520 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700521 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000522 "%s: constraint failed (%s:%d)",
523 td->name, __FILE__, __LINE__);
524 return -1;
525 }
526}
527
528/*
529 * This type is implemented using INTEGER,
530 * so here we adjust the DEF accordingly.
531 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000532
533/*** <<< STAT-DEFS [NO-IntegerHighMax] >>> ***/
534
Lev Walkina7591b52014-10-12 18:37:35 -0700535static const ber_tlv_tag_t asn_DEF_NO_IntegerHighMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000536 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
537};
538asn_TYPE_descriptor_t asn_DEF_NO_IntegerHighMax = {
539 "NO-IntegerHighMax",
540 "NO-IntegerHighMax",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800541 INTEGER_free,
542 INTEGER_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000543 NO_IntegerHighMax_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800544 INTEGER_decode_ber,
545 INTEGER_encode_der,
546 INTEGER_decode_xer,
547 INTEGER_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700548 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400549 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000550 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000551 asn_DEF_NO_IntegerHighMax_tags_1,
552 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
553 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
554 asn_DEF_NO_IntegerHighMax_tags_1, /* Same as above */
555 sizeof(asn_DEF_NO_IntegerHighMax_tags_1)
556 /sizeof(asn_DEF_NO_IntegerHighMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400557 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000558 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000559 0, 0, /* No members */
560 0 /* No specifics */
561};
562
563
564/*** <<< INCLUDES [NO-IntegerLowestMax] >>> ***/
565
566#include <INTEGER.h>
567
568/*** <<< TYPE-DECLS [NO-IntegerLowestMax] >>> ***/
569
570typedef INTEGER_t NO_IntegerLowestMax_t;
571
572/*** <<< FUNC-DECLS [NO-IntegerLowestMax] >>> ***/
573
574extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax;
575asn_struct_free_f NO_IntegerLowestMax_free;
576asn_struct_print_f NO_IntegerLowestMax_print;
577asn_constr_check_f NO_IntegerLowestMax_constraint;
578ber_type_decoder_f NO_IntegerLowestMax_decode_ber;
579der_type_encoder_f NO_IntegerLowestMax_encode_der;
580xer_type_decoder_f NO_IntegerLowestMax_decode_xer;
581xer_type_encoder_f NO_IntegerLowestMax_encode_xer;
582
583/*** <<< CODE [NO-IntegerLowestMax] >>> ***/
584
585int
586NO_IntegerLowestMax_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000587 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000588 const INTEGER_t *st = (const INTEGER_t *)sptr;
589 long value;
590
591 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700592 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000593 "%s: value not given (%s:%d)",
594 td->name, __FILE__, __LINE__);
595 return -1;
596 }
597
598 if(asn_INTEGER2long(st, &value)) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700599 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000600 "%s: value too large (%s:%d)",
601 td->name, __FILE__, __LINE__);
602 return -1;
603 }
604
Lev Walkinc3f0b892005-08-14 02:40:04 +0000605 if((value >= -3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000606 /* Constraint check succeeded */
607 return 0;
608 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700609 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000610 "%s: constraint failed (%s:%d)",
611 td->name, __FILE__, __LINE__);
612 return -1;
613 }
614}
615
616/*
617 * This type is implemented using INTEGER,
618 * so here we adjust the DEF accordingly.
619 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000620
621/*** <<< STAT-DEFS [NO-IntegerLowestMax] >>> ***/
622
Lev Walkina7591b52014-10-12 18:37:35 -0700623static const ber_tlv_tag_t asn_DEF_NO_IntegerLowestMax_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000624 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
625};
626asn_TYPE_descriptor_t asn_DEF_NO_IntegerLowestMax = {
627 "NO-IntegerLowestMax",
628 "NO-IntegerLowestMax",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800629 INTEGER_free,
630 INTEGER_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000631 NO_IntegerLowestMax_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800632 INTEGER_decode_ber,
633 INTEGER_encode_der,
634 INTEGER_decode_xer,
635 INTEGER_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700636 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400637 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000638 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000639 asn_DEF_NO_IntegerLowestMax_tags_1,
640 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
641 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
642 asn_DEF_NO_IntegerLowestMax_tags_1, /* Same as above */
643 sizeof(asn_DEF_NO_IntegerLowestMax_tags_1)
644 /sizeof(asn_DEF_NO_IntegerLowestMax_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400645 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000646 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000647 0, 0, /* No members */
648 0 /* No specifics */
649};
650
651
652/*** <<< INCLUDES [NO-IntegerOutRange] >>> ***/
653
Lev Walkin8bb57a22007-12-03 13:41:36 +0000654#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000655
656/*** <<< TYPE-DECLS [NO-IntegerOutRange] >>> ***/
657
Lev Walkin8bb57a22007-12-03 13:41:36 +0000658typedef unsigned long NO_IntegerOutRange_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000659
660/*** <<< FUNC-DECLS [NO-IntegerOutRange] >>> ***/
661
662extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange;
663asn_struct_free_f NO_IntegerOutRange_free;
664asn_struct_print_f NO_IntegerOutRange_print;
665asn_constr_check_f NO_IntegerOutRange_constraint;
666ber_type_decoder_f NO_IntegerOutRange_decode_ber;
667der_type_encoder_f NO_IntegerOutRange_encode_der;
668xer_type_decoder_f NO_IntegerOutRange_decode_xer;
669xer_type_encoder_f NO_IntegerOutRange_encode_xer;
670
671/*** <<< CODE [NO-IntegerOutRange] >>> ***/
672
673int
674NO_IntegerOutRange_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000675 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000676 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000677
678 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700679 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000680 "%s: value not given (%s:%d)",
681 td->name, __FILE__, __LINE__);
682 return -1;
683 }
684
Lev Walkin8bb57a22007-12-03 13:41:36 +0000685 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000686
Lev Walkinc3f0b892005-08-14 02:40:04 +0000687 if((value >= 3000000000 && value <= 3000000001)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000688 /* Constraint check succeeded */
689 return 0;
690 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700691 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000692 "%s: constraint failed (%s:%d)",
693 td->name, __FILE__, __LINE__);
694 return -1;
695 }
696}
697
698/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000699 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000700 * so here we adjust the DEF accordingly.
701 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000702
703/*** <<< STAT-DEFS [NO-IntegerOutRange] >>> ***/
704
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800705static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutRange_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000706 0, 0, 0, 0, 0,
707 0, /* Native long size */
708 1 /* Unsigned representation */
709};
Lev Walkina7591b52014-10-12 18:37:35 -0700710static const ber_tlv_tag_t asn_DEF_NO_IntegerOutRange_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000711 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
712};
713asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutRange = {
714 "NO-IntegerOutRange",
715 "NO-IntegerOutRange",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800716 NativeInteger_free,
717 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000718 NO_IntegerOutRange_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800719 NativeInteger_decode_ber,
720 NativeInteger_encode_der,
721 NativeInteger_decode_xer,
722 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700723 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400724 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000725 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000726 asn_DEF_NO_IntegerOutRange_tags_1,
727 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
728 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
729 asn_DEF_NO_IntegerOutRange_tags_1, /* Same as above */
730 sizeof(asn_DEF_NO_IntegerOutRange_tags_1)
731 /sizeof(asn_DEF_NO_IntegerOutRange_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400732 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000733 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000734 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000735 &asn_SPC_NO_IntegerOutRange_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000736};
737
738
739/*** <<< INCLUDES [NO-IntegerOutValue] >>> ***/
740
Lev Walkin8bb57a22007-12-03 13:41:36 +0000741#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000742
743/*** <<< TYPE-DECLS [NO-IntegerOutValue] >>> ***/
744
Lev Walkin8bb57a22007-12-03 13:41:36 +0000745typedef unsigned long NO_IntegerOutValue_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000746
747/*** <<< FUNC-DECLS [NO-IntegerOutValue] >>> ***/
748
749extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue;
750asn_struct_free_f NO_IntegerOutValue_free;
751asn_struct_print_f NO_IntegerOutValue_print;
752asn_constr_check_f NO_IntegerOutValue_constraint;
753ber_type_decoder_f NO_IntegerOutValue_decode_ber;
754der_type_encoder_f NO_IntegerOutValue_encode_der;
755xer_type_decoder_f NO_IntegerOutValue_decode_xer;
756xer_type_encoder_f NO_IntegerOutValue_encode_xer;
757
758/*** <<< CODE [NO-IntegerOutValue] >>> ***/
759
760int
761NO_IntegerOutValue_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000762 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000763 unsigned long value;
Lev Walkin082cadc2005-08-14 02:18:27 +0000764
765 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700766 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000767 "%s: value not given (%s:%d)",
768 td->name, __FILE__, __LINE__);
769 return -1;
770 }
771
Lev Walkin8bb57a22007-12-03 13:41:36 +0000772 value = *(const unsigned long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000773
Lev Walkinc3f0b892005-08-14 02:40:04 +0000774 if((value == 3000000000)) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000775 /* Constraint check succeeded */
776 return 0;
777 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700778 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000779 "%s: constraint failed (%s:%d)",
780 td->name, __FILE__, __LINE__);
781 return -1;
782 }
783}
784
785/*
Lev Walkin8bb57a22007-12-03 13:41:36 +0000786 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000787 * so here we adjust the DEF accordingly.
788 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000789
790/*** <<< STAT-DEFS [NO-IntegerOutValue] >>> ***/
791
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800792static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerOutValue_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +0000793 0, 0, 0, 0, 0,
794 0, /* Native long size */
795 1 /* Unsigned representation */
796};
Lev Walkina7591b52014-10-12 18:37:35 -0700797static const ber_tlv_tag_t asn_DEF_NO_IntegerOutValue_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000798 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
799};
800asn_TYPE_descriptor_t asn_DEF_NO_IntegerOutValue = {
801 "NO-IntegerOutValue",
802 "NO-IntegerOutValue",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800803 NativeInteger_free,
804 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000805 NO_IntegerOutValue_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800806 NativeInteger_decode_ber,
807 NativeInteger_encode_der,
808 NativeInteger_decode_xer,
809 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700810 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400811 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000812 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000813 asn_DEF_NO_IntegerOutValue_tags_1,
814 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
815 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
816 asn_DEF_NO_IntegerOutValue_tags_1, /* Same as above */
817 sizeof(asn_DEF_NO_IntegerOutValue_tags_1)
818 /sizeof(asn_DEF_NO_IntegerOutValue_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400819 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000820 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000821 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +0000822 &asn_SPC_NO_IntegerOutValue_specs_1 /* Additional specs */
Lev Walkin082cadc2005-08-14 02:18:27 +0000823};
824
825
826/*** <<< INCLUDES [OK-IntegerInRange1] >>> ***/
827
Lev Walkinc3f0b892005-08-14 02:40:04 +0000828#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000829
830/*** <<< TYPE-DECLS [OK-IntegerInRange1] >>> ***/
831
Lev Walkinc3f0b892005-08-14 02:40:04 +0000832typedef long OK_IntegerInRange1_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000833
834/*** <<< FUNC-DECLS [OK-IntegerInRange1] >>> ***/
835
836extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1;
837asn_struct_free_f OK_IntegerInRange1_free;
838asn_struct_print_f OK_IntegerInRange1_print;
839asn_constr_check_f OK_IntegerInRange1_constraint;
840ber_type_decoder_f OK_IntegerInRange1_decode_ber;
841der_type_encoder_f OK_IntegerInRange1_encode_der;
842xer_type_decoder_f OK_IntegerInRange1_decode_xer;
843xer_type_encoder_f OK_IntegerInRange1_encode_xer;
844
845/*** <<< CODE [OK-IntegerInRange1] >>> ***/
846
847int
848OK_IntegerInRange1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000849 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000850 long value;
851
852 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700853 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000854 "%s: value not given (%s:%d)",
855 td->name, __FILE__, __LINE__);
856 return -1;
857 }
858
Lev Walkinc3f0b892005-08-14 02:40:04 +0000859 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000860
861 if((value >= -100 && value <= 100)) {
862 /* Constraint check succeeded */
863 return 0;
864 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700865 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000866 "%s: constraint failed (%s:%d)",
867 td->name, __FILE__, __LINE__);
868 return -1;
869 }
870}
871
872/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000873 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000874 * so here we adjust the DEF accordingly.
875 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000876
877/*** <<< STAT-DEFS [OK-IntegerInRange1] >>> ***/
878
Lev Walkina7591b52014-10-12 18:37:35 -0700879static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange1_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000880 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
881};
882asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange1 = {
883 "OK-IntegerInRange1",
884 "OK-IntegerInRange1",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800885 NativeInteger_free,
886 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000887 OK_IntegerInRange1_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800888 NativeInteger_decode_ber,
889 NativeInteger_encode_der,
890 NativeInteger_decode_xer,
891 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700892 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400893 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000894 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000895 asn_DEF_OK_IntegerInRange1_tags_1,
896 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
897 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
898 asn_DEF_OK_IntegerInRange1_tags_1, /* Same as above */
899 sizeof(asn_DEF_OK_IntegerInRange1_tags_1)
900 /sizeof(asn_DEF_OK_IntegerInRange1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400901 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000902 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000903 0, 0, /* No members */
904 0 /* No specifics */
905};
906
907
908/*** <<< INCLUDES [OK-IntegerInRange2] >>> ***/
909
Lev Walkinc3f0b892005-08-14 02:40:04 +0000910#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000911
912/*** <<< TYPE-DECLS [OK-IntegerInRange2] >>> ***/
913
Lev Walkinc3f0b892005-08-14 02:40:04 +0000914typedef long OK_IntegerInRange2_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000915
916/*** <<< FUNC-DECLS [OK-IntegerInRange2] >>> ***/
917
918extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2;
919asn_struct_free_f OK_IntegerInRange2_free;
920asn_struct_print_f OK_IntegerInRange2_print;
921asn_constr_check_f OK_IntegerInRange2_constraint;
922ber_type_decoder_f OK_IntegerInRange2_decode_ber;
923der_type_encoder_f OK_IntegerInRange2_encode_der;
924xer_type_decoder_f OK_IntegerInRange2_decode_xer;
925xer_type_encoder_f OK_IntegerInRange2_encode_xer;
926
927/*** <<< CODE [OK-IntegerInRange2] >>> ***/
928
929int
930OK_IntegerInRange2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +0000931 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +0000932 long value;
933
934 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700935 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000936 "%s: value not given (%s:%d)",
937 td->name, __FILE__, __LINE__);
938 return -1;
939 }
940
Lev Walkinc3f0b892005-08-14 02:40:04 +0000941 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +0000942
943 if(((value == -100) || (value == 100))) {
944 /* Constraint check succeeded */
945 return 0;
946 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -0700947 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +0000948 "%s: constraint failed (%s:%d)",
949 td->name, __FILE__, __LINE__);
950 return -1;
951 }
952}
953
954/*
Lev Walkinc3f0b892005-08-14 02:40:04 +0000955 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +0000956 * so here we adjust the DEF accordingly.
957 */
Lev Walkin082cadc2005-08-14 02:18:27 +0000958
959/*** <<< STAT-DEFS [OK-IntegerInRange2] >>> ***/
960
Lev Walkina7591b52014-10-12 18:37:35 -0700961static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange2_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +0000962 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
963};
964asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange2 = {
965 "OK-IntegerInRange2",
966 "OK-IntegerInRange2",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800967 NativeInteger_free,
968 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +0000969 OK_IntegerInRange2_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +0800970 NativeInteger_decode_ber,
971 NativeInteger_encode_der,
972 NativeInteger_decode_xer,
973 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -0700974 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +0400975 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +0000976 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +0000977 asn_DEF_OK_IntegerInRange2_tags_1,
978 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
979 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
980 asn_DEF_OK_IntegerInRange2_tags_1, /* Same as above */
981 sizeof(asn_DEF_OK_IntegerInRange2_tags_1)
982 /sizeof(asn_DEF_OK_IntegerInRange2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +0400983 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +0000984 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +0000985 0, 0, /* No members */
986 0 /* No specifics */
987};
988
989
990/*** <<< INCLUDES [OK-IntegerInRange3] >>> ***/
991
Lev Walkinc3f0b892005-08-14 02:40:04 +0000992#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +0000993
994/*** <<< TYPE-DECLS [OK-IntegerInRange3] >>> ***/
995
Lev Walkinc3f0b892005-08-14 02:40:04 +0000996typedef long OK_IntegerInRange3_t;
Lev Walkin082cadc2005-08-14 02:18:27 +0000997
998/*** <<< FUNC-DECLS [OK-IntegerInRange3] >>> ***/
999
1000extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3;
1001asn_struct_free_f OK_IntegerInRange3_free;
1002asn_struct_print_f OK_IntegerInRange3_print;
1003asn_constr_check_f OK_IntegerInRange3_constraint;
1004ber_type_decoder_f OK_IntegerInRange3_decode_ber;
1005der_type_encoder_f OK_IntegerInRange3_encode_der;
1006xer_type_decoder_f OK_IntegerInRange3_decode_xer;
1007xer_type_encoder_f OK_IntegerInRange3_encode_xer;
1008
1009/*** <<< CODE [OK-IntegerInRange3] >>> ***/
1010
1011int
1012OK_IntegerInRange3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001013 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001014 long value;
1015
1016 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001017 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001018 "%s: value not given (%s:%d)",
1019 td->name, __FILE__, __LINE__);
1020 return -1;
1021 }
1022
Lev Walkinc3f0b892005-08-14 02:40:04 +00001023 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001024
Lev Walkin63b41262007-11-06 01:48:46 +00001025 if((value >= (-2147483647L - 1) && value <= 2147483647)) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001026 /* Constraint check succeeded */
1027 return 0;
1028 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001029 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001030 "%s: constraint failed (%s:%d)",
1031 td->name, __FILE__, __LINE__);
1032 return -1;
1033 }
1034}
1035
1036/*
Lev Walkinc3f0b892005-08-14 02:40:04 +00001037 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001038 * so here we adjust the DEF accordingly.
1039 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001040
1041/*** <<< STAT-DEFS [OK-IntegerInRange3] >>> ***/
1042
Lev Walkina7591b52014-10-12 18:37:35 -07001043static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange3_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001044 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1045};
1046asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange3 = {
1047 "OK-IntegerInRange3",
1048 "OK-IntegerInRange3",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001049 NativeInteger_free,
1050 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +00001051 OK_IntegerInRange3_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001052 NativeInteger_decode_ber,
1053 NativeInteger_encode_der,
1054 NativeInteger_decode_xer,
1055 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001056 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001057 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +00001058 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001059 asn_DEF_OK_IntegerInRange3_tags_1,
1060 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
1061 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
1062 asn_DEF_OK_IntegerInRange3_tags_1, /* Same as above */
1063 sizeof(asn_DEF_OK_IntegerInRange3_tags_1)
1064 /sizeof(asn_DEF_OK_IntegerInRange3_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001065 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001066 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001067 0, 0, /* No members */
1068 0 /* No specifics */
1069};
1070
1071
1072/*** <<< INCLUDES [OK-IntegerInRange4] >>> ***/
1073
Lev Walkinc3f0b892005-08-14 02:40:04 +00001074#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001075
1076/*** <<< TYPE-DECLS [OK-IntegerInRange4] >>> ***/
1077
Lev Walkinc3f0b892005-08-14 02:40:04 +00001078typedef long OK_IntegerInRange4_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001079
1080/*** <<< FUNC-DECLS [OK-IntegerInRange4] >>> ***/
1081
1082extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4;
1083asn_struct_free_f OK_IntegerInRange4_free;
1084asn_struct_print_f OK_IntegerInRange4_print;
1085asn_constr_check_f OK_IntegerInRange4_constraint;
1086ber_type_decoder_f OK_IntegerInRange4_decode_ber;
1087der_type_encoder_f OK_IntegerInRange4_encode_der;
1088xer_type_decoder_f OK_IntegerInRange4_decode_xer;
1089xer_type_encoder_f OK_IntegerInRange4_encode_xer;
1090
1091/*** <<< CODE [OK-IntegerInRange4] >>> ***/
1092
1093int
1094OK_IntegerInRange4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001095 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001096 long value;
1097
1098 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001099 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001100 "%s: value not given (%s:%d)",
1101 td->name, __FILE__, __LINE__);
1102 return -1;
1103 }
1104
Lev Walkinc3f0b892005-08-14 02:40:04 +00001105 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001106
Lev Walkin63b41262007-11-06 01:48:46 +00001107 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001108 /* Constraint check succeeded */
1109 return 0;
1110 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001111 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001112 "%s: constraint failed (%s:%d)",
1113 td->name, __FILE__, __LINE__);
1114 return -1;
1115 }
1116}
1117
1118/*
Lev Walkinc3f0b892005-08-14 02:40:04 +00001119 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001120 * so here we adjust the DEF accordingly.
1121 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001122
1123/*** <<< STAT-DEFS [OK-IntegerInRange4] >>> ***/
1124
Lev Walkina7591b52014-10-12 18:37:35 -07001125static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange4_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001126 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1127};
1128asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange4 = {
1129 "OK-IntegerInRange4",
1130 "OK-IntegerInRange4",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001131 NativeInteger_free,
1132 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +00001133 OK_IntegerInRange4_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001134 NativeInteger_decode_ber,
1135 NativeInteger_encode_der,
1136 NativeInteger_decode_xer,
1137 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001138 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001139 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +00001140 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001141 asn_DEF_OK_IntegerInRange4_tags_1,
1142 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1143 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
1144 asn_DEF_OK_IntegerInRange4_tags_1, /* Same as above */
1145 sizeof(asn_DEF_OK_IntegerInRange4_tags_1)
1146 /sizeof(asn_DEF_OK_IntegerInRange4_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001147 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001148 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001149 0, 0, /* No members */
1150 0 /* No specifics */
1151};
1152
1153
1154/*** <<< INCLUDES [OK-IntegerInRange5] >>> ***/
1155
Lev Walkin2a744a72013-03-27 01:56:23 -07001156#include <NativeInteger.h>
Lev Walkin082cadc2005-08-14 02:18:27 +00001157
1158/*** <<< TYPE-DECLS [OK-IntegerInRange5] >>> ***/
1159
Lev Walkin2a744a72013-03-27 01:56:23 -07001160typedef long OK_IntegerInRange5_t;
Lev Walkin082cadc2005-08-14 02:18:27 +00001161
1162/*** <<< FUNC-DECLS [OK-IntegerInRange5] >>> ***/
1163
1164extern asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5;
1165asn_struct_free_f OK_IntegerInRange5_free;
1166asn_struct_print_f OK_IntegerInRange5_print;
1167asn_constr_check_f OK_IntegerInRange5_constraint;
1168ber_type_decoder_f OK_IntegerInRange5_decode_ber;
1169der_type_encoder_f OK_IntegerInRange5_encode_der;
1170xer_type_decoder_f OK_IntegerInRange5_decode_xer;
1171xer_type_encoder_f OK_IntegerInRange5_encode_xer;
1172
1173/*** <<< CODE [OK-IntegerInRange5] >>> ***/
1174
1175int
1176OK_IntegerInRange5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001177 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001178 long value;
1179
1180 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001181 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001182 "%s: value not given (%s:%d)",
1183 td->name, __FILE__, __LINE__);
1184 return -1;
1185 }
1186
Lev Walkin2a744a72013-03-27 01:56:23 -07001187 value = *(const long *)sptr;
Lev Walkin082cadc2005-08-14 02:18:27 +00001188
Lev Walkin63b41262007-11-06 01:48:46 +00001189 if(((value == (-2147483647L - 1)) || (value == 2147483647))) {
Lev Walkin082cadc2005-08-14 02:18:27 +00001190 /* Constraint check succeeded */
1191 return 0;
1192 } else {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001193 ASN__CTFAIL(app_key, td, sptr,
Lev Walkin082cadc2005-08-14 02:18:27 +00001194 "%s: constraint failed (%s:%d)",
1195 td->name, __FILE__, __LINE__);
1196 return -1;
1197 }
1198}
1199
1200/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001201 * This type is implemented using NativeInteger,
Lev Walkin082cadc2005-08-14 02:18:27 +00001202 * so here we adjust the DEF accordingly.
1203 */
Lev Walkin082cadc2005-08-14 02:18:27 +00001204
1205/*** <<< STAT-DEFS [OK-IntegerInRange5] >>> ***/
1206
Lev Walkina7591b52014-10-12 18:37:35 -07001207static const ber_tlv_tag_t asn_DEF_OK_IntegerInRange5_tags_1[] = {
Lev Walkin082cadc2005-08-14 02:18:27 +00001208 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1209};
1210asn_TYPE_descriptor_t asn_DEF_OK_IntegerInRange5 = {
1211 "OK-IntegerInRange5",
1212 "OK-IntegerInRange5",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001213 NativeInteger_free,
1214 NativeInteger_print,
Lev Walkin082cadc2005-08-14 02:18:27 +00001215 OK_IntegerInRange5_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001216 NativeInteger_decode_ber,
1217 NativeInteger_encode_der,
1218 NativeInteger_decode_xer,
1219 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001220 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001221 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkin082cadc2005-08-14 02:18:27 +00001222 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001223 asn_DEF_OK_IntegerInRange5_tags_1,
1224 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1225 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
1226 asn_DEF_OK_IntegerInRange5_tags_1, /* Same as above */
1227 sizeof(asn_DEF_OK_IntegerInRange5_tags_1)
1228 /sizeof(asn_DEF_OK_IntegerInRange5_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001229 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001230 0, /* No PER visible constraints */
Lev Walkin082cadc2005-08-14 02:18:27 +00001231 0, 0, /* No members */
1232 0 /* No specifics */
1233};
1234
Lev Walkinc3f0b892005-08-14 02:40:04 +00001235
Lev Walkinfee6f712005-08-27 03:13:51 +00001236/*** <<< INCLUDES [NO-IntegerInRange6] >>> ***/
1237
Lev Walkin8bb57a22007-12-03 13:41:36 +00001238#include <NativeInteger.h>
Lev Walkinfee6f712005-08-27 03:13:51 +00001239
1240/*** <<< TYPE-DECLS [NO-IntegerInRange6] >>> ***/
1241
Lev Walkin8bb57a22007-12-03 13:41:36 +00001242typedef unsigned long NO_IntegerInRange6_t;
Lev Walkinfee6f712005-08-27 03:13:51 +00001243
1244/*** <<< FUNC-DECLS [NO-IntegerInRange6] >>> ***/
1245
1246extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6;
1247asn_struct_free_f NO_IntegerInRange6_free;
1248asn_struct_print_f NO_IntegerInRange6_print;
1249asn_constr_check_f NO_IntegerInRange6_constraint;
1250ber_type_decoder_f NO_IntegerInRange6_decode_ber;
1251der_type_encoder_f NO_IntegerInRange6_encode_der;
1252xer_type_decoder_f NO_IntegerInRange6_decode_xer;
1253xer_type_encoder_f NO_IntegerInRange6_encode_xer;
1254
1255/*** <<< CODE [NO-IntegerInRange6] >>> ***/
1256
1257int
1258NO_IntegerInRange6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin1eded352006-07-13 11:19:01 +00001259 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
Lev Walkinfee6f712005-08-27 03:13:51 +00001260
1261 if(!sptr) {
Lev Walkin7c1dc052016-03-14 03:08:15 -07001262 ASN__CTFAIL(app_key, td, sptr,
Lev Walkinfee6f712005-08-27 03:13:51 +00001263 "%s: value not given (%s:%d)",
1264 td->name, __FILE__, __LINE__);
1265 return -1;
1266 }
1267
Lev Walkinfee6f712005-08-27 03:13:51 +00001268
Lev Walkin8bb57a22007-12-03 13:41:36 +00001269 /* Constraint check succeeded */
1270 return 0;
Lev Walkinfee6f712005-08-27 03:13:51 +00001271}
1272
1273/*
Lev Walkin8bb57a22007-12-03 13:41:36 +00001274 * This type is implemented using NativeInteger,
Lev Walkinfee6f712005-08-27 03:13:51 +00001275 * so here we adjust the DEF accordingly.
1276 */
Lev Walkinfee6f712005-08-27 03:13:51 +00001277
1278/*** <<< STAT-DEFS [NO-IntegerInRange6] >>> ***/
1279
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001280static const asn_INTEGER_specifics_t asn_SPC_NO_IntegerInRange6_specs_1 = {
Lev Walkin8bb57a22007-12-03 13:41:36 +00001281 0, 0, 0, 0, 0,
1282 0, /* Native long size */
1283 1 /* Unsigned representation */
1284};
Lev Walkina7591b52014-10-12 18:37:35 -07001285static const ber_tlv_tag_t asn_DEF_NO_IntegerInRange6_tags_1[] = {
Lev Walkinfee6f712005-08-27 03:13:51 +00001286 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1287};
1288asn_TYPE_descriptor_t asn_DEF_NO_IntegerInRange6 = {
1289 "NO-IntegerInRange6",
1290 "NO-IntegerInRange6",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001291 NativeInteger_free,
1292 NativeInteger_print,
Lev Walkinfee6f712005-08-27 03:13:51 +00001293 NO_IntegerInRange6_constraint,
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001294 NativeInteger_decode_ber,
1295 NativeInteger_encode_der,
1296 NativeInteger_decode_xer,
1297 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001298 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001299 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinfee6f712005-08-27 03:13:51 +00001300 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001301 asn_DEF_NO_IntegerInRange6_tags_1,
1302 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1303 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
1304 asn_DEF_NO_IntegerInRange6_tags_1, /* Same as above */
1305 sizeof(asn_DEF_NO_IntegerInRange6_tags_1)
1306 /sizeof(asn_DEF_NO_IntegerInRange6_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001307 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001308 0, /* No PER visible constraints */
Lev Walkinfee6f712005-08-27 03:13:51 +00001309 0, 0, /* No members */
Lev Walkin8bb57a22007-12-03 13:41:36 +00001310 &asn_SPC_NO_IntegerInRange6_specs_1 /* Additional specs */
Lev Walkinfee6f712005-08-27 03:13:51 +00001311};
1312
1313
Lev Walkinc3f0b892005-08-14 02:40:04 +00001314/*** <<< INCLUDES [CN-IntegerEnumerated1] >>> ***/
1315
Lev Walkin2a744a72013-03-27 01:56:23 -07001316#include <NativeInteger.h>
Lev Walkinc3f0b892005-08-14 02:40:04 +00001317
1318/*** <<< DEPS [CN-IntegerEnumerated1] >>> ***/
1319
1320typedef enum CN_IntegerEnumerated1 {
1321 CN_IntegerEnumerated1_a = 1,
1322 CN_IntegerEnumerated1_b = 2
Lev Walkin171487e2006-03-21 07:25:18 +00001323} e_CN_IntegerEnumerated1;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001324
1325/*** <<< TYPE-DECLS [CN-IntegerEnumerated1] >>> ***/
1326
Lev Walkin2a744a72013-03-27 01:56:23 -07001327typedef long CN_IntegerEnumerated1_t;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001328
1329/*** <<< FUNC-DECLS [CN-IntegerEnumerated1] >>> ***/
1330
1331extern asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1;
1332asn_struct_free_f CN_IntegerEnumerated1_free;
1333asn_struct_print_f CN_IntegerEnumerated1_print;
1334asn_constr_check_f CN_IntegerEnumerated1_constraint;
1335ber_type_decoder_f CN_IntegerEnumerated1_decode_ber;
1336der_type_encoder_f CN_IntegerEnumerated1_encode_der;
1337xer_type_decoder_f CN_IntegerEnumerated1_decode_xer;
1338xer_type_encoder_f CN_IntegerEnumerated1_encode_xer;
1339
1340/*** <<< CODE [CN-IntegerEnumerated1] >>> ***/
1341
Lev Walkinc3f0b892005-08-14 02:40:04 +00001342/*
Lev Walkin2a744a72013-03-27 01:56:23 -07001343 * This type is implemented using NativeInteger,
Lev Walkinc3f0b892005-08-14 02:40:04 +00001344 * so here we adjust the DEF accordingly.
1345 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001346
1347/*** <<< STAT-DEFS [CN-IntegerEnumerated1] >>> ***/
1348
Lev Walkina7591b52014-10-12 18:37:35 -07001349static const ber_tlv_tag_t asn_DEF_CN_IntegerEnumerated1_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001350 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1351};
1352asn_TYPE_descriptor_t asn_DEF_CN_IntegerEnumerated1 = {
1353 "CN-IntegerEnumerated1",
1354 "CN-IntegerEnumerated1",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001355 NativeInteger_free,
1356 NativeInteger_print,
1357 NativeInteger_constraint,
1358 NativeInteger_decode_ber,
1359 NativeInteger_encode_der,
1360 NativeInteger_decode_xer,
1361 NativeInteger_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001362 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001363 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001364 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001365 asn_DEF_CN_IntegerEnumerated1_tags_1,
1366 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1367 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
1368 asn_DEF_CN_IntegerEnumerated1_tags_1, /* Same as above */
1369 sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1)
1370 /sizeof(asn_DEF_CN_IntegerEnumerated1_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001371 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001372 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001373 0, 0, /* Defined elsewhere */
1374 0 /* No specifics */
1375};
1376
1377
1378/*** <<< INCLUDES [NO-IntegerEnumerated2] >>> ***/
1379
1380#include <INTEGER.h>
1381
1382/*** <<< DEPS [NO-IntegerEnumerated2] >>> ***/
1383
1384typedef enum NO_IntegerEnumerated2 {
1385 NO_IntegerEnumerated2_a = 1,
1386 NO_IntegerEnumerated2_b = 3000000000
Lev Walkin171487e2006-03-21 07:25:18 +00001387} e_NO_IntegerEnumerated2;
Lev Walkinc3f0b892005-08-14 02:40:04 +00001388
1389/*** <<< TYPE-DECLS [NO-IntegerEnumerated2] >>> ***/
1390
1391typedef INTEGER_t NO_IntegerEnumerated2_t;
1392
1393/*** <<< FUNC-DECLS [NO-IntegerEnumerated2] >>> ***/
1394
1395extern asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2;
1396asn_struct_free_f NO_IntegerEnumerated2_free;
1397asn_struct_print_f NO_IntegerEnumerated2_print;
1398asn_constr_check_f NO_IntegerEnumerated2_constraint;
1399ber_type_decoder_f NO_IntegerEnumerated2_decode_ber;
1400der_type_encoder_f NO_IntegerEnumerated2_encode_der;
1401xer_type_decoder_f NO_IntegerEnumerated2_decode_xer;
1402xer_type_encoder_f NO_IntegerEnumerated2_encode_xer;
1403
1404/*** <<< CODE [NO-IntegerEnumerated2] >>> ***/
1405
Lev Walkinc3f0b892005-08-14 02:40:04 +00001406/*
1407 * This type is implemented using INTEGER,
1408 * so here we adjust the DEF accordingly.
1409 */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001410
1411/*** <<< STAT-DEFS [NO-IntegerEnumerated2] >>> ***/
1412
Lev Walkina7591b52014-10-12 18:37:35 -07001413static const ber_tlv_tag_t asn_DEF_NO_IntegerEnumerated2_tags_1[] = {
Lev Walkinc3f0b892005-08-14 02:40:04 +00001414 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
1415};
1416asn_TYPE_descriptor_t asn_DEF_NO_IntegerEnumerated2 = {
1417 "NO-IntegerEnumerated2",
1418 "NO-IntegerEnumerated2",
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +08001419 INTEGER_free,
1420 INTEGER_print,
1421 INTEGER_constraint,
1422 INTEGER_decode_ber,
1423 INTEGER_encode_der,
1424 INTEGER_decode_xer,
1425 INTEGER_encode_xer,
Lev Walkinba68c912017-07-06 07:52:39 -07001426 0, 0, /* No OER support, use "-gen-OER" to enable */
Lev Walkinb33425f2017-07-14 14:59:52 +04001427 0, 0, /* No PER support, use "-gen-PER" to enable */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001428 0, /* Use generic outmost tag fetcher */
Lev Walkin59b176e2005-11-26 11:25:14 +00001429 asn_DEF_NO_IntegerEnumerated2_tags_1,
1430 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1431 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
1432 asn_DEF_NO_IntegerEnumerated2_tags_1, /* Same as above */
1433 sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1)
1434 /sizeof(asn_DEF_NO_IntegerEnumerated2_tags_1[0]), /* 1 */
Lev Walkinb33425f2017-07-14 14:59:52 +04001435 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +00001436 0, /* No PER visible constraints */
Lev Walkinc3f0b892005-08-14 02:40:04 +00001437 0, 0, /* Defined elsewhere */
1438 0 /* No specifics */
1439};
1440