fix OER stubs order
diff --git a/tests/50-constraint-OK.asn1.-Pfwide-types b/tests/50-constraint-OK.asn1.-Pfwide-types
index 75b3698..d17d448 100644
--- a/tests/50-constraint-OK.asn1.-Pfwide-types
+++ b/tests/50-constraint-OK.asn1.-Pfwide-types
@@ -45,6 +45,8 @@
td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
td->oer_decoder = asn_DEF_INTEGER.oer_decoder;
td->oer_encoder = asn_DEF_INTEGER.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_INTEGER.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_INTEGER.per_constraints;
td->elements = asn_DEF_INTEGER.elements;
@@ -112,8 +114,8 @@
Int1_encode_der,
Int1_decode_xer,
Int1_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int1_tags_1,
sizeof(asn_DEF_Int1_tags_1)
@@ -121,6 +123,7 @@
asn_DEF_Int1_tags_1, /* Same as above */
sizeof(asn_DEF_Int1_tags_1)
/sizeof(asn_DEF_Int1_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -192,6 +195,8 @@
td->uper_encoder = asn_DEF_Int1.uper_encoder;
td->oer_decoder = asn_DEF_Int1.oer_decoder;
td->oer_encoder = asn_DEF_Int1.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Int1.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Int1.per_constraints;
td->elements = asn_DEF_Int1.elements;
@@ -259,8 +264,8 @@
Int2_encode_der,
Int2_decode_xer,
Int2_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int2_tags_1,
sizeof(asn_DEF_Int2_tags_1)
@@ -268,6 +273,7 @@
asn_DEF_Int2_tags_1, /* Same as above */
sizeof(asn_DEF_Int2_tags_1)
/sizeof(asn_DEF_Int2_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -343,6 +349,8 @@
td->uper_encoder = asn_DEF_Int2.uper_encoder;
td->oer_decoder = asn_DEF_Int2.oer_decoder;
td->oer_encoder = asn_DEF_Int2.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Int2.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Int2.per_constraints;
td->elements = asn_DEF_Int2.elements;
@@ -410,8 +418,8 @@
Int3_encode_der,
Int3_decode_xer,
Int3_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int3_tags_1,
sizeof(asn_DEF_Int3_tags_1)
@@ -419,6 +427,7 @@
asn_DEF_Int3_tags_1, /* Same as above */
sizeof(asn_DEF_Int3_tags_1)
/sizeof(asn_DEF_Int3_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -494,6 +503,8 @@
td->uper_encoder = asn_DEF_Int3.uper_encoder;
td->oer_decoder = asn_DEF_Int3.oer_decoder;
td->oer_encoder = asn_DEF_Int3.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Int3.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Int3.per_constraints;
td->elements = asn_DEF_Int3.elements;
@@ -561,8 +572,8 @@
Int4_encode_der,
Int4_decode_xer,
Int4_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int4_tags_1,
sizeof(asn_DEF_Int4_tags_1)
@@ -570,6 +581,7 @@
asn_DEF_Int4_tags_1, /* Same as above */
sizeof(asn_DEF_Int4_tags_1)
/sizeof(asn_DEF_Int4_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -645,6 +657,8 @@
td->uper_encoder = asn_DEF_Int4.uper_encoder;
td->oer_decoder = asn_DEF_Int4.oer_decoder;
td->oer_encoder = asn_DEF_Int4.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Int4.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Int4.per_constraints;
td->elements = asn_DEF_Int4.elements;
@@ -712,8 +726,8 @@
Int5_encode_der,
Int5_decode_xer,
Int5_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int5_tags_1,
sizeof(asn_DEF_Int5_tags_1)
@@ -721,6 +735,7 @@
asn_DEF_Int5_tags_1, /* Same as above */
sizeof(asn_DEF_Int5_tags_1)
/sizeof(asn_DEF_Int5_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -796,6 +811,8 @@
td->uper_encoder = asn_DEF_INTEGER.uper_encoder;
td->oer_decoder = asn_DEF_INTEGER.oer_decoder;
td->oer_encoder = asn_DEF_INTEGER.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_INTEGER.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_INTEGER.per_constraints;
td->elements = asn_DEF_INTEGER.elements;
@@ -863,8 +880,8 @@
ExtensibleExtensions_encode_der,
ExtensibleExtensions_decode_xer,
ExtensibleExtensions_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_ExtensibleExtensions_tags_1,
sizeof(asn_DEF_ExtensibleExtensions_tags_1)
@@ -872,6 +889,7 @@
asn_DEF_ExtensibleExtensions_tags_1, /* Same as above */
sizeof(asn_DEF_ExtensibleExtensions_tags_1)
/sizeof(asn_DEF_ExtensibleExtensions_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -924,6 +942,8 @@
td->uper_encoder = asn_DEF_IA5String.uper_encoder;
td->oer_decoder = asn_DEF_IA5String.oer_decoder;
td->oer_encoder = asn_DEF_IA5String.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_IA5String.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_IA5String.per_constraints;
td->elements = asn_DEF_IA5String.elements;
@@ -991,8 +1011,8 @@
Str1_encode_der,
Str1_decode_xer,
Str1_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str1_tags_1,
sizeof(asn_DEF_Str1_tags_1)
@@ -1000,6 +1020,7 @@
asn_DEF_Str1_tags_1, /* Same as above */
sizeof(asn_DEF_Str1_tags_1)
/sizeof(asn_DEF_Str1_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -1087,6 +1108,8 @@
td->uper_encoder = asn_DEF_Str1.uper_encoder;
td->oer_decoder = asn_DEF_Str1.oer_decoder;
td->oer_encoder = asn_DEF_Str1.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Str1.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Str1.per_constraints;
td->elements = asn_DEF_Str1.elements;
@@ -1154,8 +1177,8 @@
Str2_encode_der,
Str2_decode_xer,
Str2_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str2_tags_1,
sizeof(asn_DEF_Str2_tags_1)
@@ -1163,6 +1186,7 @@
asn_DEF_Str2_tags_1, /* Same as above */
sizeof(asn_DEF_Str2_tags_1)
/sizeof(asn_DEF_Str2_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -1261,6 +1285,8 @@
td->uper_encoder = asn_DEF_Str2.uper_encoder;
td->oer_decoder = asn_DEF_Str2.oer_decoder;
td->oer_encoder = asn_DEF_Str2.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Str2.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Str2.per_constraints;
td->elements = asn_DEF_Str2.elements;
@@ -1328,8 +1354,8 @@
Str3_encode_der,
Str3_decode_xer,
Str3_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str3_tags_1,
sizeof(asn_DEF_Str3_tags_1)
@@ -1337,6 +1363,7 @@
asn_DEF_Str3_tags_1, /* Same as above */
sizeof(asn_DEF_Str3_tags_1)
/sizeof(asn_DEF_Str3_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -1421,6 +1448,8 @@
td->uper_encoder = asn_DEF_IA5String.uper_encoder;
td->oer_decoder = asn_DEF_IA5String.oer_decoder;
td->oer_encoder = asn_DEF_IA5String.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_IA5String.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_IA5String.per_constraints;
td->elements = asn_DEF_IA5String.elements;
@@ -1488,8 +1517,8 @@
Str4_encode_der,
Str4_decode_xer,
Str4_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str4_tags_1,
sizeof(asn_DEF_Str4_tags_1)
@@ -1497,6 +1526,7 @@
asn_DEF_Str4_tags_1, /* Same as above */
sizeof(asn_DEF_Str4_tags_1)
/sizeof(asn_DEF_Str4_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -1581,6 +1611,8 @@
td->uper_encoder = asn_DEF_IA5String.uper_encoder;
td->oer_decoder = asn_DEF_IA5String.oer_decoder;
td->oer_encoder = asn_DEF_IA5String.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_IA5String.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_IA5String.per_constraints;
td->elements = asn_DEF_IA5String.elements;
@@ -1648,8 +1680,8 @@
PER_Visible_encode_der,
PER_Visible_decode_xer,
PER_Visible_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_PER_Visible_tags_1,
sizeof(asn_DEF_PER_Visible_tags_1)
@@ -1657,6 +1689,7 @@
asn_DEF_PER_Visible_tags_1, /* Same as above */
sizeof(asn_DEF_PER_Visible_tags_1)
/sizeof(asn_DEF_PER_Visible_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -1741,6 +1774,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -1808,8 +1843,8 @@
PER_Visible_2_encode_der,
PER_Visible_2_decode_xer,
PER_Visible_2_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_PER_Visible_2_tags_1,
sizeof(asn_DEF_PER_Visible_2_tags_1)
@@ -1817,6 +1852,7 @@
asn_DEF_PER_Visible_2_tags_1, /* Same as above */
sizeof(asn_DEF_PER_Visible_2_tags_1)
/sizeof(asn_DEF_PER_Visible_2_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -1901,6 +1937,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -1968,8 +2006,8 @@
Not_PER_Visible_1_encode_der,
Not_PER_Visible_1_decode_xer,
Not_PER_Visible_1_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Not_PER_Visible_1_tags_1,
sizeof(asn_DEF_Not_PER_Visible_1_tags_1)
@@ -1977,6 +2015,7 @@
asn_DEF_Not_PER_Visible_1_tags_1, /* Same as above */
sizeof(asn_DEF_Not_PER_Visible_1_tags_1)
/sizeof(asn_DEF_Not_PER_Visible_1_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -2061,6 +2100,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -2128,8 +2169,8 @@
Not_PER_Visible_2_encode_der,
Not_PER_Visible_2_decode_xer,
Not_PER_Visible_2_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Not_PER_Visible_2_tags_1,
sizeof(asn_DEF_Not_PER_Visible_2_tags_1)
@@ -2137,6 +2178,7 @@
asn_DEF_Not_PER_Visible_2_tags_1, /* Same as above */
sizeof(asn_DEF_Not_PER_Visible_2_tags_1)
/sizeof(asn_DEF_Not_PER_Visible_2_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -2221,6 +2263,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -2288,8 +2332,8 @@
Not_PER_Visible_3_encode_der,
Not_PER_Visible_3_decode_xer,
Not_PER_Visible_3_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Not_PER_Visible_3_tags_1,
sizeof(asn_DEF_Not_PER_Visible_3_tags_1)
@@ -2297,6 +2341,7 @@
asn_DEF_Not_PER_Visible_3_tags_1, /* Same as above */
sizeof(asn_DEF_Not_PER_Visible_3_tags_1)
/sizeof(asn_DEF_Not_PER_Visible_3_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -2384,6 +2429,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -2451,8 +2498,8 @@
SIZE_but_not_FROM_encode_der,
SIZE_but_not_FROM_decode_xer,
SIZE_but_not_FROM_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_SIZE_but_not_FROM_tags_1,
sizeof(asn_DEF_SIZE_but_not_FROM_tags_1)
@@ -2460,6 +2507,7 @@
asn_DEF_SIZE_but_not_FROM_tags_1, /* Same as above */
sizeof(asn_DEF_SIZE_but_not_FROM_tags_1)
/sizeof(asn_DEF_SIZE_but_not_FROM_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -2547,6 +2595,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -2614,8 +2664,8 @@
SIZE_and_FROM_encode_der,
SIZE_and_FROM_decode_xer,
SIZE_and_FROM_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_SIZE_and_FROM_tags_1,
sizeof(asn_DEF_SIZE_and_FROM_tags_1)
@@ -2623,6 +2673,7 @@
asn_DEF_SIZE_and_FROM_tags_1, /* Same as above */
sizeof(asn_DEF_SIZE_and_FROM_tags_1)
/sizeof(asn_DEF_SIZE_and_FROM_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -2707,6 +2758,8 @@
td->uper_encoder = asn_DEF_PER_Visible.uper_encoder;
td->oer_decoder = asn_DEF_PER_Visible.oer_decoder;
td->oer_encoder = asn_DEF_PER_Visible.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_PER_Visible.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_PER_Visible.per_constraints;
td->elements = asn_DEF_PER_Visible.elements;
@@ -2774,8 +2827,8 @@
Neither_SIZE_nor_FROM_encode_der,
Neither_SIZE_nor_FROM_decode_xer,
Neither_SIZE_nor_FROM_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Neither_SIZE_nor_FROM_tags_1,
sizeof(asn_DEF_Neither_SIZE_nor_FROM_tags_1)
@@ -2783,6 +2836,7 @@
asn_DEF_Neither_SIZE_nor_FROM_tags_1, /* Same as above */
sizeof(asn_DEF_Neither_SIZE_nor_FROM_tags_1)
/sizeof(asn_DEF_Neither_SIZE_nor_FROM_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -2861,6 +2915,8 @@
td->uper_encoder = asn_DEF_UTF8String.uper_encoder;
td->oer_decoder = asn_DEF_UTF8String.oer_decoder;
td->oer_encoder = asn_DEF_UTF8String.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_UTF8String.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_UTF8String.per_constraints;
td->elements = asn_DEF_UTF8String.elements;
@@ -2928,8 +2984,8 @@
Utf8_4_encode_der,
Utf8_4_decode_xer,
Utf8_4_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_4_tags_1,
sizeof(asn_DEF_Utf8_4_tags_1)
@@ -2937,6 +2993,7 @@
asn_DEF_Utf8_4_tags_1, /* Same as above */
sizeof(asn_DEF_Utf8_4_tags_1)
/sizeof(asn_DEF_Utf8_4_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -3043,6 +3100,8 @@
td->uper_encoder = asn_DEF_Utf8_2.uper_encoder;
td->oer_decoder = asn_DEF_Utf8_2.oer_decoder;
td->oer_encoder = asn_DEF_Utf8_2.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Utf8_2.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Utf8_2.per_constraints;
td->elements = asn_DEF_Utf8_2.elements;
@@ -3110,8 +3169,8 @@
Utf8_3_encode_der,
Utf8_3_decode_xer,
Utf8_3_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_3_tags_1,
sizeof(asn_DEF_Utf8_3_tags_1)
@@ -3119,6 +3178,7 @@
asn_DEF_Utf8_3_tags_1, /* Same as above */
sizeof(asn_DEF_Utf8_3_tags_1)
/sizeof(asn_DEF_Utf8_3_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -3195,6 +3255,8 @@
td->uper_encoder = asn_DEF_Utf8_1.uper_encoder;
td->oer_decoder = asn_DEF_Utf8_1.oer_decoder;
td->oer_encoder = asn_DEF_Utf8_1.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Utf8_1.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Utf8_1.per_constraints;
td->elements = asn_DEF_Utf8_1.elements;
@@ -3262,8 +3324,8 @@
Utf8_2_encode_der,
Utf8_2_decode_xer,
Utf8_2_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_2_tags_1,
sizeof(asn_DEF_Utf8_2_tags_1)
@@ -3271,6 +3333,7 @@
asn_DEF_Utf8_2_tags_1, /* Same as above */
sizeof(asn_DEF_Utf8_2_tags_1)
/sizeof(asn_DEF_Utf8_2_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -3323,6 +3386,8 @@
td->uper_encoder = asn_DEF_UTF8String.uper_encoder;
td->oer_decoder = asn_DEF_UTF8String.oer_decoder;
td->oer_encoder = asn_DEF_UTF8String.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_UTF8String.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_UTF8String.per_constraints;
td->elements = asn_DEF_UTF8String.elements;
@@ -3390,8 +3455,8 @@
Utf8_1_encode_der,
Utf8_1_decode_xer,
Utf8_1_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_1_tags_1,
sizeof(asn_DEF_Utf8_1_tags_1)
@@ -3399,6 +3464,7 @@
asn_DEF_Utf8_1_tags_1, /* Same as above */
sizeof(asn_DEF_Utf8_1_tags_1)
/sizeof(asn_DEF_Utf8_1_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -3498,6 +3564,8 @@
td->uper_encoder = asn_DEF_Identifier.uper_encoder;
td->oer_decoder = asn_DEF_Identifier.oer_decoder;
td->oer_encoder = asn_DEF_Identifier.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_Identifier.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_Identifier.per_constraints;
td->elements = asn_DEF_Identifier.elements;
@@ -3565,8 +3633,8 @@
VisibleIdentifier_encode_der,
VisibleIdentifier_decode_xer,
VisibleIdentifier_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_VisibleIdentifier_tags_1,
sizeof(asn_DEF_VisibleIdentifier_tags_1)
@@ -3574,6 +3642,7 @@
asn_DEF_VisibleIdentifier_tags_1, /* Same as above */
sizeof(asn_DEF_VisibleIdentifier_tags_1)
/sizeof(asn_DEF_VisibleIdentifier_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */
@@ -3652,6 +3721,8 @@
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
td->oer_decoder = asn_DEF_ENUMERATED.oer_decoder;
td->oer_encoder = asn_DEF_ENUMERATED.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_ENUMERATED.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
@@ -3872,8 +3943,8 @@
enum_c_6_encode_der,
enum_c_6_decode_xer,
enum_c_6_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_enum_c_tags_6,
sizeof(asn_DEF_enum_c_tags_6)
@@ -3881,6 +3952,7 @@
asn_DEF_enum_c_tags_6, /* Same as above */
sizeof(asn_DEF_enum_c_tags_6)
/sizeof(asn_DEF_enum_c_tags_6[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* Defined elsewhere */
&asn_SPC_enum_c_specs_6 /* Additional specs */
@@ -3892,6 +3964,7 @@
.tag_mode = 0,
.type = &asn_DEF_Int1,
.memb_constraints = memb_int1_c_constraint_1,
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = asn_DFL_2_set_3, /* DEFAULT 3 */
.name = "int1-c"
@@ -3901,6 +3974,7 @@
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = &asn_DEF_Int4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = "int4"
@@ -3910,6 +3984,7 @@
.tag_mode = 0,
.type = &asn_DEF_Int4,
.memb_constraints = memb_int4_c_constraint_1,
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = "int4-c"
@@ -3919,6 +3994,7 @@
.tag_mode = 0,
.type = &asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer constraints checking to the member type */
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = asn_DFL_5_set_1, /* DEFAULT 1 */
.name = "bool"
@@ -3928,6 +4004,7 @@
.tag_mode = 0,
.type = &asn_DEF_enum_c_6,
.memb_constraints = 0, /* Defer constraints checking to the member type */
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = "enum-c"
@@ -3937,6 +4014,7 @@
.tag_mode = 0,
.type = &asn_DEF_NULL,
.memb_constraints = 0, /* Defer constraints checking to the member type */
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = "null"
@@ -3946,6 +4024,7 @@
.tag_mode = 0,
.type = &asn_DEF_Int5,
.memb_constraints = memb_int5_c_constraint_1,
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = "int5-c"
@@ -3982,8 +4061,8 @@
SEQUENCE_encode_der,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Sequence_tags_1,
sizeof(asn_DEF_Sequence_tags_1)
@@ -3991,6 +4070,7 @@
asn_DEF_Sequence_tags_1, /* Same as above */
sizeof(asn_DEF_Sequence_tags_1)
/sizeof(asn_DEF_Sequence_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
asn_MBR_Sequence_1,
7, /* Elements count */
@@ -4032,6 +4112,7 @@
.tag_mode = 0,
.type = &asn_DEF_Sequence,
.memb_constraints = 0, /* Defer constraints checking to the member type */
+ .oer_constraints = 0, /* OER is not compiled, use -gen-OER */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = ""
@@ -4055,8 +4136,8 @@
SEQUENCE_OF_encode_der,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_SequenceOf_tags_1,
sizeof(asn_DEF_SequenceOf_tags_1)
@@ -4064,6 +4145,7 @@
asn_DEF_SequenceOf_tags_1, /* Same as above */
sizeof(asn_DEF_SequenceOf_tags_1)
/sizeof(asn_DEF_SequenceOf_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
asn_MBR_SequenceOf_1,
1, /* Single element */
@@ -4124,6 +4206,8 @@
td->uper_encoder = asn_DEF_ENUMERATED.uper_encoder;
td->oer_decoder = asn_DEF_ENUMERATED.oer_decoder;
td->oer_encoder = asn_DEF_ENUMERATED.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_ENUMERATED.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_ENUMERATED.per_constraints;
td->elements = asn_DEF_ENUMERATED.elements;
@@ -4208,8 +4292,8 @@
Enum0_encode_der,
Enum0_decode_xer,
Enum0_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Enum0_tags_1,
sizeof(asn_DEF_Enum0_tags_1)
@@ -4217,6 +4301,7 @@
asn_DEF_Enum0_tags_1, /* Same as above */
sizeof(asn_DEF_Enum0_tags_1)
/sizeof(asn_DEF_Enum0_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* Defined elsewhere */
&asn_SPC_Enum0_specs_1 /* Additional specs */
@@ -4293,6 +4378,8 @@
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder;
td->oer_decoder = asn_DEF_NativeEnumerated.oer_decoder;
td->oer_encoder = asn_DEF_NativeEnumerated.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_NativeEnumerated.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints;
td->elements = asn_DEF_NativeEnumerated.elements;
@@ -4377,8 +4464,8 @@
Enum1_encode_der,
Enum1_decode_xer,
Enum1_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Enum1_tags_1,
sizeof(asn_DEF_Enum1_tags_1)
@@ -4386,6 +4473,7 @@
asn_DEF_Enum1_tags_1, /* Same as above */
sizeof(asn_DEF_Enum1_tags_1)
/sizeof(asn_DEF_Enum1_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* Defined elsewhere */
&asn_SPC_Enum1_specs_1 /* Additional specs */
@@ -4485,6 +4573,8 @@
td->uper_encoder = asn_DEF_VisibleString.uper_encoder;
td->oer_decoder = asn_DEF_VisibleString.oer_decoder;
td->oer_encoder = asn_DEF_VisibleString.oer_encoder;
+ if(!td->oer_constraints)
+ td->oer_constraints = asn_DEF_VisibleString.oer_constraints;
if(!td->per_constraints)
td->per_constraints = asn_DEF_VisibleString.per_constraints;
td->elements = asn_DEF_VisibleString.elements;
@@ -4552,8 +4642,8 @@
Identifier_encode_der,
Identifier_decode_xer,
Identifier_encode_xer,
- 0, 0, /* No PER support, use "-gen-PER" to enable */
0, 0, /* No OER support, use "-gen-OER" to enable */
+ 0, 0, /* No PER support, use "-gen-PER" to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Identifier_tags_1,
sizeof(asn_DEF_Identifier_tags_1)
@@ -4561,6 +4651,7 @@
asn_DEF_Identifier_tags_1, /* Same as above */
sizeof(asn_DEF_Identifier_tags_1)
/sizeof(asn_DEF_Identifier_tags_1[0]), /* 1 */
+ 0, /* No OER visible constraints */
0, /* No PER visible constraints */
0, 0, /* No members */
0 /* No specifics */