Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
e8318b8d
Commit
e8318b8d
authored
Mar 06, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed name clash in constraint checking code; also changed braces to double quote in #includes
parent
4b24d483
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
959 additions
and
859 deletions
+959
-859
ChangeLog
ChangeLog
+6
-0
libasn1compiler/asn1c_save.c
libasn1compiler/asn1c_save.c
+1
-1
libasn1fix/asn1fix.c
libasn1fix/asn1fix.c
+0
-9
tests/19-param-OK.asn1.-P
tests/19-param-OK.asn1.-P
+4
-4
tests/31-set-of-OK.asn1.-P
tests/31-set-of-OK.asn1.-P
+36
-36
tests/39-sequence-of-OK.asn1.-P
tests/39-sequence-of-OK.asn1.-P
+13
-13
tests/42-real-life-OK.asn1.-PR
tests/42-real-life-OK.asn1.-PR
+56
-56
tests/43-recursion-OK.asn1.-P
tests/43-recursion-OK.asn1.-P
+26
-26
tests/44-choice-in-sequence-OK.asn1.-P
tests/44-choice-in-sequence-OK.asn1.-P
+24
-24
tests/46-redefine-OK.asn1.-PR
tests/46-redefine-OK.asn1.-PR
+28
-28
tests/50-constraint-OK.asn1.-P
tests/50-constraint-OK.asn1.-P
+374
-374
tests/65-multi-tag-OK.asn1.-P
tests/65-multi-tag-OK.asn1.-P
+101
-101
tests/65-multi-tag-OK.asn1.-Pfnative-types
tests/65-multi-tag-OK.asn1.-Pfnative-types
+101
-101
tests/69-reserved-words-OK.asn1.-P
tests/69-reserved-words-OK.asn1.-P
+16
-16
tests/72-same-names-OK.asn1.-P
tests/72-same-names-OK.asn1.-P
+35
-35
tests/73-circular-OK.asn1
tests/73-circular-OK.asn1
+3
-1
tests/73-circular-OK.asn1.-P
tests/73-circular-OK.asn1.-P
+135
-34
No files found.
ChangeLog
View file @
e8318b8d
0.9.12: 2005-Mar-05
* Fixed a name clash in produced constraint checking code.
* #includes are now in single quotes (to solve a specific problem
on certain case-insensitive file systems (Win32).
0.9.11: 2005-Mar-04
0.9.11: 2005-Mar-04
* Released -fcompound-names to fix the name clashes in the code
* Released -fcompound-names to fix the name clashes in the code
...
...
libasn1compiler/asn1c_save.c
View file @
e8318b8d
...
@@ -253,7 +253,7 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) {
...
@@ -253,7 +253,7 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) {
header_id
);
header_id
);
fprintf
(
fp_c
,
"#include <asn_internal.h>
\n\n
"
);
fprintf
(
fp_c
,
"#include <asn_internal.h>
\n\n
"
);
fprintf
(
fp_c
,
"#include
<%s.h>
\n\n
"
,
expr
->
Identifier
);
/* Myself */
fprintf
(
fp_c
,
"#include
\"
%s.h
\"\n\n
"
,
expr
->
Identifier
);
if
(
arg
->
flags
&
A1C_NO_INCLUDE_DEPS
)
if
(
arg
->
flags
&
A1C_NO_INCLUDE_DEPS
)
SAVE_STREAM
(
fp_c
,
OT_POST_INCLUDE
,
""
,
1
);
SAVE_STREAM
(
fp_c
,
OT_POST_INCLUDE
,
""
,
1
);
TQ_FOR
(
ot
,
&
(
cs
->
destination
[
OT_CTABLES
].
chunks
),
next
)
TQ_FOR
(
ot
,
&
(
cs
->
destination
[
OT_CTABLES
].
chunks
),
next
)
...
...
libasn1fix/asn1fix.c
View file @
e8318b8d
...
@@ -442,15 +442,6 @@ asn1f_apply_unique_index(arg_t *arg) {
...
@@ -442,15 +442,6 @@ asn1f_apply_unique_index(arg_t *arg) {
static
int
unique_index
;
static
int
unique_index
;
if
(
!
arg
)
{
unique_index
=
0
;
return
0
;
}
if
(
!
arg
)
{
unique_index
=
0
;
return
0
;
}
switch
(
arg
->
expr
->
expr_type
)
{
case
ASN_BASIC_ENUMERATED
:
break
;
default:
if
(
arg
->
expr
->
expr_type
&
ASN_CONSTR_MASK
)
break
;
return
0
;
}
arg
->
expr
->
_type_unique_index
=
++
unique_index
;
arg
->
expr
->
_type_unique_index
=
++
unique_index
;
return
0
;
return
0
;
...
...
tests/19-param-OK.asn1.-P
View file @
e8318b8d
...
@@ -278,7 +278,7 @@ extern asn_TYPE_descriptor_t asn_DEF_RelativeDistinguishedName;
...
@@ -278,7 +278,7 @@ extern asn_TYPE_descriptor_t asn_DEF_RelativeDistinguishedName;
/*** <<< CTABLES [RelativeDistinguishedName] >>> ***/
/*** <<< CTABLES [RelativeDistinguishedName] >>> ***/
static int permitted_alphabet_table_
0
[256] = {
static int permitted_alphabet_table_
2
[256] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0, /* ,-. */
0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0, /* ,-. */
...
@@ -289,8 +289,8 @@ static int permitted_alphabet_table_0[256] = {
...
@@ -289,8 +289,8 @@ static int permitted_alphabet_table_0[256] = {
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
};
};
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
2
(const void *sptr) {
int *table = permitted_alphabet_table_
0
;
int *table = permitted_alphabet_table_
2
;
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -319,7 +319,7 @@ memb_IA5String_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -319,7 +319,7 @@ memb_IA5String_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
2
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
...
tests/31-set-of-OK.asn1.-P
View file @
e8318b8d
...
@@ -271,7 +271,7 @@ asn_TYPE_descriptor_t asn_DEF_trees_2 = {
...
@@ -271,7 +271,7 @@ asn_TYPE_descriptor_t asn_DEF_trees_2 = {
&asn_SPC_trees_2_specs /* Additional specs */
&asn_SPC_trees_2_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_Member_
4
[] = {
static asn_TYPE_member_t asn_MBR_Member_
5
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
{ ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -280,22 +280,22 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = {
...
@@ -280,22 +280,22 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = {
.name = "cup-of-coffee"
.name = "cup-of-coffee"
},
},
};
};
static ber_tlv_tag_t asn_DEF_Member_
4
_tags[] = {
static ber_tlv_tag_t asn_DEF_Member_
5
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_TYPE_tag2member_t asn_MAP_Member_
4
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_Member_
5
_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee at 32 */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee at 32 */
};
};
static asn_SEQUENCE_specifics_t asn_SPC_Member_
4
_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_Member_
5
_specs = {
sizeof(struct Member),
sizeof(struct Member),
offsetof(struct Member, _asn_ctx),
offsetof(struct Member, _asn_ctx),
asn_MAP_Member_
4
_tag2el,
asn_MAP_Member_
5
_tag2el,
1, /* Count of tags in the map */
1, /* Count of tags in the map */
0, /* Start extensions */
0, /* Start extensions */
2 /* Stop extensions */
2 /* Stop extensions */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_
4
= {
asn_TYPE_descriptor_t asn_DEF_Member_
5
= {
"",
"",
"",
"",
SEQUENCE_free,
SEQUENCE_free,
...
@@ -306,37 +306,37 @@ asn_TYPE_descriptor_t asn_DEF_Member_4 = {
...
@@ -306,37 +306,37 @@ asn_TYPE_descriptor_t asn_DEF_Member_4 = {
SEQUENCE_decode_xer,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Member_
4
_tags,
asn_DEF_Member_
5
_tags,
sizeof(asn_DEF_Member_
4
_tags)
sizeof(asn_DEF_Member_
5
_tags)
/sizeof(asn_DEF_Member_
4
_tags[0]), /* 1 */
/sizeof(asn_DEF_Member_
5
_tags[0]), /* 1 */
asn_DEF_Member_
4
_tags, /* Same as above */
asn_DEF_Member_
5
_tags, /* Same as above */
sizeof(asn_DEF_Member_
4
_tags)
sizeof(asn_DEF_Member_
5
_tags)
/sizeof(asn_DEF_Member_
4
_tags[0]), /* 1 */
/sizeof(asn_DEF_Member_
5
_tags[0]), /* 1 */
asn_MBR_Member_
4
,
asn_MBR_Member_
5
,
1, /* Elements count */
1, /* Elements count */
&asn_SPC_Member_
4
_specs /* Additional specs */
&asn_SPC_Member_
5
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_anything_
3
[] = {
static asn_TYPE_member_t asn_MBR_anything_
4
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Member_
4
,
.type = (void *)&asn_DEF_Member_
5
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_anything_
3
_tags[] = {
static ber_tlv_tag_t asn_DEF_anything_
4
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_anything_
3
_specs = {
static asn_SET_OF_specifics_t asn_SPC_anything_
4
_specs = {
sizeof(struct anything),
sizeof(struct anything),
offsetof(struct anything, _asn_ctx),
offsetof(struct anything, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
0, /* XER encoding is XMLDelimitedItemList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_anything_
3
= {
asn_TYPE_descriptor_t asn_DEF_anything_
4
= {
"anything",
"anything",
"anything",
"anything",
SET_OF_free,
SET_OF_free,
...
@@ -347,18 +347,18 @@ asn_TYPE_descriptor_t asn_DEF_anything_3 = {
...
@@ -347,18 +347,18 @@ asn_TYPE_descriptor_t asn_DEF_anything_3 = {
SET_OF_decode_xer,
SET_OF_decode_xer,
SET_OF_encode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_anything_
3
_tags,
asn_DEF_anything_
4
_tags,
sizeof(asn_DEF_anything_
3
_tags)
sizeof(asn_DEF_anything_
4
_tags)
/sizeof(asn_DEF_anything_
3
_tags[0]) - 1, /* 1 */
/sizeof(asn_DEF_anything_
4
_tags[0]) - 1, /* 1 */
asn_DEF_anything_
3
_tags, /* Same as above */
asn_DEF_anything_
4
_tags, /* Same as above */
sizeof(asn_DEF_anything_
3
_tags)
sizeof(asn_DEF_anything_
4
_tags)
/sizeof(asn_DEF_anything_
3
_tags[0]), /* 2 */
/sizeof(asn_DEF_anything_
4
_tags[0]), /* 2 */
asn_MBR_anything_
3
,
asn_MBR_anything_
4
,
1, /* Single element */
1, /* Single element */
&asn_SPC_anything_
3
_specs /* Additional specs */
&asn_SPC_anything_
4
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_other_
5
[] = {
static asn_TYPE_member_t asn_MBR_other_
9
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
...
@@ -374,21 +374,21 @@ static asn_TYPE_member_t asn_MBR_other_5[] = {
...
@@ -374,21 +374,21 @@ static asn_TYPE_member_t asn_MBR_other_5[] = {
.name = "b"
.name = "b"
},
},
};
};
static asn_TYPE_tag2member_t asn_MAP_other_
5
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_other_
9
_tag2el[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 26 */
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 26 */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b at 28 */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b at 28 */
};
};
static asn_CHOICE_specifics_t asn_SPC_other_
5
_specs = {
static asn_CHOICE_specifics_t asn_SPC_other_
9
_specs = {
sizeof(struct other),
sizeof(struct other),
offsetof(struct other, _asn_ctx),
offsetof(struct other, _asn_ctx),
offsetof(struct other, present),
offsetof(struct other, present),
sizeof(((struct other *)0)->present),
sizeof(((struct other *)0)->present),
asn_MAP_other_
5
_tag2el,
asn_MAP_other_
9
_tag2el,
2, /* Count of tags in the map */
2, /* Count of tags in the map */
0 /* Whether extensible */
0 /* Whether extensible */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_other_
5
= {
asn_TYPE_descriptor_t asn_DEF_other_
9
= {
"other",
"other",
"other",
"other",
CHOICE_free,
CHOICE_free,
...
@@ -403,9 +403,9 @@ asn_TYPE_descriptor_t asn_DEF_other_5 = {
...
@@ -403,9 +403,9 @@ asn_TYPE_descriptor_t asn_DEF_other_5 = {
0, /* No effective tags (count) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (pointer) */
0, /* No tags (count) */
0, /* No tags (count) */
asn_MBR_other_
5
,
asn_MBR_other_
9
,
2, /* Elements count */
2, /* Elements count */
&asn_SPC_other_
5
_specs /* Additional specs */
&asn_SPC_other_
9
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
...
@@ -419,14 +419,14 @@ static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
...
@@ -419,14 +419,14 @@ static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
{ ATF_POINTER, 2, offsetof(struct Stuff, anything),
{ ATF_POINTER, 2, offsetof(struct Stuff, anything),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_anything_
3
,
.type = (void *)&asn_DEF_anything_
4
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "anything"
.name = "anything"
},
},
{ ATF_POINTER, 0, offsetof(struct Stuff, other),
{ ATF_POINTER, 0, offsetof(struct Stuff, other),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_other_
5
,
.type = (void *)&asn_DEF_other_
9
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "other"
.name = "other"
},
},
...
...
tests/39-sequence-of-OK.asn1.-P
View file @
e8318b8d
...
@@ -35,7 +35,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
...
@@ -35,7 +35,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
static asn_TYPE_member_t asn_MBR_collection_
2
[] = {
static asn_TYPE_member_t asn_MBR_collection_
3
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -44,16 +44,16 @@ static asn_TYPE_member_t asn_MBR_collection_2[] = {
...
@@ -44,16 +44,16 @@ static asn_TYPE_member_t asn_MBR_collection_2[] = {
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_collection_
2
_tags[] = {
static ber_tlv_tag_t asn_DEF_collection_
3
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_collection_
2
_specs = {
static asn_SET_OF_specifics_t asn_SPC_collection_
3
_specs = {
sizeof(struct collection),
sizeof(struct collection),
offsetof(struct collection, _asn_ctx),
offsetof(struct collection, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
0, /* XER encoding is XMLDelimitedItemList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_collection_
2
= {
asn_TYPE_descriptor_t asn_DEF_collection_
3
= {
"collection",
"collection",
"collection",
"collection",
SEQUENCE_OF_free,
SEQUENCE_OF_free,
...
@@ -64,15 +64,15 @@ asn_TYPE_descriptor_t asn_DEF_collection_2 = {
...
@@ -64,15 +64,15 @@ asn_TYPE_descriptor_t asn_DEF_collection_2 = {
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
SEQUENCE_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_collection_
2
_tags,
asn_DEF_collection_
3
_tags,
sizeof(asn_DEF_collection_
2
_tags)
sizeof(asn_DEF_collection_
3
_tags)
/sizeof(asn_DEF_collection_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_collection_
3
_tags[0]), /* 1 */
asn_DEF_collection_
2
_tags, /* Same as above */
asn_DEF_collection_
3
_tags, /* Same as above */
sizeof(asn_DEF_collection_
2
_tags)
sizeof(asn_DEF_collection_
3
_tags)
/sizeof(asn_DEF_collection_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_collection_
3
_tags[0]), /* 1 */
asn_MBR_collection_
2
,
asn_MBR_collection_
3
,
1, /* Single element */
1, /* Single element */
&asn_SPC_collection_
2
_specs /* Additional specs */
&asn_SPC_collection_
3
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_T_1[] = {
static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -86,7 +86,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -86,7 +86,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, collection),
{ ATF_NOFLAGS, 0, offsetof(struct T, collection),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_collection_
2
,
.type = (void *)&asn_DEF_collection_
3
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "collection"
.name = "collection"
},
},
...
...
tests/42-real-life-OK.asn1.-PR
View file @
e8318b8d
...
@@ -71,7 +71,7 @@ memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -71,7 +71,7 @@ memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< STAT-DEFS [LogLine] >>> ***/
/*** <<< STAT-DEFS [LogLine] >>> ***/
static asn_TYPE_member_t asn_MBR_varsets_
2
[] = {
static asn_TYPE_member_t asn_MBR_varsets_
3
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -80,16 +80,16 @@ static asn_TYPE_member_t asn_MBR_varsets_2[] = {
...
@@ -80,16 +80,16 @@ static asn_TYPE_member_t asn_MBR_varsets_2[] = {
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_varsets_
2
_tags[] = {
static ber_tlv_tag_t asn_DEF_varsets_
3
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_varsets_
2
_specs = {
static asn_SET_OF_specifics_t asn_SPC_varsets_
3
_specs = {
sizeof(struct varsets),
sizeof(struct varsets),
offsetof(struct varsets, _asn_ctx),
offsetof(struct varsets, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
0, /* XER encoding is XMLDelimitedItemList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_varsets_
2
= {
asn_TYPE_descriptor_t asn_DEF_varsets_
3
= {
"varsets",
"varsets",
"varsets",
"varsets",
SEQUENCE_OF_free,
SEQUENCE_OF_free,
...
@@ -100,15 +100,15 @@ asn_TYPE_descriptor_t asn_DEF_varsets_2 = {
...
@@ -100,15 +100,15 @@ asn_TYPE_descriptor_t asn_DEF_varsets_2 = {
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
SEQUENCE_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_varsets_
2
_tags,
asn_DEF_varsets_
3
_tags,
sizeof(asn_DEF_varsets_
2
_tags)
sizeof(asn_DEF_varsets_
3
_tags)
/sizeof(asn_DEF_varsets_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_varsets_
3
_tags[0]), /* 1 */
asn_DEF_varsets_
2
_tags, /* Same as above */
asn_DEF_varsets_
3
_tags, /* Same as above */
sizeof(asn_DEF_varsets_
2
_tags)
sizeof(asn_DEF_varsets_
3
_tags)
/sizeof(asn_DEF_varsets_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_varsets_
3
_tags[0]), /* 1 */
asn_MBR_varsets_
2
,
asn_MBR_varsets_
3
,
1, /* Single element */
1, /* Single element */
&asn_SPC_varsets_
2
_specs /* Additional specs */
&asn_SPC_varsets_
3
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
...
@@ -122,7 +122,7 @@ static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
...
@@ -122,7 +122,7 @@ static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_varsets_
2
,
.type = (void *)&asn_DEF_varsets_
3
,
.memb_constraints = memb_varsets_1_constraint,
.memb_constraints = memb_varsets_1_constraint,
.name = "varsets"
.name = "varsets"
},
},
...
@@ -448,7 +448,7 @@ asn_TYPE_descriptor_t asn_DEF_vset_2 = {
...
@@ -448,7 +448,7 @@ asn_TYPE_descriptor_t asn_DEF_vset_2 = {
&asn_SPC_vset_2_specs /* Additional specs */
&asn_SPC_vset_2_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_vrange_
3
[] = {
static asn_TYPE_member_t asn_MBR_vrange_
4
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from),
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -464,23 +464,23 @@ static asn_TYPE_member_t asn_MBR_vrange_3[] = {
...
@@ -464,23 +464,23 @@ static asn_TYPE_member_t asn_MBR_vrange_3[] = {
.name = "to"
.name = "to"
},
},
};
};
static ber_tlv_tag_t asn_DEF_vrange_
3
_tags[] = {
static ber_tlv_tag_t asn_DEF_vrange_
4
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_TYPE_tag2member_t asn_MAP_vrange_
3
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_vrange_
4
_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */
};
};
static asn_SEQUENCE_specifics_t asn_SPC_vrange_
3
_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_vrange_
4
_specs = {
sizeof(struct vrange),
sizeof(struct vrange),
offsetof(struct vrange, _asn_ctx),
offsetof(struct vrange, _asn_ctx),
asn_MAP_vrange_
3
_tag2el,
asn_MAP_vrange_
4
_tag2el,
2, /* Count of tags in the map */
2, /* Count of tags in the map */
1, /* Start extensions */
1, /* Start extensions */
3 /* Stop extensions */
3 /* Stop extensions */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_vrange_
3
= {
asn_TYPE_descriptor_t asn_DEF_vrange_
4
= {
"vrange",
"vrange",
"vrange",
"vrange",
SEQUENCE_free,
SEQUENCE_free,
...
@@ -491,15 +491,15 @@ asn_TYPE_descriptor_t asn_DEF_vrange_3 = {
...
@@ -491,15 +491,15 @@ asn_TYPE_descriptor_t asn_DEF_vrange_3 = {
SEQUENCE_decode_xer,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_vrange_
3
_tags,
asn_DEF_vrange_
4
_tags,
sizeof(asn_DEF_vrange_
3
_tags)
sizeof(asn_DEF_vrange_
4
_tags)
/sizeof(asn_DEF_vrange_
3
_tags[0]), /* 1 */
/sizeof(asn_DEF_vrange_
4
_tags[0]), /* 1 */
asn_DEF_vrange_
3
_tags, /* Same as above */
asn_DEF_vrange_
4
_tags, /* Same as above */
sizeof(asn_DEF_vrange_
3
_tags)
sizeof(asn_DEF_vrange_
4
_tags)
/sizeof(asn_DEF_vrange_
3
_tags[0]), /* 1 */
/sizeof(asn_DEF_vrange_
4
_tags[0]), /* 1 */
asn_MBR_vrange_
3
,
asn_MBR_vrange_
4
,
2, /* Elements count */
2, /* Elements count */
&asn_SPC_vrange_
3
_specs /* Additional specs */
&asn_SPC_vrange_
4
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
...
@@ -513,7 +513,7 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
...
@@ -513,7 +513,7 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_vrange_
3
,
.type = (void *)&asn_DEF_vrange_
4
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "vrange"
.name = "vrange"
},
},
...
@@ -724,7 +724,7 @@ asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
...
@@ -724,7 +724,7 @@ asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
&asn_SPC_accept_as_2_specs /* Additional specs */
&asn_SPC_accept_as_2_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_email_
4
[] = {
static asn_TYPE_member_t asn_MBR_email_
9
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -733,16 +733,16 @@ static asn_TYPE_member_t asn_MBR_email_4[] = {
...
@@ -733,16 +733,16 @@ static asn_TYPE_member_t asn_MBR_email_4[] = {
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_email_
4
_tags[] = {
static ber_tlv_tag_t asn_DEF_email_
9
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_email_
4
_specs = {
static asn_SET_OF_specifics_t asn_SPC_email_
9
_specs = {
sizeof(struct email),
sizeof(struct email),
offsetof(struct email, _asn_ctx),
offsetof(struct email, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
0, /* XER encoding is XMLDelimitedItemList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_email_
4
= {
asn_TYPE_descriptor_t asn_DEF_email_
9
= {
"email",
"email",
"email",
"email",
SET_OF_free,
SET_OF_free,
...
@@ -753,18 +753,18 @@ asn_TYPE_descriptor_t asn_DEF_email_4 = {
...
@@ -753,18 +753,18 @@ asn_TYPE_descriptor_t asn_DEF_email_4 = {
SET_OF_decode_xer,
SET_OF_decode_xer,
SET_OF_encode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_email_
4
_tags,
asn_DEF_email_
9
_tags,
sizeof(asn_DEF_email_
4
_tags)
sizeof(asn_DEF_email_
9
_tags)
/sizeof(asn_DEF_email_
4
_tags[0]), /* 1 */
/sizeof(asn_DEF_email_
9
_tags[0]), /* 1 */
asn_DEF_email_
4
_tags, /* Same as above */
asn_DEF_email_
9
_tags, /* Same as above */
sizeof(asn_DEF_email_
4
_tags)
sizeof(asn_DEF_email_
9
_tags)
/sizeof(asn_DEF_email_
4
_tags[0]), /* 1 */
/sizeof(asn_DEF_email_
9
_tags[0]), /* 1 */
asn_MBR_email_
4
,
asn_MBR_email_
9
,
1, /* Single element */
1, /* Single element */
&asn_SPC_email_
4
_specs /* Additional specs */
&asn_SPC_email_
9
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_notify_
3
[] = {
static asn_TYPE_member_t asn_MBR_notify_
7
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical),
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -775,28 +775,28 @@ static asn_TYPE_member_t asn_MBR_notify_3[] = {
...
@@ -775,28 +775,28 @@ static asn_TYPE_member_t asn_MBR_notify_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct notify, email),
{ ATF_NOFLAGS, 0, offsetof(struct notify, email),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_email_
4
,
.type = (void *)&asn_DEF_email_
9
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "email"
.name = "email"
},
},
};
};
static ber_tlv_tag_t asn_DEF_notify_
3
_tags[] = {
static ber_tlv_tag_t asn_DEF_notify_
7
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_TYPE_tag2member_t asn_MAP_notify_
3
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_notify_
7
_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */
};
};
static asn_SEQUENCE_specifics_t asn_SPC_notify_
3
_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_notify_
7
_specs = {
sizeof(struct notify),
sizeof(struct notify),
offsetof(struct notify, _asn_ctx),
offsetof(struct notify, _asn_ctx),
asn_MAP_notify_
3
_tag2el,
asn_MAP_notify_
7
_tag2el,
2, /* Count of tags in the map */
2, /* Count of tags in the map */
1, /* Start extensions */
1, /* Start extensions */
3 /* Stop extensions */
3 /* Stop extensions */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_notify_
3
= {
asn_TYPE_descriptor_t asn_DEF_notify_
7
= {
"notify",
"notify",
"notify",
"notify",
SEQUENCE_free,
SEQUENCE_free,
...
@@ -807,15 +807,15 @@ asn_TYPE_descriptor_t asn_DEF_notify_3 = {
...
@@ -807,15 +807,15 @@ asn_TYPE_descriptor_t asn_DEF_notify_3 = {
SEQUENCE_decode_xer,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_notify_
3
_tags,
asn_DEF_notify_
7
_tags,
sizeof(asn_DEF_notify_
3
_tags)
sizeof(asn_DEF_notify_
7
_tags)
/sizeof(asn_DEF_notify_
3
_tags[0]), /* 1 */
/sizeof(asn_DEF_notify_
7
_tags[0]), /* 1 */
asn_DEF_notify_
3
_tags, /* Same as above */
asn_DEF_notify_
7
_tags, /* Same as above */
sizeof(asn_DEF_notify_
3
_tags)
sizeof(asn_DEF_notify_
7
_tags)
/sizeof(asn_DEF_notify_
3
_tags[0]), /* 1 */
/sizeof(asn_DEF_notify_
7
_tags[0]), /* 1 */
asn_MBR_notify_
3
,
asn_MBR_notify_
7
,
2, /* Elements count */
2, /* Elements count */
&asn_SPC_notify_
3
_specs /* Additional specs */
&asn_SPC_notify_
7
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
...
@@ -829,7 +829,7 @@ static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
...
@@ -829,7 +829,7 @@ static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify),
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_notify_
3
,
.type = (void *)&asn_DEF_notify_
7
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "notify"
.name = "notify"
},
},
...
...
tests/43-recursion-OK.asn1.-P
View file @
e8318b8d
...
@@ -84,7 +84,7 @@ asn_TYPE_descriptor_t asn_DEF_t_member1_2 = {
...
@@ -84,7 +84,7 @@ asn_TYPE_descriptor_t asn_DEF_t_member1_2 = {
&asn_SPC_t_member1_2_specs /* Additional specs */
&asn_SPC_t_member1_2_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_t_member2_
3
[] = {
static asn_TYPE_member_t asn_MBR_t_member2_
4
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -93,16 +93,16 @@ static asn_TYPE_member_t asn_MBR_t_member2_3[] = {
...
@@ -93,16 +93,16 @@ static asn_TYPE_member_t asn_MBR_t_member2_3[] = {
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_t_member2_
3
_tags[] = {
static ber_tlv_tag_t asn_DEF_t_member2_
4
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_t_member2_
3
_specs = {
static asn_SET_OF_specifics_t asn_SPC_t_member2_
4
_specs = {
sizeof(struct t_member2),
sizeof(struct t_member2),
offsetof(struct t_member2, _asn_ctx),
offsetof(struct t_member2, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
0, /* XER encoding is XMLDelimitedItemList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_t_member2_
3
= {
asn_TYPE_descriptor_t asn_DEF_t_member2_
4
= {
"t-member2",
"t-member2",
"t-member2",
"t-member2",
SEQUENCE_OF_free,
SEQUENCE_OF_free,
...
@@ -113,15 +113,15 @@ asn_TYPE_descriptor_t asn_DEF_t_member2_3 = {
...
@@ -113,15 +113,15 @@ asn_TYPE_descriptor_t asn_DEF_t_member2_3 = {
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
SEQUENCE_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_t_member2_
3
_tags,
asn_DEF_t_member2_
4
_tags,
sizeof(asn_DEF_t_member2_
3
_tags)
sizeof(asn_DEF_t_member2_
4
_tags)
/sizeof(asn_DEF_t_member2_
3
_tags[0]), /* 1 */
/sizeof(asn_DEF_t_member2_
4
_tags[0]), /* 1 */
asn_DEF_t_member2_
3
_tags, /* Same as above */
asn_DEF_t_member2_
4
_tags, /* Same as above */
sizeof(asn_DEF_t_member2_
3
_tags)
sizeof(asn_DEF_t_member2_
4
_tags)
/sizeof(asn_DEF_t_member2_
3
_tags[0]), /* 1 */
/sizeof(asn_DEF_t_member2_
4
_tags[0]), /* 1 */
asn_MBR_t_member2_
3
,
asn_MBR_t_member2_
4
,
1, /* Single element */
1, /* Single element */
&asn_SPC_t_member2_
3
_specs /* Additional specs */
&asn_SPC_t_member2_
4
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
...
@@ -135,7 +135,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
...
@@ -135,7 +135,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2),
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_t_member2_
3
,
.type = (void *)&asn_DEF_t_member2_
4
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t-member2"
.name = "t-member2"
},
},
...
@@ -246,7 +246,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice_1;
...
@@ -246,7 +246,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice_1;
/*** <<< STAT-DEFS [Choice-1] >>> ***/
/*** <<< STAT-DEFS [Choice-1] >>> ***/
static asn_TYPE_member_t asn_MBR_or_
2
[] = {
static asn_TYPE_member_t asn_MBR_or_
3
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
...
@@ -255,17 +255,17 @@ static asn_TYPE_member_t asn_MBR_or_2[] = {
...
@@ -255,17 +255,17 @@ static asn_TYPE_member_t asn_MBR_or_2[] = {
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_or_
2
_tags[] = {
static ber_tlv_tag_t asn_DEF_or_
3
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_or_
2
_specs = {
static asn_SET_OF_specifics_t asn_SPC_or_
3
_specs = {
sizeof(struct or),
sizeof(struct or),
offsetof(struct or, _asn_ctx),
offsetof(struct or, _asn_ctx),
1, /* XER encoding is XMLValueList */
1, /* XER encoding is XMLValueList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_or_
2
= {
asn_TYPE_descriptor_t asn_DEF_or_
3
= {
"or",
"or",
"or",
"or",
SET_OF_free,
SET_OF_free,
...
@@ -276,15 +276,15 @@ asn_TYPE_descriptor_t asn_DEF_or_2 = {
...
@@ -276,15 +276,15 @@ asn_TYPE_descriptor_t asn_DEF_or_2 = {
SET_OF_decode_xer,
SET_OF_decode_xer,
SET_OF_encode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_or_
2
_tags,
asn_DEF_or_
3
_tags,
sizeof(asn_DEF_or_
2
_tags)
sizeof(asn_DEF_or_
3
_tags)
/sizeof(asn_DEF_or_
2
_tags[0]) - 1, /* 1 */
/sizeof(asn_DEF_or_
3
_tags[0]) - 1, /* 1 */
asn_DEF_or_
2
_tags, /* Same as above */
asn_DEF_or_
3
_tags, /* Same as above */
sizeof(asn_DEF_or_
2
_tags)
sizeof(asn_DEF_or_
3
_tags)
/sizeof(asn_DEF_or_
2
_tags[0]), /* 2 */
/sizeof(asn_DEF_or_
3
_tags[0]), /* 2 */
asn_MBR_or_
2
,
asn_MBR_or_
3
,
1, /* Single element */
1, /* Single element */
&asn_SPC_or_
2
_specs /* Additional specs */
&asn_SPC_or_
3
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
...
@@ -298,7 +298,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
...
@@ -298,7 +298,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.or),
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.or),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_or_
2
,
.type = (void *)&asn_DEF_or_
3
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "or"
.name = "or"
},
},
...
...
tests/44-choice-in-sequence-OK.asn1.-P
View file @
e8318b8d
...
@@ -70,7 +70,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
...
@@ -70,7 +70,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
static asn_TYPE_member_t asn_MBR_e_
3
[] = {
static asn_TYPE_member_t asn_MBR_e_
6
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.f),
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.f),
.tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
...
@@ -86,21 +86,21 @@ static asn_TYPE_member_t asn_MBR_e_3[] = {
...
@@ -86,21 +86,21 @@ static asn_TYPE_member_t asn_MBR_e_3[] = {
.name = "g"
.name = "g"
},
},
};
};
static asn_TYPE_tag2member_t asn_MAP_e_
3
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_e_
6
_tag2el[] = {
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f at 20 */
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f at 20 */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g at 21 */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g at 21 */
};
};
static asn_CHOICE_specifics_t asn_SPC_e_
3
_specs = {
static asn_CHOICE_specifics_t asn_SPC_e_
6
_specs = {
sizeof(struct e),
sizeof(struct e),
offsetof(struct e, _asn_ctx),
offsetof(struct e, _asn_ctx),
offsetof(struct e, present),
offsetof(struct e, present),
sizeof(((struct e *)0)->present),
sizeof(((struct e *)0)->present),
asn_MAP_e_
3
_tag2el,
asn_MAP_e_
6
_tag2el,
2, /* Count of tags in the map */
2, /* Count of tags in the map */
0 /* Whether extensible */
0 /* Whether extensible */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_e_
3
= {
asn_TYPE_descriptor_t asn_DEF_e_
6
= {
"e",
"e",
"e",
"e",
CHOICE_free,
CHOICE_free,
...
@@ -115,12 +115,12 @@ asn_TYPE_descriptor_t asn_DEF_e_3 = {
...
@@ -115,12 +115,12 @@ asn_TYPE_descriptor_t asn_DEF_e_3 = {
0, /* No effective tags (count) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (pointer) */
0, /* No tags (count) */
0, /* No tags (count) */
asn_MBR_e_
3
,
asn_MBR_e_
6
,
2, /* Elements count */
2, /* Elements count */
&asn_SPC_e_
3
_specs /* Additional specs */
&asn_SPC_e_
6
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_h_
4
[] = {
static asn_TYPE_member_t asn_MBR_h_
9
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.i),
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.i),
.tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
...
@@ -136,21 +136,21 @@ static asn_TYPE_member_t asn_MBR_h_4[] = {
...
@@ -136,21 +136,21 @@ static asn_TYPE_member_t asn_MBR_h_4[] = {
.name = "j"
.name = "j"
},
},
};
};
static asn_TYPE_tag2member_t asn_MAP_h_
4
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_h_
9
_tag2el[] = {
{ (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i at 24 */
{ (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i at 24 */
{ (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j at 25 */
{ (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j at 25 */
};
};
static asn_CHOICE_specifics_t asn_SPC_h_
4
_specs = {
static asn_CHOICE_specifics_t asn_SPC_h_
9
_specs = {
sizeof(struct h),
sizeof(struct h),
offsetof(struct h, _asn_ctx),
offsetof(struct h, _asn_ctx),
offsetof(struct h, present),
offsetof(struct h, present),
sizeof(((struct h *)0)->present),
sizeof(((struct h *)0)->present),
asn_MAP_h_
4
_tag2el,
asn_MAP_h_
9
_tag2el,
2, /* Count of tags in the map */
2, /* Count of tags in the map */
0 /* Whether extensible */
0 /* Whether extensible */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_h_
4
= {
asn_TYPE_descriptor_t asn_DEF_h_
9
= {
"h",
"h",
"h",
"h",
CHOICE_free,
CHOICE_free,
...
@@ -165,12 +165,12 @@ asn_TYPE_descriptor_t asn_DEF_h_4 = {
...
@@ -165,12 +165,12 @@ asn_TYPE_descriptor_t asn_DEF_h_4 = {
0, /* No effective tags (count) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (pointer) */
0, /* No tags (count) */
0, /* No tags (count) */
asn_MBR_h_
4
,
asn_MBR_h_
9
,
2, /* Elements count */
2, /* Elements count */
&asn_SPC_h_
4
_specs /* Additional specs */
&asn_SPC_h_
9
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_b_
2
[] = {
static asn_TYPE_member_t asn_MBR_b_
3
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.c),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.c),
.tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
...
@@ -188,36 +188,36 @@ static asn_TYPE_member_t asn_MBR_b_2[] = {
...
@@ -188,36 +188,36 @@ static asn_TYPE_member_t asn_MBR_b_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.e),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.e),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_e_
3
,
.type = (void *)&asn_DEF_e_
6
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "e"
.name = "e"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.h),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.h),
.tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_h_
4
,
.type = (void *)&asn_DEF_h_
9
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "h"
.name = "h"
},
},
};
};
static asn_TYPE_tag2member_t asn_MAP_b_
2
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_b_
3
_tag2el[] = {
{ (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c at 17 */
{ (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c at 17 */
{ (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */
{ (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f at 20 */
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f at 20 */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g at 21 */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g at 21 */
{ (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h at 24 */
{ (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h at 24 */
};
};
static asn_CHOICE_specifics_t asn_SPC_b_
2
_specs = {
static asn_CHOICE_specifics_t asn_SPC_b_
3
_specs = {
sizeof(struct b),
sizeof(struct b),
offsetof(struct b, _asn_ctx),
offsetof(struct b, _asn_ctx),
offsetof(struct b, present),
offsetof(struct b, present),
sizeof(((struct b *)0)->present),
sizeof(((struct b *)0)->present),
asn_MAP_b_
2
_tag2el,
asn_MAP_b_
3
_tag2el,
5, /* Count of tags in the map */
5, /* Count of tags in the map */
0 /* Whether extensible */
0 /* Whether extensible */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_b_
2
= {
asn_TYPE_descriptor_t asn_DEF_b_
3
= {
"b",
"b",
"b",
"b",
CHOICE_free,
CHOICE_free,
...
@@ -232,9 +232,9 @@ asn_TYPE_descriptor_t asn_DEF_b_2 = {
...
@@ -232,9 +232,9 @@ asn_TYPE_descriptor_t asn_DEF_b_2 = {
0, /* No effective tags (count) */
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (pointer) */
0, /* No tags (count) */
0, /* No tags (count) */
asn_MBR_b_
2
,
asn_MBR_b_
3
,
4, /* Elements count */
4, /* Elements count */
&asn_SPC_b_
2
_specs /* Additional specs */
&asn_SPC_b_
3
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_T_1[] = {
static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -248,7 +248,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -248,7 +248,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, b),
{ ATF_NOFLAGS, 0, offsetof(struct T, b),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_b_
2
,
.type = (void *)&asn_DEF_b_
3
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
.name = "b"
},
},
...
...
tests/46-redefine-OK.asn1.-PR
View file @
e8318b8d
...
@@ -33,7 +33,7 @@ PrimitiveType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -33,7 +33,7 @@ PrimitiveType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
PrimitiveType_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
PrimitiveType_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_OCTET_STRING.free_struct;
td->free_struct = asn_DEF_OCTET_STRING.free_struct;
td->print_struct = asn_DEF_OCTET_STRING.print_struct;
td->print_struct = asn_DEF_OCTET_STRING.print_struct;
td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
...
@@ -48,21 +48,21 @@ PrimitiveType_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -48,21 +48,21 @@ PrimitiveType_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
PrimitiveType_free(asn_TYPE_descriptor_t *td,
PrimitiveType_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
PrimitiveType_
0
_inherit_TYPE_descriptor(td);
PrimitiveType_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
PrimitiveType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
PrimitiveType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
PrimitiveType_
0
_inherit_TYPE_descriptor(td);
PrimitiveType_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
PrimitiveType_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
PrimitiveType_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
PrimitiveType_
0
_inherit_TYPE_descriptor(td);
PrimitiveType_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
PrimitiveType_encode_der(asn_TYPE_descriptor_t *td,
PrimitiveType_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
PrimitiveType_
0
_inherit_TYPE_descriptor(td);
PrimitiveType_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
PrimitiveType_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
PrimitiveType_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
PrimitiveType_
0
_inherit_TYPE_descriptor(td);
PrimitiveType_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -85,14 +85,14 @@ asn_enc_rval_t
...
@@ -85,14 +85,14 @@ asn_enc_rval_t
PrimitiveType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
PrimitiveType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
PrimitiveType_
0
_inherit_TYPE_descriptor(td);
PrimitiveType_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [PrimitiveType] >>> ***/
/*** <<< STAT-DEFS [PrimitiveType] >>> ***/
static ber_tlv_tag_t asn_DEF_PrimitiveType_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_PrimitiveType_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
...
@@ -106,12 +106,12 @@ asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
...
@@ -106,12 +106,12 @@ asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
PrimitiveType_decode_xer,
PrimitiveType_decode_xer,
PrimitiveType_encode_xer,
PrimitiveType_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_PrimitiveType_
0
_tags,
asn_DEF_PrimitiveType_
1
_tags,
sizeof(asn_DEF_PrimitiveType_
0
_tags)
sizeof(asn_DEF_PrimitiveType_
1
_tags)
/sizeof(asn_DEF_PrimitiveType_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_PrimitiveType_
1
_tags[0]), /* 1 */
asn_DEF_PrimitiveType_
0
_tags, /* Same as above */
asn_DEF_PrimitiveType_
1
_tags, /* Same as above */
sizeof(asn_DEF_PrimitiveType_
0
_tags)
sizeof(asn_DEF_PrimitiveType_
1
_tags)
/sizeof(asn_DEF_PrimitiveType_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_PrimitiveType_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -217,7 +217,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -217,7 +217,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_ConstructedType.free_struct;
td->free_struct = asn_DEF_ConstructedType.free_struct;
td->print_struct = asn_DEF_ConstructedType.print_struct;
td->print_struct = asn_DEF_ConstructedType.print_struct;
td->ber_decoder = asn_DEF_ConstructedType.ber_decoder;
td->ber_decoder = asn_DEF_ConstructedType.ber_decoder;
...
@@ -232,21 +232,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -232,21 +232,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T_free(asn_TYPE_descriptor_t *td,
T_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -254,14 +254,14 @@ asn_enc_rval_t
...
@@ -254,14 +254,14 @@ asn_enc_rval_t
T_encode_der(asn_TYPE_descriptor_t *td,
T_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -269,14 +269,14 @@ asn_enc_rval_t
...
@@ -269,14 +269,14 @@ asn_enc_rval_t
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
static ber_tlv_tag_t asn_DEF_T_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
...
@@ -291,12 +291,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
...
@@ -291,12 +291,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
T_decode_xer,
T_decode_xer,
T_encode_xer,
T_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T_
0
_tags,
asn_DEF_T_
1
_tags,
sizeof(asn_DEF_T_
0
_tags)
sizeof(asn_DEF_T_
1
_tags)
/sizeof(asn_DEF_T_
0
_tags[0]) - 1, /* 1 */
/sizeof(asn_DEF_T_
1
_tags[0]) - 1, /* 1 */
asn_DEF_T_
0
_tags, /* Same as above */
asn_DEF_T_
1
_tags, /* Same as above */
sizeof(asn_DEF_T_
0
_tags)
sizeof(asn_DEF_T_
1
_tags)
/sizeof(asn_DEF_T_
0
_tags[0]), /* 2 */
/sizeof(asn_DEF_T_
1
_tags[0]), /* 2 */
0, 0, /* Defined elsewhere */
0, 0, /* Defined elsewhere */
0 /* No specifics */
0 /* No specifics */
};
};
...
...
tests/50-constraint-OK.asn1.-P
View file @
e8318b8d
...
@@ -33,7 +33,7 @@ Int1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -33,7 +33,7 @@ Int1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Int1_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Int1_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_INTEGER.free_struct;
td->free_struct = asn_DEF_INTEGER.free_struct;
td->print_struct = asn_DEF_INTEGER.print_struct;
td->print_struct = asn_DEF_INTEGER.print_struct;
td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
...
@@ -48,21 +48,21 @@ Int1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -48,21 +48,21 @@ Int1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Int1_free(asn_TYPE_descriptor_t *td,
Int1_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Int1_
0
_inherit_TYPE_descriptor(td);
Int1_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Int1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Int1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Int1_
0
_inherit_TYPE_descriptor(td);
Int1_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Int1_
0
_inherit_TYPE_descriptor(td);
Int1_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
Int1_encode_der(asn_TYPE_descriptor_t *td,
Int1_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int1_
0
_inherit_TYPE_descriptor(td);
Int1_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Int1_
0
_inherit_TYPE_descriptor(td);
Int1_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -85,14 +85,14 @@ asn_enc_rval_t
...
@@ -85,14 +85,14 @@ asn_enc_rval_t
Int1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Int1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int1_
0
_inherit_TYPE_descriptor(td);
Int1_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Int1] >>> ***/
/*** <<< STAT-DEFS [Int1] >>> ***/
static ber_tlv_tag_t asn_DEF_Int1_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Int1_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Int1 = {
asn_TYPE_descriptor_t asn_DEF_Int1 = {
...
@@ -106,12 +106,12 @@ asn_TYPE_descriptor_t asn_DEF_Int1 = {
...
@@ -106,12 +106,12 @@ asn_TYPE_descriptor_t asn_DEF_Int1 = {
Int1_decode_xer,
Int1_decode_xer,
Int1_encode_xer,
Int1_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int1_
0
_tags,
asn_DEF_Int1_
1
_tags,
sizeof(asn_DEF_Int1_
0
_tags)
sizeof(asn_DEF_Int1_
1
_tags)
/sizeof(asn_DEF_Int1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int1_
1
_tags[0]), /* 1 */
asn_DEF_Int1_
0
_tags, /* Same as above */
asn_DEF_Int1_
1
_tags, /* Same as above */
sizeof(asn_DEF_Int1_
0
_tags)
sizeof(asn_DEF_Int1_
1
_tags)
/sizeof(asn_DEF_Int1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int1_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -170,7 +170,7 @@ Int2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -170,7 +170,7 @@ Int2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Int2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Int2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Int1.free_struct;
td->free_struct = asn_DEF_Int1.free_struct;
td->print_struct = asn_DEF_Int1.print_struct;
td->print_struct = asn_DEF_Int1.print_struct;
td->ber_decoder = asn_DEF_Int1.ber_decoder;
td->ber_decoder = asn_DEF_Int1.ber_decoder;
...
@@ -185,21 +185,21 @@ Int2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -185,21 +185,21 @@ Int2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Int2_free(asn_TYPE_descriptor_t *td,
Int2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Int2_
0
_inherit_TYPE_descriptor(td);
Int2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Int2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Int2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Int2_
0
_inherit_TYPE_descriptor(td);
Int2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Int2_
0
_inherit_TYPE_descriptor(td);
Int2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -207,14 +207,14 @@ asn_enc_rval_t
...
@@ -207,14 +207,14 @@ asn_enc_rval_t
Int2_encode_der(asn_TYPE_descriptor_t *td,
Int2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int2_
0
_inherit_TYPE_descriptor(td);
Int2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Int2_
0
_inherit_TYPE_descriptor(td);
Int2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -222,14 +222,14 @@ asn_enc_rval_t
...
@@ -222,14 +222,14 @@ asn_enc_rval_t
Int2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Int2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int2_
0
_inherit_TYPE_descriptor(td);
Int2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Int2] >>> ***/
/*** <<< STAT-DEFS [Int2] >>> ***/
static ber_tlv_tag_t asn_DEF_Int2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Int2_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Int2 = {
asn_TYPE_descriptor_t asn_DEF_Int2 = {
...
@@ -243,12 +243,12 @@ asn_TYPE_descriptor_t asn_DEF_Int2 = {
...
@@ -243,12 +243,12 @@ asn_TYPE_descriptor_t asn_DEF_Int2 = {
Int2_decode_xer,
Int2_decode_xer,
Int2_encode_xer,
Int2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int2_
0
_tags,
asn_DEF_Int2_
1
_tags,
sizeof(asn_DEF_Int2_
0
_tags)
sizeof(asn_DEF_Int2_
1
_tags)
/sizeof(asn_DEF_Int2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int2_
1
_tags[0]), /* 1 */
asn_DEF_Int2_
0
_tags, /* Same as above */
asn_DEF_Int2_
1
_tags, /* Same as above */
sizeof(asn_DEF_Int2_
0
_tags)
sizeof(asn_DEF_Int2_
1
_tags)
/sizeof(asn_DEF_Int2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int2_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -311,7 +311,7 @@ Int3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -311,7 +311,7 @@ Int3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Int3_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Int3_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Int2.free_struct;
td->free_struct = asn_DEF_Int2.free_struct;
td->print_struct = asn_DEF_Int2.print_struct;
td->print_struct = asn_DEF_Int2.print_struct;
td->ber_decoder = asn_DEF_Int2.ber_decoder;
td->ber_decoder = asn_DEF_Int2.ber_decoder;
...
@@ -326,21 +326,21 @@ Int3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -326,21 +326,21 @@ Int3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Int3_free(asn_TYPE_descriptor_t *td,
Int3_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Int3_
0
_inherit_TYPE_descriptor(td);
Int3_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Int3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Int3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Int3_
0
_inherit_TYPE_descriptor(td);
Int3_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Int3_
0
_inherit_TYPE_descriptor(td);
Int3_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -348,14 +348,14 @@ asn_enc_rval_t
...
@@ -348,14 +348,14 @@ asn_enc_rval_t
Int3_encode_der(asn_TYPE_descriptor_t *td,
Int3_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int3_
0
_inherit_TYPE_descriptor(td);
Int3_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Int3_
0
_inherit_TYPE_descriptor(td);
Int3_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -363,14 +363,14 @@ asn_enc_rval_t
...
@@ -363,14 +363,14 @@ asn_enc_rval_t
Int3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Int3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int3_
0
_inherit_TYPE_descriptor(td);
Int3_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Int3] >>> ***/
/*** <<< STAT-DEFS [Int3] >>> ***/
static ber_tlv_tag_t asn_DEF_Int3_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Int3_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Int3 = {
asn_TYPE_descriptor_t asn_DEF_Int3 = {
...
@@ -384,12 +384,12 @@ asn_TYPE_descriptor_t asn_DEF_Int3 = {
...
@@ -384,12 +384,12 @@ asn_TYPE_descriptor_t asn_DEF_Int3 = {
Int3_decode_xer,
Int3_decode_xer,
Int3_encode_xer,
Int3_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int3_
0
_tags,
asn_DEF_Int3_
1
_tags,
sizeof(asn_DEF_Int3_
0
_tags)
sizeof(asn_DEF_Int3_
1
_tags)
/sizeof(asn_DEF_Int3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int3_
1
_tags[0]), /* 1 */
asn_DEF_Int3_
0
_tags, /* Same as above */
asn_DEF_Int3_
1
_tags, /* Same as above */
sizeof(asn_DEF_Int3_
0
_tags)
sizeof(asn_DEF_Int3_
1
_tags)
/sizeof(asn_DEF_Int3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int3_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -452,7 +452,7 @@ Int4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -452,7 +452,7 @@ Int4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Int4_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Int4_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Int3.free_struct;
td->free_struct = asn_DEF_Int3.free_struct;
td->print_struct = asn_DEF_Int3.print_struct;
td->print_struct = asn_DEF_Int3.print_struct;
td->ber_decoder = asn_DEF_Int3.ber_decoder;
td->ber_decoder = asn_DEF_Int3.ber_decoder;
...
@@ -467,21 +467,21 @@ Int4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -467,21 +467,21 @@ Int4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Int4_free(asn_TYPE_descriptor_t *td,
Int4_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Int4_
0
_inherit_TYPE_descriptor(td);
Int4_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Int4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Int4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Int4_
0
_inherit_TYPE_descriptor(td);
Int4_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Int4_
0
_inherit_TYPE_descriptor(td);
Int4_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -489,14 +489,14 @@ asn_enc_rval_t
...
@@ -489,14 +489,14 @@ asn_enc_rval_t
Int4_encode_der(asn_TYPE_descriptor_t *td,
Int4_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int4_
0
_inherit_TYPE_descriptor(td);
Int4_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Int4_
0
_inherit_TYPE_descriptor(td);
Int4_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -504,14 +504,14 @@ asn_enc_rval_t
...
@@ -504,14 +504,14 @@ asn_enc_rval_t
Int4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Int4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int4_
0
_inherit_TYPE_descriptor(td);
Int4_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Int4] >>> ***/
/*** <<< STAT-DEFS [Int4] >>> ***/
static ber_tlv_tag_t asn_DEF_Int4_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Int4_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Int4 = {
asn_TYPE_descriptor_t asn_DEF_Int4 = {
...
@@ -525,12 +525,12 @@ asn_TYPE_descriptor_t asn_DEF_Int4 = {
...
@@ -525,12 +525,12 @@ asn_TYPE_descriptor_t asn_DEF_Int4 = {
Int4_decode_xer,
Int4_decode_xer,
Int4_encode_xer,
Int4_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int4_
0
_tags,
asn_DEF_Int4_
1
_tags,
sizeof(asn_DEF_Int4_
0
_tags)
sizeof(asn_DEF_Int4_
1
_tags)
/sizeof(asn_DEF_Int4_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int4_
1
_tags[0]), /* 1 */
asn_DEF_Int4_
0
_tags, /* Same as above */
asn_DEF_Int4_
1
_tags, /* Same as above */
sizeof(asn_DEF_Int4_
0
_tags)
sizeof(asn_DEF_Int4_
1
_tags)
/sizeof(asn_DEF_Int4_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int4_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -593,7 +593,7 @@ Int5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -593,7 +593,7 @@ Int5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Int5_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Int5_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Int4.free_struct;
td->free_struct = asn_DEF_Int4.free_struct;
td->print_struct = asn_DEF_Int4.print_struct;
td->print_struct = asn_DEF_Int4.print_struct;
td->ber_decoder = asn_DEF_Int4.ber_decoder;
td->ber_decoder = asn_DEF_Int4.ber_decoder;
...
@@ -608,21 +608,21 @@ Int5_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -608,21 +608,21 @@ Int5_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Int5_free(asn_TYPE_descriptor_t *td,
Int5_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Int5_
0
_inherit_TYPE_descriptor(td);
Int5_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Int5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Int5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Int5_
0
_inherit_TYPE_descriptor(td);
Int5_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Int5_
0
_inherit_TYPE_descriptor(td);
Int5_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -630,14 +630,14 @@ asn_enc_rval_t
...
@@ -630,14 +630,14 @@ asn_enc_rval_t
Int5_encode_der(asn_TYPE_descriptor_t *td,
Int5_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int5_
0
_inherit_TYPE_descriptor(td);
Int5_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Int5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Int5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Int5_
0
_inherit_TYPE_descriptor(td);
Int5_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -645,14 +645,14 @@ asn_enc_rval_t
...
@@ -645,14 +645,14 @@ asn_enc_rval_t
Int5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Int5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Int5_
0
_inherit_TYPE_descriptor(td);
Int5_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Int5] >>> ***/
/*** <<< STAT-DEFS [Int5] >>> ***/
static ber_tlv_tag_t asn_DEF_Int5_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Int5_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Int5 = {
asn_TYPE_descriptor_t asn_DEF_Int5 = {
...
@@ -666,12 +666,12 @@ asn_TYPE_descriptor_t asn_DEF_Int5 = {
...
@@ -666,12 +666,12 @@ asn_TYPE_descriptor_t asn_DEF_Int5 = {
Int5_decode_xer,
Int5_decode_xer,
Int5_encode_xer,
Int5_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Int5_
0
_tags,
asn_DEF_Int5_
1
_tags,
sizeof(asn_DEF_Int5_
0
_tags)
sizeof(asn_DEF_Int5_
1
_tags)
/sizeof(asn_DEF_Int5_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int5_
1
_tags[0]), /* 1 */
asn_DEF_Int5_
0
_tags, /* Same as above */
asn_DEF_Int5_
1
_tags, /* Same as above */
sizeof(asn_DEF_Int5_
0
_tags)
sizeof(asn_DEF_Int5_
1
_tags)
/sizeof(asn_DEF_Int5_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Int5_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -734,7 +734,7 @@ ExtensibleExtensions_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -734,7 +734,7 @@ ExtensibleExtensions_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_INTEGER.free_struct;
td->free_struct = asn_DEF_INTEGER.free_struct;
td->print_struct = asn_DEF_INTEGER.print_struct;
td->print_struct = asn_DEF_INTEGER.print_struct;
td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
td->ber_decoder = asn_DEF_INTEGER.ber_decoder;
...
@@ -749,21 +749,21 @@ ExtensibleExtensions_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -749,21 +749,21 @@ ExtensibleExtensions_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
ExtensibleExtensions_free(asn_TYPE_descriptor_t *td,
ExtensibleExtensions_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(td);
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
ExtensibleExtensions_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
ExtensibleExtensions_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(td);
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
ExtensibleExtensions_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
ExtensibleExtensions_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(td);
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -771,14 +771,14 @@ asn_enc_rval_t
...
@@ -771,14 +771,14 @@ asn_enc_rval_t
ExtensibleExtensions_encode_der(asn_TYPE_descriptor_t *td,
ExtensibleExtensions_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(td);
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
ExtensibleExtensions_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
ExtensibleExtensions_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(td);
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -786,14 +786,14 @@ asn_enc_rval_t
...
@@ -786,14 +786,14 @@ asn_enc_rval_t
ExtensibleExtensions_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
ExtensibleExtensions_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
ExtensibleExtensions_
0
_inherit_TYPE_descriptor(td);
ExtensibleExtensions_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [ExtensibleExtensions] >>> ***/
/*** <<< STAT-DEFS [ExtensibleExtensions] >>> ***/
static ber_tlv_tag_t asn_DEF_ExtensibleExtensions_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_ExtensibleExtensions_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_ExtensibleExtensions = {
asn_TYPE_descriptor_t asn_DEF_ExtensibleExtensions = {
...
@@ -807,12 +807,12 @@ asn_TYPE_descriptor_t asn_DEF_ExtensibleExtensions = {
...
@@ -807,12 +807,12 @@ asn_TYPE_descriptor_t asn_DEF_ExtensibleExtensions = {
ExtensibleExtensions_decode_xer,
ExtensibleExtensions_decode_xer,
ExtensibleExtensions_encode_xer,
ExtensibleExtensions_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_ExtensibleExtensions_
0
_tags,
asn_DEF_ExtensibleExtensions_
1
_tags,
sizeof(asn_DEF_ExtensibleExtensions_
0
_tags)
sizeof(asn_DEF_ExtensibleExtensions_
1
_tags)
/sizeof(asn_DEF_ExtensibleExtensions_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_ExtensibleExtensions_
1
_tags[0]), /* 1 */
asn_DEF_ExtensibleExtensions_
0
_tags, /* Same as above */
asn_DEF_ExtensibleExtensions_
1
_tags, /* Same as above */
sizeof(asn_DEF_ExtensibleExtensions_
0
_tags)
sizeof(asn_DEF_ExtensibleExtensions_
1
_tags)
/sizeof(asn_DEF_ExtensibleExtensions_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_ExtensibleExtensions_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -852,7 +852,7 @@ Str1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -852,7 +852,7 @@ Str1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Str1_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Str1_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_IA5String.free_struct;
td->free_struct = asn_DEF_IA5String.free_struct;
td->print_struct = asn_DEF_IA5String.print_struct;
td->print_struct = asn_DEF_IA5String.print_struct;
td->ber_decoder = asn_DEF_IA5String.ber_decoder;
td->ber_decoder = asn_DEF_IA5String.ber_decoder;
...
@@ -867,21 +867,21 @@ Str1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -867,21 +867,21 @@ Str1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Str1_free(asn_TYPE_descriptor_t *td,
Str1_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Str1_
0
_inherit_TYPE_descriptor(td);
Str1_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Str1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Str1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Str1_
0
_inherit_TYPE_descriptor(td);
Str1_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Str1_
0
_inherit_TYPE_descriptor(td);
Str1_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -889,14 +889,14 @@ asn_enc_rval_t
...
@@ -889,14 +889,14 @@ asn_enc_rval_t
Str1_encode_der(asn_TYPE_descriptor_t *td,
Str1_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str1_
0
_inherit_TYPE_descriptor(td);
Str1_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Str1_
0
_inherit_TYPE_descriptor(td);
Str1_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -904,14 +904,14 @@ asn_enc_rval_t
...
@@ -904,14 +904,14 @@ asn_enc_rval_t
Str1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Str1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str1_
0
_inherit_TYPE_descriptor(td);
Str1_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Str1] >>> ***/
/*** <<< STAT-DEFS [Str1] >>> ***/
static ber_tlv_tag_t asn_DEF_Str1_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Str1_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Str1 = {
asn_TYPE_descriptor_t asn_DEF_Str1 = {
...
@@ -925,12 +925,12 @@ asn_TYPE_descriptor_t asn_DEF_Str1 = {
...
@@ -925,12 +925,12 @@ asn_TYPE_descriptor_t asn_DEF_Str1 = {
Str1_decode_xer,
Str1_decode_xer,
Str1_encode_xer,
Str1_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str1_
0
_tags,
asn_DEF_Str1_
1
_tags,
sizeof(asn_DEF_Str1_
0
_tags)
sizeof(asn_DEF_Str1_
1
_tags)
/sizeof(asn_DEF_Str1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str1_
1
_tags[0]), /* 1 */
asn_DEF_Str1_
0
_tags, /* Same as above */
asn_DEF_Str1_
1
_tags, /* Same as above */
sizeof(asn_DEF_Str1_
0
_tags)
sizeof(asn_DEF_Str1_
1
_tags)
/sizeof(asn_DEF_Str1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str1_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -957,7 +957,7 @@ xer_type_encoder_f Str2_encode_xer;
...
@@ -957,7 +957,7 @@ xer_type_encoder_f Str2_encode_xer;
/*** <<< CTABLES [Str2] >>> ***/
/*** <<< CTABLES [Str2] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -989,7 +989,7 @@ Str2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -989,7 +989,7 @@ Str2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
size = st->size;
size = st->size;
if(((size <= 20) || (size >= 25 && size <= 30))
if(((size <= 20) || (size >= 25 && size <= 30))
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1005,7 +1005,7 @@ Str2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1005,7 +1005,7 @@ Str2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Str2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Str2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Str1.free_struct;
td->free_struct = asn_DEF_Str1.free_struct;
td->print_struct = asn_DEF_Str1.print_struct;
td->print_struct = asn_DEF_Str1.print_struct;
td->ber_decoder = asn_DEF_Str1.ber_decoder;
td->ber_decoder = asn_DEF_Str1.ber_decoder;
...
@@ -1020,21 +1020,21 @@ Str2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1020,21 +1020,21 @@ Str2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Str2_free(asn_TYPE_descriptor_t *td,
Str2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Str2_
0
_inherit_TYPE_descriptor(td);
Str2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Str2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Str2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Str2_
0
_inherit_TYPE_descriptor(td);
Str2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Str2_
0
_inherit_TYPE_descriptor(td);
Str2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1042,14 +1042,14 @@ asn_enc_rval_t
...
@@ -1042,14 +1042,14 @@ asn_enc_rval_t
Str2_encode_der(asn_TYPE_descriptor_t *td,
Str2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str2_
0
_inherit_TYPE_descriptor(td);
Str2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Str2_
0
_inherit_TYPE_descriptor(td);
Str2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1057,14 +1057,14 @@ asn_enc_rval_t
...
@@ -1057,14 +1057,14 @@ asn_enc_rval_t
Str2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Str2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str2_
0
_inherit_TYPE_descriptor(td);
Str2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Str2] >>> ***/
/*** <<< STAT-DEFS [Str2] >>> ***/
static ber_tlv_tag_t asn_DEF_Str2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Str2_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Str2 = {
asn_TYPE_descriptor_t asn_DEF_Str2 = {
...
@@ -1078,12 +1078,12 @@ asn_TYPE_descriptor_t asn_DEF_Str2 = {
...
@@ -1078,12 +1078,12 @@ asn_TYPE_descriptor_t asn_DEF_Str2 = {
Str2_decode_xer,
Str2_decode_xer,
Str2_encode_xer,
Str2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str2_
0
_tags,
asn_DEF_Str2_
1
_tags,
sizeof(asn_DEF_Str2_
0
_tags)
sizeof(asn_DEF_Str2_
1
_tags)
/sizeof(asn_DEF_Str2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str2_
1
_tags[0]), /* 1 */
asn_DEF_Str2_
0
_tags, /* Same as above */
asn_DEF_Str2_
1
_tags, /* Same as above */
sizeof(asn_DEF_Str2_
0
_tags)
sizeof(asn_DEF_Str2_
1
_tags)
/sizeof(asn_DEF_Str2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str2_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -1110,7 +1110,7 @@ xer_type_encoder_f Str3_encode_xer;
...
@@ -1110,7 +1110,7 @@ xer_type_encoder_f Str3_encode_xer;
/*** <<< CTABLES [Str3] >>> ***/
/*** <<< CTABLES [Str3] >>> ***/
static int permitted_alphabet_table_
0
[256] = {
static int permitted_alphabet_table_
1
[256] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
...
@@ -1120,8 +1120,8 @@ static int permitted_alphabet_table_0[256] = {
...
@@ -1120,8 +1120,8 @@ static int permitted_alphabet_table_0[256] = {
0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, /* def */
0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0, /* def */
};
};
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
int *table = permitted_alphabet_table_
0
;
int *table = permitted_alphabet_table_
1
;
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -1153,7 +1153,7 @@ Str3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1153,7 +1153,7 @@ Str3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
size = st->size;
size = st->size;
if(((size >= 10 && size <= 20) || (size >= 25 && size <= 27))
if(((size >= 10 && size <= 20) || (size >= 25 && size <= 27))
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1169,7 +1169,7 @@ Str3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1169,7 +1169,7 @@ Str3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Str3_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Str3_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Str2.free_struct;
td->free_struct = asn_DEF_Str2.free_struct;
td->print_struct = asn_DEF_Str2.print_struct;
td->print_struct = asn_DEF_Str2.print_struct;
td->ber_decoder = asn_DEF_Str2.ber_decoder;
td->ber_decoder = asn_DEF_Str2.ber_decoder;
...
@@ -1184,21 +1184,21 @@ Str3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1184,21 +1184,21 @@ Str3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Str3_free(asn_TYPE_descriptor_t *td,
Str3_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Str3_
0
_inherit_TYPE_descriptor(td);
Str3_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Str3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Str3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Str3_
0
_inherit_TYPE_descriptor(td);
Str3_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Str3_
0
_inherit_TYPE_descriptor(td);
Str3_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1206,14 +1206,14 @@ asn_enc_rval_t
...
@@ -1206,14 +1206,14 @@ asn_enc_rval_t
Str3_encode_der(asn_TYPE_descriptor_t *td,
Str3_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str3_
0
_inherit_TYPE_descriptor(td);
Str3_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Str3_
0
_inherit_TYPE_descriptor(td);
Str3_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1221,14 +1221,14 @@ asn_enc_rval_t
...
@@ -1221,14 +1221,14 @@ asn_enc_rval_t
Str3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Str3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str3_
0
_inherit_TYPE_descriptor(td);
Str3_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Str3] >>> ***/
/*** <<< STAT-DEFS [Str3] >>> ***/
static ber_tlv_tag_t asn_DEF_Str3_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Str3_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Str3 = {
asn_TYPE_descriptor_t asn_DEF_Str3 = {
...
@@ -1242,12 +1242,12 @@ asn_TYPE_descriptor_t asn_DEF_Str3 = {
...
@@ -1242,12 +1242,12 @@ asn_TYPE_descriptor_t asn_DEF_Str3 = {
Str3_decode_xer,
Str3_decode_xer,
Str3_encode_xer,
Str3_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str3_
0
_tags,
asn_DEF_Str3_
1
_tags,
sizeof(asn_DEF_Str3_
0
_tags)
sizeof(asn_DEF_Str3_
1
_tags)
/sizeof(asn_DEF_Str3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str3_
1
_tags[0]), /* 1 */
asn_DEF_Str3_
0
_tags, /* Same as above */
asn_DEF_Str3_
1
_tags, /* Same as above */
sizeof(asn_DEF_Str3_
0
_tags)
sizeof(asn_DEF_Str3_
1
_tags)
/sizeof(asn_DEF_Str3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str3_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -1274,7 +1274,7 @@ xer_type_encoder_f Str4_encode_xer;
...
@@ -1274,7 +1274,7 @@ xer_type_encoder_f Str4_encode_xer;
/*** <<< CTABLES [Str4] >>> ***/
/*** <<< CTABLES [Str4] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -1303,7 +1303,7 @@ Str4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1303,7 +1303,7 @@ Str4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1319,7 +1319,7 @@ Str4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1319,7 +1319,7 @@ Str4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Str4_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Str4_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_IA5String.free_struct;
td->free_struct = asn_DEF_IA5String.free_struct;
td->print_struct = asn_DEF_IA5String.print_struct;
td->print_struct = asn_DEF_IA5String.print_struct;
td->ber_decoder = asn_DEF_IA5String.ber_decoder;
td->ber_decoder = asn_DEF_IA5String.ber_decoder;
...
@@ -1334,21 +1334,21 @@ Str4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1334,21 +1334,21 @@ Str4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Str4_free(asn_TYPE_descriptor_t *td,
Str4_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Str4_
0
_inherit_TYPE_descriptor(td);
Str4_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Str4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Str4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Str4_
0
_inherit_TYPE_descriptor(td);
Str4_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Str4_
0
_inherit_TYPE_descriptor(td);
Str4_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1356,14 +1356,14 @@ asn_enc_rval_t
...
@@ -1356,14 +1356,14 @@ asn_enc_rval_t
Str4_encode_der(asn_TYPE_descriptor_t *td,
Str4_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str4_
0
_inherit_TYPE_descriptor(td);
Str4_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Str4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Str4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Str4_
0
_inherit_TYPE_descriptor(td);
Str4_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1371,14 +1371,14 @@ asn_enc_rval_t
...
@@ -1371,14 +1371,14 @@ asn_enc_rval_t
Str4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Str4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Str4_
0
_inherit_TYPE_descriptor(td);
Str4_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Str4] >>> ***/
/*** <<< STAT-DEFS [Str4] >>> ***/
static ber_tlv_tag_t asn_DEF_Str4_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Str4_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Str4 = {
asn_TYPE_descriptor_t asn_DEF_Str4 = {
...
@@ -1392,12 +1392,12 @@ asn_TYPE_descriptor_t asn_DEF_Str4 = {
...
@@ -1392,12 +1392,12 @@ asn_TYPE_descriptor_t asn_DEF_Str4 = {
Str4_decode_xer,
Str4_decode_xer,
Str4_encode_xer,
Str4_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Str4_
0
_tags,
asn_DEF_Str4_
1
_tags,
sizeof(asn_DEF_Str4_
0
_tags)
sizeof(asn_DEF_Str4_
1
_tags)
/sizeof(asn_DEF_Str4_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str4_
1
_tags[0]), /* 1 */
asn_DEF_Str4_
0
_tags, /* Same as above */
asn_DEF_Str4_
1
_tags, /* Same as above */
sizeof(asn_DEF_Str4_
0
_tags)
sizeof(asn_DEF_Str4_
1
_tags)
/sizeof(asn_DEF_Str4_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Str4_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -1424,7 +1424,7 @@ xer_type_encoder_f PER_Visible_encode_xer;
...
@@ -1424,7 +1424,7 @@ xer_type_encoder_f PER_Visible_encode_xer;
/*** <<< CTABLES [PER-Visible] >>> ***/
/*** <<< CTABLES [PER-Visible] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -1453,7 +1453,7 @@ PER_Visible_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1453,7 +1453,7 @@ PER_Visible_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1469,7 +1469,7 @@ PER_Visible_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1469,7 +1469,7 @@ PER_Visible_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
PER_Visible_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
PER_Visible_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_IA5String.free_struct;
td->free_struct = asn_DEF_IA5String.free_struct;
td->print_struct = asn_DEF_IA5String.print_struct;
td->print_struct = asn_DEF_IA5String.print_struct;
td->ber_decoder = asn_DEF_IA5String.ber_decoder;
td->ber_decoder = asn_DEF_IA5String.ber_decoder;
...
@@ -1484,21 +1484,21 @@ PER_Visible_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1484,21 +1484,21 @@ PER_Visible_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
PER_Visible_free(asn_TYPE_descriptor_t *td,
PER_Visible_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
PER_Visible_
0
_inherit_TYPE_descriptor(td);
PER_Visible_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
PER_Visible_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
PER_Visible_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
PER_Visible_
0
_inherit_TYPE_descriptor(td);
PER_Visible_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
PER_Visible_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
PER_Visible_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
PER_Visible_
0
_inherit_TYPE_descriptor(td);
PER_Visible_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1506,14 +1506,14 @@ asn_enc_rval_t
...
@@ -1506,14 +1506,14 @@ asn_enc_rval_t
PER_Visible_encode_der(asn_TYPE_descriptor_t *td,
PER_Visible_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
PER_Visible_
0
_inherit_TYPE_descriptor(td);
PER_Visible_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
PER_Visible_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
PER_Visible_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
PER_Visible_
0
_inherit_TYPE_descriptor(td);
PER_Visible_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1521,14 +1521,14 @@ asn_enc_rval_t
...
@@ -1521,14 +1521,14 @@ asn_enc_rval_t
PER_Visible_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
PER_Visible_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
PER_Visible_
0
_inherit_TYPE_descriptor(td);
PER_Visible_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [PER-Visible] >>> ***/
/*** <<< STAT-DEFS [PER-Visible] >>> ***/
static ber_tlv_tag_t asn_DEF_PER_Visible_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_PER_Visible_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_PER_Visible = {
asn_TYPE_descriptor_t asn_DEF_PER_Visible = {
...
@@ -1542,12 +1542,12 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible = {
...
@@ -1542,12 +1542,12 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible = {
PER_Visible_decode_xer,
PER_Visible_decode_xer,
PER_Visible_encode_xer,
PER_Visible_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_PER_Visible_
0
_tags,
asn_DEF_PER_Visible_
1
_tags,
sizeof(asn_DEF_PER_Visible_
0
_tags)
sizeof(asn_DEF_PER_Visible_
1
_tags)
/sizeof(asn_DEF_PER_Visible_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_PER_Visible_
1
_tags[0]), /* 1 */
asn_DEF_PER_Visible_
0
_tags, /* Same as above */
asn_DEF_PER_Visible_
1
_tags, /* Same as above */
sizeof(asn_DEF_PER_Visible_
0
_tags)
sizeof(asn_DEF_PER_Visible_
1
_tags)
/sizeof(asn_DEF_PER_Visible_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_PER_Visible_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -1574,7 +1574,7 @@ xer_type_encoder_f PER_Visible_2_encode_xer;
...
@@ -1574,7 +1574,7 @@ xer_type_encoder_f PER_Visible_2_encode_xer;
/*** <<< CTABLES [PER-Visible-2] >>> ***/
/*** <<< CTABLES [PER-Visible-2] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -1603,7 +1603,7 @@ PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1603,7 +1603,7 @@ PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1619,7 +1619,7 @@ PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1619,7 +1619,7 @@ PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
PER_Visible_2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
PER_Visible_2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -1634,21 +1634,21 @@ PER_Visible_2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1634,21 +1634,21 @@ PER_Visible_2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
PER_Visible_2_free(asn_TYPE_descriptor_t *td,
PER_Visible_2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
PER_Visible_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
PER_Visible_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
PER_Visible_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
PER_Visible_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1656,14 +1656,14 @@ asn_enc_rval_t
...
@@ -1656,14 +1656,14 @@ asn_enc_rval_t
PER_Visible_2_encode_der(asn_TYPE_descriptor_t *td,
PER_Visible_2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
PER_Visible_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
PER_Visible_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1671,14 +1671,14 @@ asn_enc_rval_t
...
@@ -1671,14 +1671,14 @@ asn_enc_rval_t
PER_Visible_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
PER_Visible_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [PER-Visible-2] >>> ***/
/*** <<< STAT-DEFS [PER-Visible-2] >>> ***/
static ber_tlv_tag_t asn_DEF_PER_Visible_2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_PER_Visible_2_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = {
asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = {
...
@@ -1692,12 +1692,12 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = {
...
@@ -1692,12 +1692,12 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = {
PER_Visible_2_decode_xer,
PER_Visible_2_decode_xer,
PER_Visible_2_encode_xer,
PER_Visible_2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_PER_Visible_2_
0
_tags,
asn_DEF_PER_Visible_2_
1
_tags,
sizeof(asn_DEF_PER_Visible_2_
0
_tags)
sizeof(asn_DEF_PER_Visible_2_
1
_tags)
/sizeof(asn_DEF_PER_Visible_2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_PER_Visible_2_
1
_tags[0]), /* 1 */
asn_DEF_PER_Visible_2_
0
_tags, /* Same as above */
asn_DEF_PER_Visible_2_
1
_tags, /* Same as above */
sizeof(asn_DEF_PER_Visible_2_
0
_tags)
sizeof(asn_DEF_PER_Visible_2_
1
_tags)
/sizeof(asn_DEF_PER_Visible_2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_PER_Visible_2_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -1724,7 +1724,7 @@ xer_type_encoder_f Not_PER_Visible_1_encode_xer;
...
@@ -1724,7 +1724,7 @@ xer_type_encoder_f Not_PER_Visible_1_encode_xer;
/*** <<< CTABLES [Not-PER-Visible-1] >>> ***/
/*** <<< CTABLES [Not-PER-Visible-1] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -1753,7 +1753,7 @@ Not_PER_Visible_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1753,7 +1753,7 @@ Not_PER_Visible_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1769,7 +1769,7 @@ Not_PER_Visible_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1769,7 +1769,7 @@ Not_PER_Visible_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -1784,21 +1784,21 @@ Not_PER_Visible_1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1784,21 +1784,21 @@ Not_PER_Visible_1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Not_PER_Visible_1_free(asn_TYPE_descriptor_t *td,
Not_PER_Visible_1_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Not_PER_Visible_1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Not_PER_Visible_1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Not_PER_Visible_1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Not_PER_Visible_1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1806,14 +1806,14 @@ asn_enc_rval_t
...
@@ -1806,14 +1806,14 @@ asn_enc_rval_t
Not_PER_Visible_1_encode_der(asn_TYPE_descriptor_t *td,
Not_PER_Visible_1_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Not_PER_Visible_1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Not_PER_Visible_1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1821,14 +1821,14 @@ asn_enc_rval_t
...
@@ -1821,14 +1821,14 @@ asn_enc_rval_t
Not_PER_Visible_1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Not_PER_Visible_1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_1_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_1_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Not-PER-Visible-1] >>> ***/
/*** <<< STAT-DEFS [Not-PER-Visible-1] >>> ***/
static ber_tlv_tag_t asn_DEF_Not_PER_Visible_1_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Not_PER_Visible_1_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = {
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = {
...
@@ -1842,12 +1842,12 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = {
...
@@ -1842,12 +1842,12 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = {
Not_PER_Visible_1_decode_xer,
Not_PER_Visible_1_decode_xer,
Not_PER_Visible_1_encode_xer,
Not_PER_Visible_1_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Not_PER_Visible_1_
0
_tags,
asn_DEF_Not_PER_Visible_1_
1
_tags,
sizeof(asn_DEF_Not_PER_Visible_1_
0
_tags)
sizeof(asn_DEF_Not_PER_Visible_1_
1
_tags)
/sizeof(asn_DEF_Not_PER_Visible_1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Not_PER_Visible_1_
1
_tags[0]), /* 1 */
asn_DEF_Not_PER_Visible_1_
0
_tags, /* Same as above */
asn_DEF_Not_PER_Visible_1_
1
_tags, /* Same as above */
sizeof(asn_DEF_Not_PER_Visible_1_
0
_tags)
sizeof(asn_DEF_Not_PER_Visible_1_
1
_tags)
/sizeof(asn_DEF_Not_PER_Visible_1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Not_PER_Visible_1_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -1874,7 +1874,7 @@ xer_type_encoder_f Not_PER_Visible_2_encode_xer;
...
@@ -1874,7 +1874,7 @@ xer_type_encoder_f Not_PER_Visible_2_encode_xer;
/*** <<< CTABLES [Not-PER-Visible-2] >>> ***/
/*** <<< CTABLES [Not-PER-Visible-2] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -1903,7 +1903,7 @@ Not_PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1903,7 +1903,7 @@ Not_PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -1919,7 +1919,7 @@ Not_PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1919,7 +1919,7 @@ Not_PER_Visible_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -1934,21 +1934,21 @@ Not_PER_Visible_2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -1934,21 +1934,21 @@ Not_PER_Visible_2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Not_PER_Visible_2_free(asn_TYPE_descriptor_t *td,
Not_PER_Visible_2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Not_PER_Visible_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Not_PER_Visible_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Not_PER_Visible_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Not_PER_Visible_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -1956,14 +1956,14 @@ asn_enc_rval_t
...
@@ -1956,14 +1956,14 @@ asn_enc_rval_t
Not_PER_Visible_2_encode_der(asn_TYPE_descriptor_t *td,
Not_PER_Visible_2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Not_PER_Visible_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Not_PER_Visible_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -1971,14 +1971,14 @@ asn_enc_rval_t
...
@@ -1971,14 +1971,14 @@ asn_enc_rval_t
Not_PER_Visible_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Not_PER_Visible_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_2_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Not-PER-Visible-2] >>> ***/
/*** <<< STAT-DEFS [Not-PER-Visible-2] >>> ***/
static ber_tlv_tag_t asn_DEF_Not_PER_Visible_2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Not_PER_Visible_2_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = {
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = {
...
@@ -1992,12 +1992,12 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = {
...
@@ -1992,12 +1992,12 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = {
Not_PER_Visible_2_decode_xer,
Not_PER_Visible_2_decode_xer,
Not_PER_Visible_2_encode_xer,
Not_PER_Visible_2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Not_PER_Visible_2_
0
_tags,
asn_DEF_Not_PER_Visible_2_
1
_tags,
sizeof(asn_DEF_Not_PER_Visible_2_
0
_tags)
sizeof(asn_DEF_Not_PER_Visible_2_
1
_tags)
/sizeof(asn_DEF_Not_PER_Visible_2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Not_PER_Visible_2_
1
_tags[0]), /* 1 */
asn_DEF_Not_PER_Visible_2_
0
_tags, /* Same as above */
asn_DEF_Not_PER_Visible_2_
1
_tags, /* Same as above */
sizeof(asn_DEF_Not_PER_Visible_2_
0
_tags)
sizeof(asn_DEF_Not_PER_Visible_2_
1
_tags)
/sizeof(asn_DEF_Not_PER_Visible_2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Not_PER_Visible_2_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2024,7 +2024,7 @@ xer_type_encoder_f Not_PER_Visible_3_encode_xer;
...
@@ -2024,7 +2024,7 @@ xer_type_encoder_f Not_PER_Visible_3_encode_xer;
/*** <<< CTABLES [Not-PER-Visible-3] >>> ***/
/*** <<< CTABLES [Not-PER-Visible-3] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -2053,7 +2053,7 @@ Not_PER_Visible_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2053,7 +2053,7 @@ Not_PER_Visible_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -2069,7 +2069,7 @@ Not_PER_Visible_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2069,7 +2069,7 @@ Not_PER_Visible_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -2084,21 +2084,21 @@ Not_PER_Visible_3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2084,21 +2084,21 @@ Not_PER_Visible_3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Not_PER_Visible_3_free(asn_TYPE_descriptor_t *td,
Not_PER_Visible_3_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Not_PER_Visible_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Not_PER_Visible_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Not_PER_Visible_3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Not_PER_Visible_3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -2106,14 +2106,14 @@ asn_enc_rval_t
...
@@ -2106,14 +2106,14 @@ asn_enc_rval_t
Not_PER_Visible_3_encode_der(asn_TYPE_descriptor_t *td,
Not_PER_Visible_3_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Not_PER_Visible_3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Not_PER_Visible_3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -2121,14 +2121,14 @@ asn_enc_rval_t
...
@@ -2121,14 +2121,14 @@ asn_enc_rval_t
Not_PER_Visible_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Not_PER_Visible_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Not_PER_Visible_3_
0
_inherit_TYPE_descriptor(td);
Not_PER_Visible_3_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Not-PER-Visible-3] >>> ***/
/*** <<< STAT-DEFS [Not-PER-Visible-3] >>> ***/
static ber_tlv_tag_t asn_DEF_Not_PER_Visible_3_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Not_PER_Visible_3_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = {
asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = {
...
@@ -2142,12 +2142,12 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = {
...
@@ -2142,12 +2142,12 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = {
Not_PER_Visible_3_decode_xer,
Not_PER_Visible_3_decode_xer,
Not_PER_Visible_3_encode_xer,
Not_PER_Visible_3_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Not_PER_Visible_3_
0
_tags,
asn_DEF_Not_PER_Visible_3_
1
_tags,
sizeof(asn_DEF_Not_PER_Visible_3_
0
_tags)
sizeof(asn_DEF_Not_PER_Visible_3_
1
_tags)
/sizeof(asn_DEF_Not_PER_Visible_3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Not_PER_Visible_3_
1
_tags[0]), /* 1 */
asn_DEF_Not_PER_Visible_3_
0
_tags, /* Same as above */
asn_DEF_Not_PER_Visible_3_
1
_tags, /* Same as above */
sizeof(asn_DEF_Not_PER_Visible_3_
0
_tags)
sizeof(asn_DEF_Not_PER_Visible_3_
1
_tags)
/sizeof(asn_DEF_Not_PER_Visible_3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Not_PER_Visible_3_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2174,7 +2174,7 @@ xer_type_encoder_f SIZE_but_not_FROM_encode_xer;
...
@@ -2174,7 +2174,7 @@ xer_type_encoder_f SIZE_but_not_FROM_encode_xer;
/*** <<< CTABLES [SIZE-but-not-FROM] >>> ***/
/*** <<< CTABLES [SIZE-but-not-FROM] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -2206,7 +2206,7 @@ SIZE_but_not_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2206,7 +2206,7 @@ SIZE_but_not_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
size = st->size;
size = st->size;
if((size >= 1 && size <= 4)
if((size >= 1 && size <= 4)
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -2222,7 +2222,7 @@ SIZE_but_not_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2222,7 +2222,7 @@ SIZE_but_not_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -2237,21 +2237,21 @@ SIZE_but_not_FROM_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2237,21 +2237,21 @@ SIZE_but_not_FROM_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
SIZE_but_not_FROM_free(asn_TYPE_descriptor_t *td,
SIZE_but_not_FROM_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
SIZE_but_not_FROM_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
SIZE_but_not_FROM_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
SIZE_but_not_FROM_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
SIZE_but_not_FROM_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -2259,14 +2259,14 @@ asn_enc_rval_t
...
@@ -2259,14 +2259,14 @@ asn_enc_rval_t
SIZE_but_not_FROM_encode_der(asn_TYPE_descriptor_t *td,
SIZE_but_not_FROM_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
SIZE_but_not_FROM_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
SIZE_but_not_FROM_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -2274,14 +2274,14 @@ asn_enc_rval_t
...
@@ -2274,14 +2274,14 @@ asn_enc_rval_t
SIZE_but_not_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
SIZE_but_not_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
SIZE_but_not_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_but_not_FROM_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [SIZE-but-not-FROM] >>> ***/
/*** <<< STAT-DEFS [SIZE-but-not-FROM] >>> ***/
static ber_tlv_tag_t asn_DEF_SIZE_but_not_FROM_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_SIZE_but_not_FROM_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = {
asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = {
...
@@ -2295,12 +2295,12 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = {
...
@@ -2295,12 +2295,12 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = {
SIZE_but_not_FROM_decode_xer,
SIZE_but_not_FROM_decode_xer,
SIZE_but_not_FROM_encode_xer,
SIZE_but_not_FROM_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_SIZE_but_not_FROM_
0
_tags,
asn_DEF_SIZE_but_not_FROM_
1
_tags,
sizeof(asn_DEF_SIZE_but_not_FROM_
0
_tags)
sizeof(asn_DEF_SIZE_but_not_FROM_
1
_tags)
/sizeof(asn_DEF_SIZE_but_not_FROM_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_SIZE_but_not_FROM_
1
_tags[0]), /* 1 */
asn_DEF_SIZE_but_not_FROM_
0
_tags, /* Same as above */
asn_DEF_SIZE_but_not_FROM_
1
_tags, /* Same as above */
sizeof(asn_DEF_SIZE_but_not_FROM_
0
_tags)
sizeof(asn_DEF_SIZE_but_not_FROM_
1
_tags)
/sizeof(asn_DEF_SIZE_but_not_FROM_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_SIZE_but_not_FROM_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2327,7 +2327,7 @@ xer_type_encoder_f SIZE_and_FROM_encode_xer;
...
@@ -2327,7 +2327,7 @@ xer_type_encoder_f SIZE_and_FROM_encode_xer;
/*** <<< CTABLES [SIZE-and-FROM] >>> ***/
/*** <<< CTABLES [SIZE-and-FROM] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -2359,7 +2359,7 @@ SIZE_and_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2359,7 +2359,7 @@ SIZE_and_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
size = st->size;
size = st->size;
if((size >= 1 && size <= 4)
if((size >= 1 && size <= 4)
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -2375,7 +2375,7 @@ SIZE_and_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2375,7 +2375,7 @@ SIZE_and_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -2390,21 +2390,21 @@ SIZE_and_FROM_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2390,21 +2390,21 @@ SIZE_and_FROM_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
SIZE_and_FROM_free(asn_TYPE_descriptor_t *td,
SIZE_and_FROM_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
SIZE_and_FROM_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
SIZE_and_FROM_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
SIZE_and_FROM_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
SIZE_and_FROM_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -2412,14 +2412,14 @@ asn_enc_rval_t
...
@@ -2412,14 +2412,14 @@ asn_enc_rval_t
SIZE_and_FROM_encode_der(asn_TYPE_descriptor_t *td,
SIZE_and_FROM_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
SIZE_and_FROM_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
SIZE_and_FROM_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -2427,14 +2427,14 @@ asn_enc_rval_t
...
@@ -2427,14 +2427,14 @@ asn_enc_rval_t
SIZE_and_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
SIZE_and_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
SIZE_and_FROM_
0
_inherit_TYPE_descriptor(td);
SIZE_and_FROM_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [SIZE-and-FROM] >>> ***/
/*** <<< STAT-DEFS [SIZE-and-FROM] >>> ***/
static ber_tlv_tag_t asn_DEF_SIZE_and_FROM_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_SIZE_and_FROM_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = {
asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = {
...
@@ -2448,12 +2448,12 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = {
...
@@ -2448,12 +2448,12 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = {
SIZE_and_FROM_decode_xer,
SIZE_and_FROM_decode_xer,
SIZE_and_FROM_encode_xer,
SIZE_and_FROM_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_SIZE_and_FROM_
0
_tags,
asn_DEF_SIZE_and_FROM_
1
_tags,
sizeof(asn_DEF_SIZE_and_FROM_
0
_tags)
sizeof(asn_DEF_SIZE_and_FROM_
1
_tags)
/sizeof(asn_DEF_SIZE_and_FROM_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_SIZE_and_FROM_
1
_tags[0]), /* 1 */
asn_DEF_SIZE_and_FROM_
0
_tags, /* Same as above */
asn_DEF_SIZE_and_FROM_
1
_tags, /* Same as above */
sizeof(asn_DEF_SIZE_and_FROM_
0
_tags)
sizeof(asn_DEF_SIZE_and_FROM_
1
_tags)
/sizeof(asn_DEF_SIZE_and_FROM_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_SIZE_and_FROM_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2480,7 +2480,7 @@ xer_type_encoder_f Neither_SIZE_nor_FROM_encode_xer;
...
@@ -2480,7 +2480,7 @@ xer_type_encoder_f Neither_SIZE_nor_FROM_encode_xer;
/*** <<< CTABLES [Neither-SIZE-nor-FROM] >>> ***/
/*** <<< CTABLES [Neither-SIZE-nor-FROM] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
/* The underlying type is IA5String */
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -2509,7 +2509,7 @@ Neither_SIZE_nor_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2509,7 +2509,7 @@ Neither_SIZE_nor_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -2525,7 +2525,7 @@ Neither_SIZE_nor_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2525,7 +2525,7 @@ Neither_SIZE_nor_FROM_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->free_struct = asn_DEF_PER_Visible.free_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->print_struct = asn_DEF_PER_Visible.print_struct;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
td->ber_decoder = asn_DEF_PER_Visible.ber_decoder;
...
@@ -2540,21 +2540,21 @@ Neither_SIZE_nor_FROM_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2540,21 +2540,21 @@ Neither_SIZE_nor_FROM_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Neither_SIZE_nor_FROM_free(asn_TYPE_descriptor_t *td,
Neither_SIZE_nor_FROM_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(td);
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Neither_SIZE_nor_FROM_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Neither_SIZE_nor_FROM_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(td);
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Neither_SIZE_nor_FROM_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Neither_SIZE_nor_FROM_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(td);
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -2562,14 +2562,14 @@ asn_enc_rval_t
...
@@ -2562,14 +2562,14 @@ asn_enc_rval_t
Neither_SIZE_nor_FROM_encode_der(asn_TYPE_descriptor_t *td,
Neither_SIZE_nor_FROM_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(td);
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Neither_SIZE_nor_FROM_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Neither_SIZE_nor_FROM_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(td);
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -2577,14 +2577,14 @@ asn_enc_rval_t
...
@@ -2577,14 +2577,14 @@ asn_enc_rval_t
Neither_SIZE_nor_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Neither_SIZE_nor_FROM_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Neither_SIZE_nor_FROM_
0
_inherit_TYPE_descriptor(td);
Neither_SIZE_nor_FROM_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Neither-SIZE-nor-FROM] >>> ***/
/*** <<< STAT-DEFS [Neither-SIZE-nor-FROM] >>> ***/
static ber_tlv_tag_t asn_DEF_Neither_SIZE_nor_FROM_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Neither_SIZE_nor_FROM_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (22 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Neither_SIZE_nor_FROM = {
asn_TYPE_descriptor_t asn_DEF_Neither_SIZE_nor_FROM = {
...
@@ -2598,12 +2598,12 @@ asn_TYPE_descriptor_t asn_DEF_Neither_SIZE_nor_FROM = {
...
@@ -2598,12 +2598,12 @@ asn_TYPE_descriptor_t asn_DEF_Neither_SIZE_nor_FROM = {
Neither_SIZE_nor_FROM_decode_xer,
Neither_SIZE_nor_FROM_decode_xer,
Neither_SIZE_nor_FROM_encode_xer,
Neither_SIZE_nor_FROM_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Neither_SIZE_nor_FROM_
0
_tags,
asn_DEF_Neither_SIZE_nor_FROM_
1
_tags,
sizeof(asn_DEF_Neither_SIZE_nor_FROM_
0
_tags)
sizeof(asn_DEF_Neither_SIZE_nor_FROM_
1
_tags)
/sizeof(asn_DEF_Neither_SIZE_nor_FROM_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Neither_SIZE_nor_FROM_
1
_tags[0]), /* 1 */
asn_DEF_Neither_SIZE_nor_FROM_
0
_tags, /* Same as above */
asn_DEF_Neither_SIZE_nor_FROM_
1
_tags, /* Same as above */
sizeof(asn_DEF_Neither_SIZE_nor_FROM_
0
_tags)
sizeof(asn_DEF_Neither_SIZE_nor_FROM_
1
_tags)
/sizeof(asn_DEF_Neither_SIZE_nor_FROM_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Neither_SIZE_nor_FROM_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2630,7 +2630,7 @@ xer_type_encoder_f Utf8_4_encode_xer;
...
@@ -2630,7 +2630,7 @@ xer_type_encoder_f Utf8_4_encode_xer;
/*** <<< CTABLES [Utf8-4] >>> ***/
/*** <<< CTABLES [Utf8-4] >>> ***/
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
if(UTF8String_length((const UTF8String_t *)sptr) < 0)
if(UTF8String_length((const UTF8String_t *)sptr) < 0)
return -1; /* Alphabet (sic!) test failed. */
return -1; /* Alphabet (sic!) test failed. */
...
@@ -2653,7 +2653,7 @@ Utf8_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2653,7 +2653,7 @@ Utf8_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if(!check_permitted_alphabet_
0
(st)) {
if(!check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -2669,7 +2669,7 @@ Utf8_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2669,7 +2669,7 @@ Utf8_4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Utf8_4_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Utf8_4_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_UTF8String.free_struct;
td->free_struct = asn_DEF_UTF8String.free_struct;
td->print_struct = asn_DEF_UTF8String.print_struct;
td->print_struct = asn_DEF_UTF8String.print_struct;
td->ber_decoder = asn_DEF_UTF8String.ber_decoder;
td->ber_decoder = asn_DEF_UTF8String.ber_decoder;
...
@@ -2684,21 +2684,21 @@ Utf8_4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2684,21 +2684,21 @@ Utf8_4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Utf8_4_free(asn_TYPE_descriptor_t *td,
Utf8_4_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Utf8_4_
0
_inherit_TYPE_descriptor(td);
Utf8_4_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Utf8_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Utf8_4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_4_
0
_inherit_TYPE_descriptor(td);
Utf8_4_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Utf8_4_
0
_inherit_TYPE_descriptor(td);
Utf8_4_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -2706,14 +2706,14 @@ asn_enc_rval_t
...
@@ -2706,14 +2706,14 @@ asn_enc_rval_t
Utf8_4_encode_der(asn_TYPE_descriptor_t *td,
Utf8_4_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_4_
0
_inherit_TYPE_descriptor(td);
Utf8_4_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Utf8_4_
0
_inherit_TYPE_descriptor(td);
Utf8_4_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -2721,14 +2721,14 @@ asn_enc_rval_t
...
@@ -2721,14 +2721,14 @@ asn_enc_rval_t
Utf8_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Utf8_4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_4_
0
_inherit_TYPE_descriptor(td);
Utf8_4_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Utf8-4] >>> ***/
/*** <<< STAT-DEFS [Utf8-4] >>> ***/
static ber_tlv_tag_t asn_DEF_Utf8_4_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Utf8_4_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Utf8_4 = {
asn_TYPE_descriptor_t asn_DEF_Utf8_4 = {
...
@@ -2742,12 +2742,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_4 = {
...
@@ -2742,12 +2742,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_4 = {
Utf8_4_decode_xer,
Utf8_4_decode_xer,
Utf8_4_encode_xer,
Utf8_4_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_4_
0
_tags,
asn_DEF_Utf8_4_
1
_tags,
sizeof(asn_DEF_Utf8_4_
0
_tags)
sizeof(asn_DEF_Utf8_4_
1
_tags)
/sizeof(asn_DEF_Utf8_4_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_4_
1
_tags[0]), /* 1 */
asn_DEF_Utf8_4_
0
_tags, /* Same as above */
asn_DEF_Utf8_4_
1
_tags, /* Same as above */
sizeof(asn_DEF_Utf8_4_
0
_tags)
sizeof(asn_DEF_Utf8_4_
1
_tags)
/sizeof(asn_DEF_Utf8_4_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_4_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2774,7 +2774,7 @@ xer_type_encoder_f Utf8_3_encode_xer;
...
@@ -2774,7 +2774,7 @@ xer_type_encoder_f Utf8_3_encode_xer;
/*** <<< CTABLES [Utf8-3] >>> ***/
/*** <<< CTABLES [Utf8-3] >>> ***/
static int permitted_alphabet_table_
0
[128] = {
static int permitted_alphabet_table_
1
[128] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
...
@@ -2785,8 +2785,8 @@ static int permitted_alphabet_table_0[128] = {
...
@@ -2785,8 +2785,8 @@ static int permitted_alphabet_table_0[128] = {
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
};
};
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
int *table = permitted_alphabet_table_
0
;
int *table = permitted_alphabet_table_
1
;
/* The underlying type is UTF8String */
/* The underlying type is UTF8String */
const UTF8String_t *st = (const UTF8String_t *)sptr;
const UTF8String_t *st = (const UTF8String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -2825,7 +2825,7 @@ Utf8_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2825,7 +2825,7 @@ Utf8_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
if((size >= 1 && size <= 2)
if((size >= 1 && size <= 2)
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -2841,7 +2841,7 @@ Utf8_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2841,7 +2841,7 @@ Utf8_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Utf8_3_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Utf8_3_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Utf8_2.free_struct;
td->free_struct = asn_DEF_Utf8_2.free_struct;
td->print_struct = asn_DEF_Utf8_2.print_struct;
td->print_struct = asn_DEF_Utf8_2.print_struct;
td->ber_decoder = asn_DEF_Utf8_2.ber_decoder;
td->ber_decoder = asn_DEF_Utf8_2.ber_decoder;
...
@@ -2856,21 +2856,21 @@ Utf8_3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2856,21 +2856,21 @@ Utf8_3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Utf8_3_free(asn_TYPE_descriptor_t *td,
Utf8_3_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Utf8_3_
0
_inherit_TYPE_descriptor(td);
Utf8_3_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Utf8_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Utf8_3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_3_
0
_inherit_TYPE_descriptor(td);
Utf8_3_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Utf8_3_
0
_inherit_TYPE_descriptor(td);
Utf8_3_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -2878,14 +2878,14 @@ asn_enc_rval_t
...
@@ -2878,14 +2878,14 @@ asn_enc_rval_t
Utf8_3_encode_der(asn_TYPE_descriptor_t *td,
Utf8_3_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_3_
0
_inherit_TYPE_descriptor(td);
Utf8_3_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Utf8_3_
0
_inherit_TYPE_descriptor(td);
Utf8_3_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -2893,14 +2893,14 @@ asn_enc_rval_t
...
@@ -2893,14 +2893,14 @@ asn_enc_rval_t
Utf8_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Utf8_3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_3_
0
_inherit_TYPE_descriptor(td);
Utf8_3_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Utf8-3] >>> ***/
/*** <<< STAT-DEFS [Utf8-3] >>> ***/
static ber_tlv_tag_t asn_DEF_Utf8_3_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Utf8_3_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Utf8_3 = {
asn_TYPE_descriptor_t asn_DEF_Utf8_3 = {
...
@@ -2914,12 +2914,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_3 = {
...
@@ -2914,12 +2914,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_3 = {
Utf8_3_decode_xer,
Utf8_3_decode_xer,
Utf8_3_encode_xer,
Utf8_3_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_3_
0
_tags,
asn_DEF_Utf8_3_
1
_tags,
sizeof(asn_DEF_Utf8_3_
0
_tags)
sizeof(asn_DEF_Utf8_3_
1
_tags)
/sizeof(asn_DEF_Utf8_3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_3_
1
_tags[0]), /* 1 */
asn_DEF_Utf8_3_
0
_tags, /* Same as above */
asn_DEF_Utf8_3_
1
_tags, /* Same as above */
sizeof(asn_DEF_Utf8_3_
0
_tags)
sizeof(asn_DEF_Utf8_3_
1
_tags)
/sizeof(asn_DEF_Utf8_3_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_3_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -2983,7 +2983,7 @@ Utf8_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -2983,7 +2983,7 @@ Utf8_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Utf8_2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Utf8_2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Utf8_1.free_struct;
td->free_struct = asn_DEF_Utf8_1.free_struct;
td->print_struct = asn_DEF_Utf8_1.print_struct;
td->print_struct = asn_DEF_Utf8_1.print_struct;
td->ber_decoder = asn_DEF_Utf8_1.ber_decoder;
td->ber_decoder = asn_DEF_Utf8_1.ber_decoder;
...
@@ -2998,21 +2998,21 @@ Utf8_2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -2998,21 +2998,21 @@ Utf8_2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Utf8_2_free(asn_TYPE_descriptor_t *td,
Utf8_2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Utf8_2_
0
_inherit_TYPE_descriptor(td);
Utf8_2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Utf8_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Utf8_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_2_
0
_inherit_TYPE_descriptor(td);
Utf8_2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Utf8_2_
0
_inherit_TYPE_descriptor(td);
Utf8_2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -3020,14 +3020,14 @@ asn_enc_rval_t
...
@@ -3020,14 +3020,14 @@ asn_enc_rval_t
Utf8_2_encode_der(asn_TYPE_descriptor_t *td,
Utf8_2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_2_
0
_inherit_TYPE_descriptor(td);
Utf8_2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Utf8_2_
0
_inherit_TYPE_descriptor(td);
Utf8_2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -3035,14 +3035,14 @@ asn_enc_rval_t
...
@@ -3035,14 +3035,14 @@ asn_enc_rval_t
Utf8_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Utf8_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_2_
0
_inherit_TYPE_descriptor(td);
Utf8_2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Utf8-2] >>> ***/
/*** <<< STAT-DEFS [Utf8-2] >>> ***/
static ber_tlv_tag_t asn_DEF_Utf8_2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Utf8_2_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Utf8_2 = {
asn_TYPE_descriptor_t asn_DEF_Utf8_2 = {
...
@@ -3056,12 +3056,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_2 = {
...
@@ -3056,12 +3056,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_2 = {
Utf8_2_decode_xer,
Utf8_2_decode_xer,
Utf8_2_encode_xer,
Utf8_2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_2_
0
_tags,
asn_DEF_Utf8_2_
1
_tags,
sizeof(asn_DEF_Utf8_2_
0
_tags)
sizeof(asn_DEF_Utf8_2_
1
_tags)
/sizeof(asn_DEF_Utf8_2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_2_
1
_tags[0]), /* 1 */
asn_DEF_Utf8_2_
0
_tags, /* Same as above */
asn_DEF_Utf8_2_
1
_tags, /* Same as above */
sizeof(asn_DEF_Utf8_2_
0
_tags)
sizeof(asn_DEF_Utf8_2_
1
_tags)
/sizeof(asn_DEF_Utf8_2_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_2_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -3101,7 +3101,7 @@ Utf8_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -3101,7 +3101,7 @@ Utf8_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Utf8_1_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Utf8_1_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_UTF8String.free_struct;
td->free_struct = asn_DEF_UTF8String.free_struct;
td->print_struct = asn_DEF_UTF8String.print_struct;
td->print_struct = asn_DEF_UTF8String.print_struct;
td->ber_decoder = asn_DEF_UTF8String.ber_decoder;
td->ber_decoder = asn_DEF_UTF8String.ber_decoder;
...
@@ -3116,21 +3116,21 @@ Utf8_1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -3116,21 +3116,21 @@ Utf8_1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Utf8_1_free(asn_TYPE_descriptor_t *td,
Utf8_1_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Utf8_1_
0
_inherit_TYPE_descriptor(td);
Utf8_1_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Utf8_1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Utf8_1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_1_
0
_inherit_TYPE_descriptor(td);
Utf8_1_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Utf8_1_
0
_inherit_TYPE_descriptor(td);
Utf8_1_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -3138,14 +3138,14 @@ asn_enc_rval_t
...
@@ -3138,14 +3138,14 @@ asn_enc_rval_t
Utf8_1_encode_der(asn_TYPE_descriptor_t *td,
Utf8_1_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_1_
0
_inherit_TYPE_descriptor(td);
Utf8_1_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Utf8_1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Utf8_1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Utf8_1_
0
_inherit_TYPE_descriptor(td);
Utf8_1_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -3153,14 +3153,14 @@ asn_enc_rval_t
...
@@ -3153,14 +3153,14 @@ asn_enc_rval_t
Utf8_1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Utf8_1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Utf8_1_
0
_inherit_TYPE_descriptor(td);
Utf8_1_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Utf8-1] >>> ***/
/*** <<< STAT-DEFS [Utf8-1] >>> ***/
static ber_tlv_tag_t asn_DEF_Utf8_1_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Utf8_1_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (12 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Utf8_1 = {
asn_TYPE_descriptor_t asn_DEF_Utf8_1 = {
...
@@ -3174,12 +3174,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_1 = {
...
@@ -3174,12 +3174,12 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_1 = {
Utf8_1_decode_xer,
Utf8_1_decode_xer,
Utf8_1_encode_xer,
Utf8_1_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Utf8_1_
0
_tags,
asn_DEF_Utf8_1_
1
_tags,
sizeof(asn_DEF_Utf8_1_
0
_tags)
sizeof(asn_DEF_Utf8_1_
1
_tags)
/sizeof(asn_DEF_Utf8_1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_1_
1
_tags[0]), /* 1 */
asn_DEF_Utf8_1_
0
_tags, /* Same as above */
asn_DEF_Utf8_1_
1
_tags, /* Same as above */
sizeof(asn_DEF_Utf8_1_
0
_tags)
sizeof(asn_DEF_Utf8_1_
1
_tags)
/sizeof(asn_DEF_Utf8_1_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Utf8_1_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -3206,7 +3206,7 @@ xer_type_encoder_f VisibleIdentifier_encode_xer;
...
@@ -3206,7 +3206,7 @@ xer_type_encoder_f VisibleIdentifier_encode_xer;
/*** <<< CTABLES [VisibleIdentifier] >>> ***/
/*** <<< CTABLES [VisibleIdentifier] >>> ***/
static int permitted_alphabet_table_
0
[256] = {
static int permitted_alphabet_table_
1
[256] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0, /* $ */
0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0, /* $ */
...
@@ -3217,8 +3217,8 @@ static int permitted_alphabet_table_0[256] = {
...
@@ -3217,8 +3217,8 @@ static int permitted_alphabet_table_0[256] = {
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
};
};
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
int *table = permitted_alphabet_table_
0
;
int *table = permitted_alphabet_table_
1
;
/* The underlying type is VisibleString */
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -3250,7 +3250,7 @@ VisibleIdentifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -3250,7 +3250,7 @@ VisibleIdentifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
size = st->size;
size = st->size;
if((size >= 1 && size <= 32)
if((size >= 1 && size <= 32)
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -3266,7 +3266,7 @@ VisibleIdentifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -3266,7 +3266,7 @@ VisibleIdentifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
VisibleIdentifier_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
VisibleIdentifier_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Identifier.free_struct;
td->free_struct = asn_DEF_Identifier.free_struct;
td->print_struct = asn_DEF_Identifier.print_struct;
td->print_struct = asn_DEF_Identifier.print_struct;
td->ber_decoder = asn_DEF_Identifier.ber_decoder;
td->ber_decoder = asn_DEF_Identifier.ber_decoder;
...
@@ -3281,21 +3281,21 @@ VisibleIdentifier_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -3281,21 +3281,21 @@ VisibleIdentifier_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
VisibleIdentifier_free(asn_TYPE_descriptor_t *td,
VisibleIdentifier_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
VisibleIdentifier_
0
_inherit_TYPE_descriptor(td);
VisibleIdentifier_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
VisibleIdentifier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
VisibleIdentifier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
VisibleIdentifier_
0
_inherit_TYPE_descriptor(td);
VisibleIdentifier_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
VisibleIdentifier_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
VisibleIdentifier_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
VisibleIdentifier_
0
_inherit_TYPE_descriptor(td);
VisibleIdentifier_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -3303,14 +3303,14 @@ asn_enc_rval_t
...
@@ -3303,14 +3303,14 @@ asn_enc_rval_t
VisibleIdentifier_encode_der(asn_TYPE_descriptor_t *td,
VisibleIdentifier_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
VisibleIdentifier_
0
_inherit_TYPE_descriptor(td);
VisibleIdentifier_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
VisibleIdentifier_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
VisibleIdentifier_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
VisibleIdentifier_
0
_inherit_TYPE_descriptor(td);
VisibleIdentifier_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -3318,14 +3318,14 @@ asn_enc_rval_t
...
@@ -3318,14 +3318,14 @@ asn_enc_rval_t
VisibleIdentifier_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
VisibleIdentifier_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
VisibleIdentifier_
0
_inherit_TYPE_descriptor(td);
VisibleIdentifier_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [VisibleIdentifier] >>> ***/
/*** <<< STAT-DEFS [VisibleIdentifier] >>> ***/
static ber_tlv_tag_t asn_DEF_VisibleIdentifier_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_VisibleIdentifier_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = {
asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = {
...
@@ -3339,12 +3339,12 @@ asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = {
...
@@ -3339,12 +3339,12 @@ asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = {
VisibleIdentifier_decode_xer,
VisibleIdentifier_decode_xer,
VisibleIdentifier_encode_xer,
VisibleIdentifier_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_VisibleIdentifier_
0
_tags,
asn_DEF_VisibleIdentifier_
1
_tags,
sizeof(asn_DEF_VisibleIdentifier_
0
_tags)
sizeof(asn_DEF_VisibleIdentifier_
1
_tags)
/sizeof(asn_DEF_VisibleIdentifier_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_VisibleIdentifier_
1
_tags[0]), /* 1 */
asn_DEF_VisibleIdentifier_
0
_tags, /* Same as above */
asn_DEF_VisibleIdentifier_
1
_tags, /* Same as above */
sizeof(asn_DEF_VisibleIdentifier_
0
_tags)
sizeof(asn_DEF_VisibleIdentifier_
1
_tags)
/sizeof(asn_DEF_VisibleIdentifier_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_VisibleIdentifier_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -3371,7 +3371,7 @@ xer_type_encoder_f Identifier_encode_xer;
...
@@ -3371,7 +3371,7 @@ xer_type_encoder_f Identifier_encode_xer;
/*** <<< CTABLES [Identifier] >>> ***/
/*** <<< CTABLES [Identifier] >>> ***/
static int permitted_alphabet_table_
0
[256] = {
static int permitted_alphabet_table_
1
[256] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0, /* $ */
0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0, /* $ */
...
@@ -3382,8 +3382,8 @@ static int permitted_alphabet_table_0[256] = {
...
@@ -3382,8 +3382,8 @@ static int permitted_alphabet_table_0[256] = {
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
};
};
static int check_permitted_alphabet_
0
(const void *sptr) {
static int check_permitted_alphabet_
1
(const void *sptr) {
int *table = permitted_alphabet_table_
0
;
int *table = permitted_alphabet_table_
1
;
/* The underlying type is VisibleString */
/* The underlying type is VisibleString */
const VisibleString_t *st = (const VisibleString_t *)sptr;
const VisibleString_t *st = (const VisibleString_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *ch = st->buf;
...
@@ -3415,7 +3415,7 @@ Identifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -3415,7 +3415,7 @@ Identifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
size = st->size;
size = st->size;
if((size >= 1 && size <= 32)
if((size >= 1 && size <= 32)
&& !check_permitted_alphabet_
0
(st)) {
&& !check_permitted_alphabet_
1
(st)) {
/* Constraint check succeeded */
/* Constraint check succeeded */
return 0;
return 0;
} else {
} else {
...
@@ -3431,7 +3431,7 @@ Identifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -3431,7 +3431,7 @@ Identifier_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
Identifier_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
Identifier_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_VisibleString.free_struct;
td->free_struct = asn_DEF_VisibleString.free_struct;
td->print_struct = asn_DEF_VisibleString.print_struct;
td->print_struct = asn_DEF_VisibleString.print_struct;
td->ber_decoder = asn_DEF_VisibleString.ber_decoder;
td->ber_decoder = asn_DEF_VisibleString.ber_decoder;
...
@@ -3446,21 +3446,21 @@ Identifier_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -3446,21 +3446,21 @@ Identifier_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
Identifier_free(asn_TYPE_descriptor_t *td,
Identifier_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
Identifier_
0
_inherit_TYPE_descriptor(td);
Identifier_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
Identifier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
Identifier_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
Identifier_
0
_inherit_TYPE_descriptor(td);
Identifier_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Identifier_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Identifier_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
Identifier_
0
_inherit_TYPE_descriptor(td);
Identifier_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -3468,14 +3468,14 @@ asn_enc_rval_t
...
@@ -3468,14 +3468,14 @@ asn_enc_rval_t
Identifier_encode_der(asn_TYPE_descriptor_t *td,
Identifier_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Identifier_
0
_inherit_TYPE_descriptor(td);
Identifier_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
Identifier_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
Identifier_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
Identifier_
0
_inherit_TYPE_descriptor(td);
Identifier_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -3483,14 +3483,14 @@ asn_enc_rval_t
...
@@ -3483,14 +3483,14 @@ asn_enc_rval_t
Identifier_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
Identifier_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
Identifier_
0
_inherit_TYPE_descriptor(td);
Identifier_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [Identifier] >>> ***/
/*** <<< STAT-DEFS [Identifier] >>> ***/
static ber_tlv_tag_t asn_DEF_Identifier_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_Identifier_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (26 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_Identifier = {
asn_TYPE_descriptor_t asn_DEF_Identifier = {
...
@@ -3504,12 +3504,12 @@ asn_TYPE_descriptor_t asn_DEF_Identifier = {
...
@@ -3504,12 +3504,12 @@ asn_TYPE_descriptor_t asn_DEF_Identifier = {
Identifier_decode_xer,
Identifier_decode_xer,
Identifier_encode_xer,
Identifier_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_Identifier_
0
_tags,
asn_DEF_Identifier_
1
_tags,
sizeof(asn_DEF_Identifier_
0
_tags)
sizeof(asn_DEF_Identifier_
1
_tags)
/sizeof(asn_DEF_Identifier_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Identifier_
1
_tags[0]), /* 1 */
asn_DEF_Identifier_
0
_tags, /* Same as above */
asn_DEF_Identifier_
1
_tags, /* Same as above */
sizeof(asn_DEF_Identifier_
0
_tags)
sizeof(asn_DEF_Identifier_
1
_tags)
/sizeof(asn_DEF_Identifier_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_Identifier_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
...
tests/65-multi-tag-OK.asn1.-P
View file @
e8318b8d
...
@@ -33,7 +33,7 @@ T1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -33,7 +33,7 @@ T1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T1_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T1_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T2.free_struct;
td->free_struct = asn_DEF_T2.free_struct;
td->print_struct = asn_DEF_T2.print_struct;
td->print_struct = asn_DEF_T2.print_struct;
td->ber_decoder = asn_DEF_T2.ber_decoder;
td->ber_decoder = asn_DEF_T2.ber_decoder;
...
@@ -48,21 +48,21 @@ T1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -48,21 +48,21 @@ T1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T1_free(asn_TYPE_descriptor_t *td,
T1_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
T1_encode_der(asn_TYPE_descriptor_t *td,
T1_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -85,20 +85,20 @@ asn_enc_rval_t
...
@@ -85,20 +85,20 @@ asn_enc_rval_t
T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T1] >>> ***/
/*** <<< STAT-DEFS [T1] >>> ***/
static ber_tlv_tag_t asn_DEF_T1_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T1_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
};
static ber_tlv_tag_t asn_DEF_T1_
0
_all_tags[] = {
static ber_tlv_tag_t asn_DEF_T1_
1
_all_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
...
@@ -117,12 +117,12 @@ asn_TYPE_descriptor_t asn_DEF_T1 = {
...
@@ -117,12 +117,12 @@ asn_TYPE_descriptor_t asn_DEF_T1 = {
T1_decode_xer,
T1_decode_xer,
T1_encode_xer,
T1_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T1_
0
_tags,
asn_DEF_T1_
1
_tags,
sizeof(asn_DEF_T1_
0
_tags)
sizeof(asn_DEF_T1_
1
_tags)
/sizeof(asn_DEF_T1_
0
_tags[0]), /* 4 */
/sizeof(asn_DEF_T1_
1
_tags[0]), /* 4 */
asn_DEF_T1_
0
_all_tags,
asn_DEF_T1_
1
_all_tags,
sizeof(asn_DEF_T1_
0
_all_tags)
sizeof(asn_DEF_T1_
1
_all_tags)
/sizeof(asn_DEF_T1_
0
_all_tags[0]), /* 6 */
/sizeof(asn_DEF_T1_
1
_all_tags[0]), /* 6 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -162,7 +162,7 @@ T2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -162,7 +162,7 @@ T2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T3.free_struct;
td->free_struct = asn_DEF_T3.free_struct;
td->print_struct = asn_DEF_T3.print_struct;
td->print_struct = asn_DEF_T3.print_struct;
td->ber_decoder = asn_DEF_T3.ber_decoder;
td->ber_decoder = asn_DEF_T3.ber_decoder;
...
@@ -177,21 +177,21 @@ T2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -177,21 +177,21 @@ T2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T2_free(asn_TYPE_descriptor_t *td,
T2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -199,14 +199,14 @@ asn_enc_rval_t
...
@@ -199,14 +199,14 @@ asn_enc_rval_t
T2_encode_der(asn_TYPE_descriptor_t *td,
T2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -214,19 +214,19 @@ asn_enc_rval_t
...
@@ -214,19 +214,19 @@ asn_enc_rval_t
T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T2] >>> ***/
/*** <<< STAT-DEFS [T2] >>> ***/
static ber_tlv_tag_t asn_DEF_T2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T2_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
};
static ber_tlv_tag_t asn_DEF_T2_
0
_all_tags[] = {
static ber_tlv_tag_t asn_DEF_T2_
1
_all_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
...
@@ -244,12 +244,12 @@ asn_TYPE_descriptor_t asn_DEF_T2 = {
...
@@ -244,12 +244,12 @@ asn_TYPE_descriptor_t asn_DEF_T2 = {
T2_decode_xer,
T2_decode_xer,
T2_encode_xer,
T2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T2_
0
_tags,
asn_DEF_T2_
1
_tags,
sizeof(asn_DEF_T2_
0
_tags)
sizeof(asn_DEF_T2_
1
_tags)
/sizeof(asn_DEF_T2_
0
_tags[0]), /* 3 */
/sizeof(asn_DEF_T2_
1
_tags[0]), /* 3 */
asn_DEF_T2_
0
_all_tags,
asn_DEF_T2_
1
_all_tags,
sizeof(asn_DEF_T2_
0
_all_tags)
sizeof(asn_DEF_T2_
1
_all_tags)
/sizeof(asn_DEF_T2_
0
_all_tags[0]), /* 5 */
/sizeof(asn_DEF_T2_
1
_all_tags[0]), /* 5 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -289,7 +289,7 @@ T3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -289,7 +289,7 @@ T3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T3_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T3_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T4.free_struct;
td->free_struct = asn_DEF_T4.free_struct;
td->print_struct = asn_DEF_T4.print_struct;
td->print_struct = asn_DEF_T4.print_struct;
td->ber_decoder = asn_DEF_T4.ber_decoder;
td->ber_decoder = asn_DEF_T4.ber_decoder;
...
@@ -304,21 +304,21 @@ T3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -304,21 +304,21 @@ T3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T3_free(asn_TYPE_descriptor_t *td,
T3_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -326,14 +326,14 @@ asn_enc_rval_t
...
@@ -326,14 +326,14 @@ asn_enc_rval_t
T3_encode_der(asn_TYPE_descriptor_t *td,
T3_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -341,18 +341,18 @@ asn_enc_rval_t
...
@@ -341,18 +341,18 @@ asn_enc_rval_t
T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T3] >>> ***/
/*** <<< STAT-DEFS [T3] >>> ***/
static ber_tlv_tag_t asn_DEF_T3_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T3_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
};
static ber_tlv_tag_t asn_DEF_T3_
0
_all_tags[] = {
static ber_tlv_tag_t asn_DEF_T3_
1
_all_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
...
@@ -369,12 +369,12 @@ asn_TYPE_descriptor_t asn_DEF_T3 = {
...
@@ -369,12 +369,12 @@ asn_TYPE_descriptor_t asn_DEF_T3 = {
T3_decode_xer,
T3_decode_xer,
T3_encode_xer,
T3_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T3_
0
_tags,
asn_DEF_T3_
1
_tags,
sizeof(asn_DEF_T3_
0
_tags)
sizeof(asn_DEF_T3_
1
_tags)
/sizeof(asn_DEF_T3_
0
_tags[0]), /* 2 */
/sizeof(asn_DEF_T3_
1
_tags[0]), /* 2 */
asn_DEF_T3_
0
_all_tags,
asn_DEF_T3_
1
_all_tags,
sizeof(asn_DEF_T3_
0
_all_tags)
sizeof(asn_DEF_T3_
1
_all_tags)
/sizeof(asn_DEF_T3_
0
_all_tags[0]), /* 4 */
/sizeof(asn_DEF_T3_
1
_all_tags[0]), /* 4 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -414,7 +414,7 @@ T4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -414,7 +414,7 @@ T4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T4_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T4_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T5.free_struct;
td->free_struct = asn_DEF_T5.free_struct;
td->print_struct = asn_DEF_T5.print_struct;
td->print_struct = asn_DEF_T5.print_struct;
td->ber_decoder = asn_DEF_T5.ber_decoder;
td->ber_decoder = asn_DEF_T5.ber_decoder;
...
@@ -429,21 +429,21 @@ T4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -429,21 +429,21 @@ T4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T4_free(asn_TYPE_descriptor_t *td,
T4_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -451,14 +451,14 @@ asn_enc_rval_t
...
@@ -451,14 +451,14 @@ asn_enc_rval_t
T4_encode_der(asn_TYPE_descriptor_t *td,
T4_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -466,14 +466,14 @@ asn_enc_rval_t
...
@@ -466,14 +466,14 @@ asn_enc_rval_t
T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T4] >>> ***/
/*** <<< STAT-DEFS [T4] >>> ***/
static ber_tlv_tag_t asn_DEF_T4_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T4_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
...
@@ -489,12 +489,12 @@ asn_TYPE_descriptor_t asn_DEF_T4 = {
...
@@ -489,12 +489,12 @@ asn_TYPE_descriptor_t asn_DEF_T4 = {
T4_decode_xer,
T4_decode_xer,
T4_encode_xer,
T4_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T4_
0
_tags,
asn_DEF_T4_
1
_tags,
sizeof(asn_DEF_T4_
0
_tags)
sizeof(asn_DEF_T4_
1
_tags)
/sizeof(asn_DEF_T4_
0
_tags[0]) - 1, /* 2 */
/sizeof(asn_DEF_T4_
1
_tags[0]) - 1, /* 2 */
asn_DEF_T4_
0
_tags, /* Same as above */
asn_DEF_T4_
1
_tags, /* Same as above */
sizeof(asn_DEF_T4_
0
_tags)
sizeof(asn_DEF_T4_
1
_tags)
/sizeof(asn_DEF_T4_
0
_tags[0]), /* 3 */
/sizeof(asn_DEF_T4_
1
_tags[0]), /* 3 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -534,7 +534,7 @@ T5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -534,7 +534,7 @@ T5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T5_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T5_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T6.free_struct;
td->free_struct = asn_DEF_T6.free_struct;
td->print_struct = asn_DEF_T6.print_struct;
td->print_struct = asn_DEF_T6.print_struct;
td->ber_decoder = asn_DEF_T6.ber_decoder;
td->ber_decoder = asn_DEF_T6.ber_decoder;
...
@@ -549,21 +549,21 @@ T5_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -549,21 +549,21 @@ T5_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T5_free(asn_TYPE_descriptor_t *td,
T5_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -571,14 +571,14 @@ asn_enc_rval_t
...
@@ -571,14 +571,14 @@ asn_enc_rval_t
T5_encode_der(asn_TYPE_descriptor_t *td,
T5_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -586,14 +586,14 @@ asn_enc_rval_t
...
@@ -586,14 +586,14 @@ asn_enc_rval_t
T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T5] >>> ***/
/*** <<< STAT-DEFS [T5] >>> ***/
static ber_tlv_tag_t asn_DEF_T5_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T5_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
};
...
@@ -608,12 +608,12 @@ asn_TYPE_descriptor_t asn_DEF_T5 = {
...
@@ -608,12 +608,12 @@ asn_TYPE_descriptor_t asn_DEF_T5 = {
T5_decode_xer,
T5_decode_xer,
T5_encode_xer,
T5_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T5_
0
_tags,
asn_DEF_T5_
1
_tags,
sizeof(asn_DEF_T5_
0
_tags)
sizeof(asn_DEF_T5_
1
_tags)
/sizeof(asn_DEF_T5_
0
_tags[0]) - 1, /* 1 */
/sizeof(asn_DEF_T5_
1
_tags[0]) - 1, /* 1 */
asn_DEF_T5_
0
_tags, /* Same as above */
asn_DEF_T5_
1
_tags, /* Same as above */
sizeof(asn_DEF_T5_
0
_tags)
sizeof(asn_DEF_T5_
1
_tags)
/sizeof(asn_DEF_T5_
0
_tags[0]), /* 2 */
/sizeof(asn_DEF_T5_
1
_tags[0]), /* 2 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -653,7 +653,7 @@ T6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -653,7 +653,7 @@ T6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T6_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T6_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_REAL.free_struct;
td->free_struct = asn_DEF_REAL.free_struct;
td->print_struct = asn_DEF_REAL.print_struct;
td->print_struct = asn_DEF_REAL.print_struct;
td->ber_decoder = asn_DEF_REAL.ber_decoder;
td->ber_decoder = asn_DEF_REAL.ber_decoder;
...
@@ -668,21 +668,21 @@ T6_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -668,21 +668,21 @@ T6_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T6_free(asn_TYPE_descriptor_t *td,
T6_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T6_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T6_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -690,14 +690,14 @@ asn_enc_rval_t
...
@@ -690,14 +690,14 @@ asn_enc_rval_t
T6_encode_der(asn_TYPE_descriptor_t *td,
T6_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T6_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T6_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -705,14 +705,14 @@ asn_enc_rval_t
...
@@ -705,14 +705,14 @@ asn_enc_rval_t
T6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T6] >>> ***/
/*** <<< STAT-DEFS [T6] >>> ***/
static ber_tlv_tag_t asn_DEF_T6_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T6_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_T6 = {
asn_TYPE_descriptor_t asn_DEF_T6 = {
...
@@ -726,12 +726,12 @@ asn_TYPE_descriptor_t asn_DEF_T6 = {
...
@@ -726,12 +726,12 @@ asn_TYPE_descriptor_t asn_DEF_T6 = {
T6_decode_xer,
T6_decode_xer,
T6_encode_xer,
T6_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T6_
0
_tags,
asn_DEF_T6_
1
_tags,
sizeof(asn_DEF_T6_
0
_tags)
sizeof(asn_DEF_T6_
1
_tags)
/sizeof(asn_DEF_T6_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_T6_
1
_tags[0]), /* 1 */
asn_DEF_T6_
0
_tags, /* Same as above */
asn_DEF_T6_
1
_tags, /* Same as above */
sizeof(asn_DEF_T6_
0
_tags)
sizeof(asn_DEF_T6_
1
_tags)
/sizeof(asn_DEF_T6_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_T6_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -771,7 +771,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -771,7 +771,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Ts.free_struct;
td->free_struct = asn_DEF_Ts.free_struct;
td->print_struct = asn_DEF_Ts.print_struct;
td->print_struct = asn_DEF_Ts.print_struct;
td->ber_decoder = asn_DEF_Ts.ber_decoder;
td->ber_decoder = asn_DEF_Ts.ber_decoder;
...
@@ -786,21 +786,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -786,21 +786,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T_free(asn_TYPE_descriptor_t *td,
T_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -808,14 +808,14 @@ asn_enc_rval_t
...
@@ -808,14 +808,14 @@ asn_enc_rval_t
T_encode_der(asn_TYPE_descriptor_t *td,
T_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -823,14 +823,14 @@ asn_enc_rval_t
...
@@ -823,14 +823,14 @@ asn_enc_rval_t
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
static ber_tlv_tag_t asn_DEF_T_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
...
@@ -846,12 +846,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
...
@@ -846,12 +846,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
T_decode_xer,
T_decode_xer,
T_encode_xer,
T_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T_
0
_tags,
asn_DEF_T_
1
_tags,
sizeof(asn_DEF_T_
0
_tags)
sizeof(asn_DEF_T_
1
_tags)
/sizeof(asn_DEF_T_
0
_tags[0]) - 2, /* 1 */
/sizeof(asn_DEF_T_
1
_tags[0]) - 2, /* 1 */
asn_DEF_T_
0
_tags, /* Same as above */
asn_DEF_T_
1
_tags, /* Same as above */
sizeof(asn_DEF_T_
0
_tags)
sizeof(asn_DEF_T_
1
_tags)
/sizeof(asn_DEF_T_
0
_tags[0]), /* 3 */
/sizeof(asn_DEF_T_
1
_tags[0]), /* 3 */
0, 0, /* Defined elsewhere */
0, 0, /* Defined elsewhere */
0 /* No specifics */
0 /* No specifics */
};
};
...
...
tests/65-multi-tag-OK.asn1.-Pfnative-types
View file @
e8318b8d
...
@@ -33,7 +33,7 @@ T1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -33,7 +33,7 @@ T1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T1_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T1_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T2.free_struct;
td->free_struct = asn_DEF_T2.free_struct;
td->print_struct = asn_DEF_T2.print_struct;
td->print_struct = asn_DEF_T2.print_struct;
td->ber_decoder = asn_DEF_T2.ber_decoder;
td->ber_decoder = asn_DEF_T2.ber_decoder;
...
@@ -48,21 +48,21 @@ T1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -48,21 +48,21 @@ T1_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T1_free(asn_TYPE_descriptor_t *td,
T1_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T1_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T1_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
...
@@ -70,14 +70,14 @@ asn_enc_rval_t
T1_encode_der(asn_TYPE_descriptor_t *td,
T1_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T1_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -85,20 +85,20 @@ asn_enc_rval_t
...
@@ -85,20 +85,20 @@ asn_enc_rval_t
T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T1_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T1_
0
_inherit_TYPE_descriptor(td);
T1_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T1] >>> ***/
/*** <<< STAT-DEFS [T1] >>> ***/
static ber_tlv_tag_t asn_DEF_T1_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T1_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
};
static ber_tlv_tag_t asn_DEF_T1_
0
_all_tags[] = {
static ber_tlv_tag_t asn_DEF_T1_
1
_all_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
...
@@ -117,12 +117,12 @@ asn_TYPE_descriptor_t asn_DEF_T1 = {
...
@@ -117,12 +117,12 @@ asn_TYPE_descriptor_t asn_DEF_T1 = {
T1_decode_xer,
T1_decode_xer,
T1_encode_xer,
T1_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T1_
0
_tags,
asn_DEF_T1_
1
_tags,
sizeof(asn_DEF_T1_
0
_tags)
sizeof(asn_DEF_T1_
1
_tags)
/sizeof(asn_DEF_T1_
0
_tags[0]), /* 4 */
/sizeof(asn_DEF_T1_
1
_tags[0]), /* 4 */
asn_DEF_T1_
0
_all_tags,
asn_DEF_T1_
1
_all_tags,
sizeof(asn_DEF_T1_
0
_all_tags)
sizeof(asn_DEF_T1_
1
_all_tags)
/sizeof(asn_DEF_T1_
0
_all_tags[0]), /* 6 */
/sizeof(asn_DEF_T1_
1
_all_tags[0]), /* 6 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -162,7 +162,7 @@ T2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -162,7 +162,7 @@ T2_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T2_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T2_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T3.free_struct;
td->free_struct = asn_DEF_T3.free_struct;
td->print_struct = asn_DEF_T3.print_struct;
td->print_struct = asn_DEF_T3.print_struct;
td->ber_decoder = asn_DEF_T3.ber_decoder;
td->ber_decoder = asn_DEF_T3.ber_decoder;
...
@@ -177,21 +177,21 @@ T2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -177,21 +177,21 @@ T2_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T2_free(asn_TYPE_descriptor_t *td,
T2_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -199,14 +199,14 @@ asn_enc_rval_t
...
@@ -199,14 +199,14 @@ asn_enc_rval_t
T2_encode_der(asn_TYPE_descriptor_t *td,
T2_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -214,19 +214,19 @@ asn_enc_rval_t
...
@@ -214,19 +214,19 @@ asn_enc_rval_t
T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T2_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T2_
0
_inherit_TYPE_descriptor(td);
T2_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T2] >>> ***/
/*** <<< STAT-DEFS [T2] >>> ***/
static ber_tlv_tag_t asn_DEF_T2_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T2_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
};
static ber_tlv_tag_t asn_DEF_T2_
0
_all_tags[] = {
static ber_tlv_tag_t asn_DEF_T2_
1
_all_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
...
@@ -244,12 +244,12 @@ asn_TYPE_descriptor_t asn_DEF_T2 = {
...
@@ -244,12 +244,12 @@ asn_TYPE_descriptor_t asn_DEF_T2 = {
T2_decode_xer,
T2_decode_xer,
T2_encode_xer,
T2_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T2_
0
_tags,
asn_DEF_T2_
1
_tags,
sizeof(asn_DEF_T2_
0
_tags)
sizeof(asn_DEF_T2_
1
_tags)
/sizeof(asn_DEF_T2_
0
_tags[0]), /* 3 */
/sizeof(asn_DEF_T2_
1
_tags[0]), /* 3 */
asn_DEF_T2_
0
_all_tags,
asn_DEF_T2_
1
_all_tags,
sizeof(asn_DEF_T2_
0
_all_tags)
sizeof(asn_DEF_T2_
1
_all_tags)
/sizeof(asn_DEF_T2_
0
_all_tags[0]), /* 5 */
/sizeof(asn_DEF_T2_
1
_all_tags[0]), /* 5 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -289,7 +289,7 @@ T3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -289,7 +289,7 @@ T3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T3_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T3_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T4.free_struct;
td->free_struct = asn_DEF_T4.free_struct;
td->print_struct = asn_DEF_T4.print_struct;
td->print_struct = asn_DEF_T4.print_struct;
td->ber_decoder = asn_DEF_T4.ber_decoder;
td->ber_decoder = asn_DEF_T4.ber_decoder;
...
@@ -304,21 +304,21 @@ T3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -304,21 +304,21 @@ T3_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T3_free(asn_TYPE_descriptor_t *td,
T3_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T3_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T3_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -326,14 +326,14 @@ asn_enc_rval_t
...
@@ -326,14 +326,14 @@ asn_enc_rval_t
T3_encode_der(asn_TYPE_descriptor_t *td,
T3_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T3_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -341,18 +341,18 @@ asn_enc_rval_t
...
@@ -341,18 +341,18 @@ asn_enc_rval_t
T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T3_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T3_
0
_inherit_TYPE_descriptor(td);
T3_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T3] >>> ***/
/*** <<< STAT-DEFS [T3] >>> ***/
static ber_tlv_tag_t asn_DEF_T3_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T3_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
(ASN_TAG_CLASS_CONTEXT | (6 << 2))
};
};
static ber_tlv_tag_t asn_DEF_T3_
0
_all_tags[] = {
static ber_tlv_tag_t asn_DEF_T3_
1
_all_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (4 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
...
@@ -369,12 +369,12 @@ asn_TYPE_descriptor_t asn_DEF_T3 = {
...
@@ -369,12 +369,12 @@ asn_TYPE_descriptor_t asn_DEF_T3 = {
T3_decode_xer,
T3_decode_xer,
T3_encode_xer,
T3_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T3_
0
_tags,
asn_DEF_T3_
1
_tags,
sizeof(asn_DEF_T3_
0
_tags)
sizeof(asn_DEF_T3_
1
_tags)
/sizeof(asn_DEF_T3_
0
_tags[0]), /* 2 */
/sizeof(asn_DEF_T3_
1
_tags[0]), /* 2 */
asn_DEF_T3_
0
_all_tags,
asn_DEF_T3_
1
_all_tags,
sizeof(asn_DEF_T3_
0
_all_tags)
sizeof(asn_DEF_T3_
1
_all_tags)
/sizeof(asn_DEF_T3_
0
_all_tags[0]), /* 4 */
/sizeof(asn_DEF_T3_
1
_all_tags[0]), /* 4 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -414,7 +414,7 @@ T4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -414,7 +414,7 @@ T4_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T4_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T4_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T5.free_struct;
td->free_struct = asn_DEF_T5.free_struct;
td->print_struct = asn_DEF_T5.print_struct;
td->print_struct = asn_DEF_T5.print_struct;
td->ber_decoder = asn_DEF_T5.ber_decoder;
td->ber_decoder = asn_DEF_T5.ber_decoder;
...
@@ -429,21 +429,21 @@ T4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -429,21 +429,21 @@ T4_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T4_free(asn_TYPE_descriptor_t *td,
T4_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T4_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T4_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -451,14 +451,14 @@ asn_enc_rval_t
...
@@ -451,14 +451,14 @@ asn_enc_rval_t
T4_encode_der(asn_TYPE_descriptor_t *td,
T4_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T4_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -466,14 +466,14 @@ asn_enc_rval_t
...
@@ -466,14 +466,14 @@ asn_enc_rval_t
T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T4_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T4_
0
_inherit_TYPE_descriptor(td);
T4_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T4] >>> ***/
/*** <<< STAT-DEFS [T4] >>> ***/
static ber_tlv_tag_t asn_DEF_T4_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T4_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (5 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
...
@@ -489,12 +489,12 @@ asn_TYPE_descriptor_t asn_DEF_T4 = {
...
@@ -489,12 +489,12 @@ asn_TYPE_descriptor_t asn_DEF_T4 = {
T4_decode_xer,
T4_decode_xer,
T4_encode_xer,
T4_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T4_
0
_tags,
asn_DEF_T4_
1
_tags,
sizeof(asn_DEF_T4_
0
_tags)
sizeof(asn_DEF_T4_
1
_tags)
/sizeof(asn_DEF_T4_
0
_tags[0]) - 1, /* 2 */
/sizeof(asn_DEF_T4_
1
_tags[0]) - 1, /* 2 */
asn_DEF_T4_
0
_tags, /* Same as above */
asn_DEF_T4_
1
_tags, /* Same as above */
sizeof(asn_DEF_T4_
0
_tags)
sizeof(asn_DEF_T4_
1
_tags)
/sizeof(asn_DEF_T4_
0
_tags[0]), /* 3 */
/sizeof(asn_DEF_T4_
1
_tags[0]), /* 3 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -534,7 +534,7 @@ T5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -534,7 +534,7 @@ T5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T5_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T5_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_T6.free_struct;
td->free_struct = asn_DEF_T6.free_struct;
td->print_struct = asn_DEF_T6.print_struct;
td->print_struct = asn_DEF_T6.print_struct;
td->ber_decoder = asn_DEF_T6.ber_decoder;
td->ber_decoder = asn_DEF_T6.ber_decoder;
...
@@ -549,21 +549,21 @@ T5_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -549,21 +549,21 @@ T5_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T5_free(asn_TYPE_descriptor_t *td,
T5_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T5_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T5_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -571,14 +571,14 @@ asn_enc_rval_t
...
@@ -571,14 +571,14 @@ asn_enc_rval_t
T5_encode_der(asn_TYPE_descriptor_t *td,
T5_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T5_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -586,14 +586,14 @@ asn_enc_rval_t
...
@@ -586,14 +586,14 @@ asn_enc_rval_t
T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T5_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T5_
0
_inherit_TYPE_descriptor(td);
T5_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T5] >>> ***/
/*** <<< STAT-DEFS [T5] >>> ***/
static ber_tlv_tag_t asn_DEF_T5_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T5_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_CONTEXT | (6 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
};
...
@@ -608,12 +608,12 @@ asn_TYPE_descriptor_t asn_DEF_T5 = {
...
@@ -608,12 +608,12 @@ asn_TYPE_descriptor_t asn_DEF_T5 = {
T5_decode_xer,
T5_decode_xer,
T5_encode_xer,
T5_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T5_
0
_tags,
asn_DEF_T5_
1
_tags,
sizeof(asn_DEF_T5_
0
_tags)
sizeof(asn_DEF_T5_
1
_tags)
/sizeof(asn_DEF_T5_
0
_tags[0]) - 1, /* 1 */
/sizeof(asn_DEF_T5_
1
_tags[0]) - 1, /* 1 */
asn_DEF_T5_
0
_tags, /* Same as above */
asn_DEF_T5_
1
_tags, /* Same as above */
sizeof(asn_DEF_T5_
0
_tags)
sizeof(asn_DEF_T5_
1
_tags)
/sizeof(asn_DEF_T5_
0
_tags[0]), /* 2 */
/sizeof(asn_DEF_T5_
1
_tags[0]), /* 2 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -653,7 +653,7 @@ T6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -653,7 +653,7 @@ T6_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T6_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T6_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_NativeReal.free_struct;
td->free_struct = asn_DEF_NativeReal.free_struct;
td->print_struct = asn_DEF_NativeReal.print_struct;
td->print_struct = asn_DEF_NativeReal.print_struct;
td->ber_decoder = asn_DEF_NativeReal.ber_decoder;
td->ber_decoder = asn_DEF_NativeReal.ber_decoder;
...
@@ -668,21 +668,21 @@ T6_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -668,21 +668,21 @@ T6_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T6_free(asn_TYPE_descriptor_t *td,
T6_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T6_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T6_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T6_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -690,14 +690,14 @@ asn_enc_rval_t
...
@@ -690,14 +690,14 @@ asn_enc_rval_t
T6_encode_der(asn_TYPE_descriptor_t *td,
T6_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T6_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T6_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -705,14 +705,14 @@ asn_enc_rval_t
...
@@ -705,14 +705,14 @@ asn_enc_rval_t
T6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T6_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T6_
0
_inherit_TYPE_descriptor(td);
T6_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T6] >>> ***/
/*** <<< STAT-DEFS [T6] >>> ***/
static ber_tlv_tag_t asn_DEF_T6_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T6_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_T6 = {
asn_TYPE_descriptor_t asn_DEF_T6 = {
...
@@ -726,12 +726,12 @@ asn_TYPE_descriptor_t asn_DEF_T6 = {
...
@@ -726,12 +726,12 @@ asn_TYPE_descriptor_t asn_DEF_T6 = {
T6_decode_xer,
T6_decode_xer,
T6_encode_xer,
T6_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T6_
0
_tags,
asn_DEF_T6_
1
_tags,
sizeof(asn_DEF_T6_
0
_tags)
sizeof(asn_DEF_T6_
1
_tags)
/sizeof(asn_DEF_T6_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_T6_
1
_tags[0]), /* 1 */
asn_DEF_T6_
0
_tags, /* Same as above */
asn_DEF_T6_
1
_tags, /* Same as above */
sizeof(asn_DEF_T6_
0
_tags)
sizeof(asn_DEF_T6_
1
_tags)
/sizeof(asn_DEF_T6_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_T6_
1
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -771,7 +771,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -771,7 +771,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
T_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Ts.free_struct;
td->free_struct = asn_DEF_Ts.free_struct;
td->print_struct = asn_DEF_Ts.print_struct;
td->print_struct = asn_DEF_Ts.print_struct;
td->ber_decoder = asn_DEF_Ts.ber_decoder;
td->ber_decoder = asn_DEF_Ts.ber_decoder;
...
@@ -786,21 +786,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -786,21 +786,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
T_free(asn_TYPE_descriptor_t *td,
T_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -808,14 +808,14 @@ asn_enc_rval_t
...
@@ -808,14 +808,14 @@ asn_enc_rval_t
T_encode_der(asn_TYPE_descriptor_t *td,
T_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -823,14 +823,14 @@ asn_enc_rval_t
...
@@ -823,14 +823,14 @@ asn_enc_rval_t
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
T_
0
_inherit_TYPE_descriptor(td);
T_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
static ber_tlv_tag_t asn_DEF_T_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_T_
1
_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_CONTEXT | (0 << 2)),
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_CONTEXT | (123 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
...
@@ -846,12 +846,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
...
@@ -846,12 +846,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
T_decode_xer,
T_decode_xer,
T_encode_xer,
T_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_T_
0
_tags,
asn_DEF_T_
1
_tags,
sizeof(asn_DEF_T_
0
_tags)
sizeof(asn_DEF_T_
1
_tags)
/sizeof(asn_DEF_T_
0
_tags[0]) - 2, /* 1 */
/sizeof(asn_DEF_T_
1
_tags[0]) - 2, /* 1 */
asn_DEF_T_
0
_tags, /* Same as above */
asn_DEF_T_
1
_tags, /* Same as above */
sizeof(asn_DEF_T_
0
_tags)
sizeof(asn_DEF_T_
1
_tags)
/sizeof(asn_DEF_T_
0
_tags[0]), /* 3 */
/sizeof(asn_DEF_T_
1
_tags[0]), /* 3 */
0, 0, /* Defined elsewhere */
0, 0, /* Defined elsewhere */
0 /* No specifics */
0 /* No specifics */
};
};
...
...
tests/69-reserved-words-OK.asn1.-P
View file @
e8318b8d
...
@@ -75,27 +75,27 @@ memb_char_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -75,27 +75,27 @@ memb_char_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< STAT-DEFS [T] >>> ***/
/*** <<< STAT-DEFS [T] >>> ***/
static ber_tlv_tag_t asn_DEF_class_
2
_tags[] = {
static ber_tlv_tag_t asn_DEF_class_
4
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
};
static asn_TYPE_tag2member_t asn_MAP_class_
2
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_class_
4
_tag2el[] = {
};
};
static uint8_t asn_MAP_class_
2
_mmap[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
static uint8_t asn_MAP_class_
4
_mmap[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
0
0
};
};
static asn_SET_specifics_t asn_SPC_class_
2
_specs = {
static asn_SET_specifics_t asn_SPC_class_
4
_specs = {
sizeof(struct Class),
sizeof(struct Class),
offsetof(struct Class, _asn_ctx),
offsetof(struct Class, _asn_ctx),
offsetof(struct Class, _presence_map),
offsetof(struct Class, _presence_map),
asn_MAP_class_
2
_tag2el,
asn_MAP_class_
4
_tag2el,
0, /* Count of tags in the map */
0, /* Count of tags in the map */
asn_MAP_class_
2
_tag2el, /* Same as above */
asn_MAP_class_
4
_tag2el, /* Same as above */
0, /* Count of tags in the CXER map */
0, /* Count of tags in the CXER map */
1, /* Whether extensible */
1, /* Whether extensible */
(unsigned int *)asn_MAP_class_
2
_mmap /* Mandatory elements map */
(unsigned int *)asn_MAP_class_
4
_mmap /* Mandatory elements map */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_class_
2
= {
asn_TYPE_descriptor_t asn_DEF_class_
4
= {
"class",
"class",
"class",
"class",
SET_free,
SET_free,
...
@@ -106,14 +106,14 @@ asn_TYPE_descriptor_t asn_DEF_class_2 = {
...
@@ -106,14 +106,14 @@ asn_TYPE_descriptor_t asn_DEF_class_2 = {
SET_decode_xer,
SET_decode_xer,
SET_encode_xer,
SET_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_class_
2
_tags,
asn_DEF_class_
4
_tags,
sizeof(asn_DEF_class_
2
_tags)
sizeof(asn_DEF_class_
4
_tags)
/sizeof(asn_DEF_class_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_class_
4
_tags[0]), /* 1 */
asn_DEF_class_
2
_tags, /* Same as above */
asn_DEF_class_
4
_tags, /* Same as above */
sizeof(asn_DEF_class_
2
_tags)
sizeof(asn_DEF_class_
4
_tags)
/sizeof(asn_DEF_class_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_class_
4
_tags[0]), /* 1 */
0, 0, /* No members */
0, 0, /* No members */
&asn_SPC_class_
2
_specs /* Additional specs */
&asn_SPC_class_
4
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_T_1[] = {
static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -134,7 +134,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
...
@@ -134,7 +134,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, Class),
{ ATF_NOFLAGS, 0, offsetof(struct T, Class),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_class_
2
,
.type = (void *)&asn_DEF_class_
4
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "class"
.name = "class"
},
},
...
...
tests/72-same-names-OK.asn1.-P
View file @
e8318b8d
...
@@ -407,7 +407,7 @@ memb_a_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -407,7 +407,7 @@ memb_a_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
}
static int
static int
memb_a_
5
_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
memb_a_
8
_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_consume_bytes_f *app_errlog, void *app_key) {
asn_app_consume_bytes_f *app_errlog, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
size_t size;
...
@@ -540,12 +540,12 @@ asn_TYPE_descriptor_t asn_DEF_one_name_2 = {
...
@@ -540,12 +540,12 @@ asn_TYPE_descriptor_t asn_DEF_one_name_2 = {
&asn_SPC_one_name_2_specs /* Additional specs */
&asn_SPC_one_name_2_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_another_name_
5
[] = {
static asn_TYPE_member_t asn_MBR_another_name_
8
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_BIT_STRING,
.type = (void *)&asn_DEF_BIT_STRING,
.memb_constraints = memb_a_
5
_constraint,
.memb_constraints = memb_a_
8
_constraint,
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
...
@@ -556,23 +556,23 @@ static asn_TYPE_member_t asn_MBR_another_name_5[] = {
...
@@ -556,23 +556,23 @@ static asn_TYPE_member_t asn_MBR_another_name_5[] = {
.name = "b"
.name = "b"
},
},
};
};
static ber_tlv_tag_t asn_DEF_another_name_
5
_tags[] = {
static ber_tlv_tag_t asn_DEF_another_name_
8
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
static asn_TYPE_tag2member_t asn_MAP_another_name_
5
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_another_name_
8
_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b at 42 */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b at 42 */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a at 40 */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a at 40 */
};
};
static asn_SEQUENCE_specifics_t asn_SPC_another_name_
5
_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_another_name_
8
_specs = {
sizeof(struct another_name),
sizeof(struct another_name),
offsetof(struct another_name, _asn_ctx),
offsetof(struct another_name, _asn_ctx),
asn_MAP_another_name_
5
_tag2el,
asn_MAP_another_name_
8
_tag2el,
2, /* Count of tags in the map */
2, /* Count of tags in the map */
-1, /* Start extensions */
-1, /* Start extensions */
-1 /* Stop extensions */
-1 /* Stop extensions */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_another_name_
5
= {
asn_TYPE_descriptor_t asn_DEF_another_name_
8
= {
"another-name",
"another-name",
"another-name",
"another-name",
SEQUENCE_free,
SEQUENCE_free,
...
@@ -583,48 +583,48 @@ asn_TYPE_descriptor_t asn_DEF_another_name_5 = {
...
@@ -583,48 +583,48 @@ asn_TYPE_descriptor_t asn_DEF_another_name_5 = {
SEQUENCE_decode_xer,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_another_name_
5
_tags,
asn_DEF_another_name_
8
_tags,
sizeof(asn_DEF_another_name_
5
_tags)
sizeof(asn_DEF_another_name_
8
_tags)
/sizeof(asn_DEF_another_name_
5
_tags[0]), /* 1 */
/sizeof(asn_DEF_another_name_
8
_tags[0]), /* 1 */
asn_DEF_another_name_
5
_tags, /* Same as above */
asn_DEF_another_name_
8
_tags, /* Same as above */
sizeof(asn_DEF_another_name_
5
_tags)
sizeof(asn_DEF_another_name_
8
_tags)
/sizeof(asn_DEF_another_name_
5
_tags[0]), /* 1 */
/sizeof(asn_DEF_another_name_
8
_tags[0]), /* 1 */
asn_MBR_another_name_
5
,
asn_MBR_another_name_
8
,
2, /* Elements count */
2, /* Elements count */
&asn_SPC_another_name_
5
_specs /* Additional specs */
&asn_SPC_another_name_
8
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_two_name_
4
[] = {
static asn_TYPE_member_t asn_MBR_two_name_
7
[] = {
{ ATF_NOFLAGS, 0, offsetof(struct two_name, another_name),
{ ATF_NOFLAGS, 0, offsetof(struct two_name, another_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_another_name_
5
,
.type = (void *)&asn_DEF_another_name_
8
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "another-name"
.name = "another-name"
},
},
};
};
static ber_tlv_tag_t asn_DEF_two_name_
4
_tags[] = {
static ber_tlv_tag_t asn_DEF_two_name_
7
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
};
static asn_TYPE_tag2member_t asn_MAP_two_name_
4
_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_two_name_
7
_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name at 40 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name at 40 */
};
};
static uint8_t asn_MAP_two_name_
4
_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
static uint8_t asn_MAP_two_name_
7
_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
(1 << 7)
};
};
static asn_SET_specifics_t asn_SPC_two_name_
4
_specs = {
static asn_SET_specifics_t asn_SPC_two_name_
7
_specs = {
sizeof(struct two_name),
sizeof(struct two_name),
offsetof(struct two_name, _asn_ctx),
offsetof(struct two_name, _asn_ctx),
offsetof(struct two_name, _presence_map),
offsetof(struct two_name, _presence_map),
asn_MAP_two_name_
4
_tag2el,
asn_MAP_two_name_
7
_tag2el,
1, /* Count of tags in the map */
1, /* Count of tags in the map */
asn_MAP_two_name_
4
_tag2el, /* Same as above */
asn_MAP_two_name_
7
_tag2el, /* Same as above */
1, /* Count of tags in the CXER map */
1, /* Count of tags in the CXER map */
0, /* Whether extensible */
0, /* Whether extensible */
(unsigned int *)asn_MAP_two_name_
4
_mmap /* Mandatory elements map */
(unsigned int *)asn_MAP_two_name_
7
_mmap /* Mandatory elements map */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_two_name_
4
= {
asn_TYPE_descriptor_t asn_DEF_two_name_
7
= {
"two-name",
"two-name",
"two-name",
"two-name",
SET_free,
SET_free,
...
@@ -635,15 +635,15 @@ asn_TYPE_descriptor_t asn_DEF_two_name_4 = {
...
@@ -635,15 +635,15 @@ asn_TYPE_descriptor_t asn_DEF_two_name_4 = {
SET_decode_xer,
SET_decode_xer,
SET_encode_xer,
SET_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_two_name_
4
_tags,
asn_DEF_two_name_
7
_tags,
sizeof(asn_DEF_two_name_
4
_tags)
sizeof(asn_DEF_two_name_
7
_tags)
/sizeof(asn_DEF_two_name_
4
_tags[0]), /* 1 */
/sizeof(asn_DEF_two_name_
7
_tags[0]), /* 1 */
asn_DEF_two_name_
4
_tags, /* Same as above */
asn_DEF_two_name_
7
_tags, /* Same as above */
sizeof(asn_DEF_two_name_
4
_tags)
sizeof(asn_DEF_two_name_
7
_tags)
/sizeof(asn_DEF_two_name_
4
_tags[0]), /* 1 */
/sizeof(asn_DEF_two_name_
7
_tags[0]), /* 1 */
asn_MBR_two_name_
4
,
asn_MBR_two_name_
7
,
1, /* Elements count */
1, /* Elements count */
&asn_SPC_two_name_
4
_specs /* Additional specs */
&asn_SPC_two_name_
7
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_Type2_1[] = {
static asn_TYPE_member_t asn_MBR_Type2_1[] = {
...
@@ -657,7 +657,7 @@ static asn_TYPE_member_t asn_MBR_Type2_1[] = {
...
@@ -657,7 +657,7 @@ static asn_TYPE_member_t asn_MBR_Type2_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.two_name),
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.two_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_two_name_
4
,
.type = (void *)&asn_DEF_two_name_
7
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "two-name"
.name = "two-name"
},
},
...
...
tests/73-circular-OK.asn1
View file @
e8318b8d
...
@@ -26,7 +26,9 @@ BEGIN
...
@@ -26,7 +26,9 @@ BEGIN
Ypet ::= SET {
Ypet ::= SET {
epyt Epyt,
epyt Epyt,
plain INTEGER DEFAULT 7,
plain INTEGER DEFAULT 7,
senums SET OF EnumType
senums SET OF EnumType,
patest1 [1] IA5String (FROM("A".."Z")),
patest2 [2] IA5String (FROM("a".."z"))
}
}
EnumType ::= ENUMERATED { one, two }
EnumType ::= ENUMERATED { one, two }
...
...
tests/73-circular-OK.asn1.-P
View file @
e8318b8d
...
@@ -153,7 +153,7 @@ EpytRef_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -153,7 +153,7 @@ EpytRef_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
* so here we adjust the DEF accordingly.
*/
*/
static void
static void
EpytRef_
0
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
EpytRef_
1
_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_Epyt.free_struct;
td->free_struct = asn_DEF_Epyt.free_struct;
td->print_struct = asn_DEF_Epyt.print_struct;
td->print_struct = asn_DEF_Epyt.print_struct;
td->ber_decoder = asn_DEF_Epyt.ber_decoder;
td->ber_decoder = asn_DEF_Epyt.ber_decoder;
...
@@ -168,21 +168,21 @@ EpytRef_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
...
@@ -168,21 +168,21 @@ EpytRef_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
void
EpytRef_free(asn_TYPE_descriptor_t *td,
EpytRef_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
void *struct_ptr, int contents_only) {
EpytRef_
0
_inherit_TYPE_descriptor(td);
EpytRef_
1
_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
td->free_struct(td, struct_ptr, contents_only);
}
}
int
int
EpytRef_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
EpytRef_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
EpytRef_
0
_inherit_TYPE_descriptor(td);
EpytRef_
1
_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
EpytRef_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
EpytRef_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
void **structure, void *bufptr, size_t size, int tag_mode) {
EpytRef_
0
_inherit_TYPE_descriptor(td);
EpytRef_
1
_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
}
...
@@ -190,14 +190,14 @@ asn_enc_rval_t
...
@@ -190,14 +190,14 @@ asn_enc_rval_t
EpytRef_encode_der(asn_TYPE_descriptor_t *td,
EpytRef_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
EpytRef_
0
_inherit_TYPE_descriptor(td);
EpytRef_
1
_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
}
asn_dec_rval_t
asn_dec_rval_t
EpytRef_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
EpytRef_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
void **structure, const char *opt_mname, void *bufptr, size_t size) {
EpytRef_
0
_inherit_TYPE_descriptor(td);
EpytRef_
1
_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
}
...
@@ -205,14 +205,14 @@ asn_enc_rval_t
...
@@ -205,14 +205,14 @@ asn_enc_rval_t
EpytRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
EpytRef_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
asn_app_consume_bytes_f *cb, void *app_key) {
EpytRef_
0
_inherit_TYPE_descriptor(td);
EpytRef_
1
_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
}
/*** <<< STAT-DEFS [EpytRef] >>> ***/
/*** <<< STAT-DEFS [EpytRef] >>> ***/
static ber_tlv_tag_t asn_DEF_EpytRef_
0
_tags[] = {
static ber_tlv_tag_t asn_DEF_EpytRef_
1
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
};
asn_TYPE_descriptor_t asn_DEF_EpytRef = {
asn_TYPE_descriptor_t asn_DEF_EpytRef = {
...
@@ -226,12 +226,12 @@ asn_TYPE_descriptor_t asn_DEF_EpytRef = {
...
@@ -226,12 +226,12 @@ asn_TYPE_descriptor_t asn_DEF_EpytRef = {
EpytRef_decode_xer,
EpytRef_decode_xer,
EpytRef_encode_xer,
EpytRef_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_EpytRef_
0
_tags,
asn_DEF_EpytRef_
1
_tags,
sizeof(asn_DEF_EpytRef_
0
_tags)
sizeof(asn_DEF_EpytRef_
1
_tags)
/sizeof(asn_DEF_EpytRef_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_EpytRef_
1
_tags[0]), /* 1 */
asn_DEF_EpytRef_
0
_tags, /* Same as above */
asn_DEF_EpytRef_
1
_tags, /* Same as above */
sizeof(asn_DEF_EpytRef_
0
_tags)
sizeof(asn_DEF_EpytRef_
1
_tags)
/sizeof(asn_DEF_EpytRef_
0
_tags[0]), /* 1 */
/sizeof(asn_DEF_EpytRef_
1
_tags[0]), /* 1 */
0, 0, /* Defined elsewhere */
0, 0, /* Defined elsewhere */
0 /* No specifics */
0 /* No specifics */
};
};
...
@@ -381,6 +381,7 @@ asn_TYPE_descriptor_t asn_DEF_Epyt = {
...
@@ -381,6 +381,7 @@ asn_TYPE_descriptor_t asn_DEF_Epyt = {
#include <Epyt.h>
#include <Epyt.h>
#include <INTEGER.h>
#include <INTEGER.h>
#include <IA5String.h>
#include <EnumType.h>
#include <EnumType.h>
#include <asn_SET_OF.h>
#include <asn_SET_OF.h>
#include <constr_SET_OF.h>
#include <constr_SET_OF.h>
...
@@ -396,6 +397,8 @@ typedef enum Ypet_PR {
...
@@ -396,6 +397,8 @@ typedef enum Ypet_PR {
Ypet_PR_epyt, /* Member epyt is present */
Ypet_PR_epyt, /* Member epyt is present */
Ypet_PR_plain, /* Member plain is present */
Ypet_PR_plain, /* Member plain is present */
Ypet_PR_senums, /* Member senums is present */
Ypet_PR_senums, /* Member senums is present */
Ypet_PR_patest1, /* Member patest1 is present */
Ypet_PR_patest2, /* Member patest2 is present */
} Ypet_PR;
} Ypet_PR;
/*** <<< TYPE-DECLS [Ypet] >>> ***/
/*** <<< TYPE-DECLS [Ypet] >>> ***/
...
@@ -409,10 +412,12 @@ typedef struct Ypet {
...
@@ -409,10 +412,12 @@ typedef struct Ypet {
/* Context for parsing across buffer boundaries */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
asn_struct_ctx_t _asn_ctx;
} senums;
} senums;
IA5String_t patest1;
IA5String_t patest2;
/* Presence bitmask: ASN_SET_ISPRESENT(pYpet, Ypet_PR_x) */
/* Presence bitmask: ASN_SET_ISPRESENT(pYpet, Ypet_PR_x) */
unsigned int _presence_map
unsigned int _presence_map
[((
3
+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
[((
5
+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
/* Context for parsing across buffer boundaries */
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
asn_struct_ctx_t _asn_ctx;
...
@@ -422,9 +427,89 @@ typedef struct Ypet {
...
@@ -422,9 +427,89 @@ typedef struct Ypet {
extern asn_TYPE_descriptor_t asn_DEF_Ypet;
extern asn_TYPE_descriptor_t asn_DEF_Ypet;
/*** <<< CTABLES [Ypet] >>> ***/
static int check_permitted_alphabet_6(const void *sptr) {
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *end = ch + st->size;
for(; ch < end; ch++) {
uint8_t cv = *ch;
if(!(cv >= 65 && cv <= 90)) return -1;
}
return 0;
}
static int check_permitted_alphabet_7(const void *sptr) {
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
const uint8_t *end = ch + st->size;
for(; ch < end; ch++) {
uint8_t cv = *ch;
if(!(cv >= 97 && cv <= 122)) return -1;
}
return 0;
}
/*** <<< CODE [Ypet] >>> ***/
static int
memb_patest1_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_consume_bytes_f *app_errlog, void *app_key) {
const IA5String_t *st = (const IA5String_t *)sptr;
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!check_permitted_alphabet_6(st)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_ERRLOG(app_errlog, app_key,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
static int
memb_patest2_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_consume_bytes_f *app_errlog, void *app_key) {
const IA5String_t *st = (const IA5String_t *)sptr;
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
if(!check_permitted_alphabet_7(st)) {
/* Constraint check succeeded */
return 0;
} else {
_ASN_ERRLOG(app_errlog, app_key,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
}
}
/*** <<< STAT-DEFS [Ypet] >>> ***/
/*** <<< STAT-DEFS [Ypet] >>> ***/
static asn_TYPE_member_t asn_MBR_senums_
2
[] = {
static asn_TYPE_member_t asn_MBR_senums_
4
[] = {
{ ATF_NOFLAGS, 0, 0,
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
...
@@ -433,16 +518,16 @@ static asn_TYPE_member_t asn_MBR_senums_2[] = {
...
@@ -433,16 +518,16 @@ static asn_TYPE_member_t asn_MBR_senums_2[] = {
.name = ""
.name = ""
},
},
};
};
static ber_tlv_tag_t asn_DEF_senums_
2
_tags[] = {
static ber_tlv_tag_t asn_DEF_senums_
4
_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
};
static asn_SET_OF_specifics_t asn_SPC_senums_
2
_specs = {
static asn_SET_OF_specifics_t asn_SPC_senums_
4
_specs = {
sizeof(struct senums),
sizeof(struct senums),
offsetof(struct senums, _asn_ctx),
offsetof(struct senums, _asn_ctx),
1, /* XER encoding is XMLValueList */
1, /* XER encoding is XMLValueList */
};
};
static /* Use -fall-defs-global to expose */
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_senums_
2
= {
asn_TYPE_descriptor_t asn_DEF_senums_
4
= {
"senums",
"senums",
"senums",
"senums",
SET_OF_free,
SET_OF_free,
...
@@ -453,15 +538,15 @@ asn_TYPE_descriptor_t asn_DEF_senums_2 = {
...
@@ -453,15 +538,15 @@ asn_TYPE_descriptor_t asn_DEF_senums_2 = {
SET_OF_decode_xer,
SET_OF_decode_xer,
SET_OF_encode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
0, /* Use generic outmost tag fetcher */
asn_DEF_senums_
2
_tags,
asn_DEF_senums_
4
_tags,
sizeof(asn_DEF_senums_
2
_tags)
sizeof(asn_DEF_senums_
4
_tags)
/sizeof(asn_DEF_senums_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_senums_
4
_tags[0]), /* 1 */
asn_DEF_senums_
2
_tags, /* Same as above */
asn_DEF_senums_
4
_tags, /* Same as above */
sizeof(asn_DEF_senums_
2
_tags)
sizeof(asn_DEF_senums_
4
_tags)
/sizeof(asn_DEF_senums_
2
_tags[0]), /* 1 */
/sizeof(asn_DEF_senums_
4
_tags[0]), /* 1 */
asn_MBR_senums_
2
,
asn_MBR_senums_
4
,
1, /* Single element */
1, /* Single element */
&asn_SPC_senums_
2
_specs /* Additional specs */
&asn_SPC_senums_
4
_specs /* Additional specs */
};
};
static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
...
@@ -482,10 +567,24 @@ static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
...
@@ -482,10 +567,24 @@ static asn_TYPE_member_t asn_MBR_Ypet_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, senums),
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, senums),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_senums_
2
,
.type = (void *)&asn_DEF_senums_
4
,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "senums"
.name = "senums"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, patest1),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_IA5String,
.memb_constraints = memb_patest1_1_constraint,
.name = "patest1"
},
{ ATF_NOFLAGS, 0, offsetof(struct Ypet, patest2),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_IA5String,
.memb_constraints = memb_patest2_1_constraint,
.name = "patest2"
},
};
};
static ber_tlv_tag_t asn_DEF_Ypet_1_tags[] = {
static ber_tlv_tag_t asn_DEF_Ypet_1_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
...
@@ -493,19 +592,21 @@ static ber_tlv_tag_t asn_DEF_Ypet_1_tags[] = {
...
@@ -493,19 +592,21 @@ static ber_tlv_tag_t asn_DEF_Ypet_1_tags[] = {
static asn_TYPE_tag2member_t asn_MAP_Ypet_1_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_Ypet_1_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* plain at 28 */
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* plain at 28 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* epyt at 27 */
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 }, /* epyt at 27 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 2, 0, 0 } /* senums at 30 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 2, 0, 0 }, /* senums at 29 */
{ (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 3, 0, 0 }, /* patest1 at 30 */
{ (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 4, 0, 0 } /* patest2 at 31 */
};
};
static uint8_t asn_MAP_Ypet_1_mmap[(
3
+ (8 * sizeof(unsigned int)) - 1) / 8] = {
static uint8_t asn_MAP_Ypet_1_mmap[(
5
+ (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7) | (0 << 6) | (1 << 5)
(1 << 7) | (0 << 6) | (1 << 5)
| (1 << 4) | (1 << 3)
};
};
static asn_SET_specifics_t asn_SPC_Ypet_1_specs = {
static asn_SET_specifics_t asn_SPC_Ypet_1_specs = {
sizeof(struct Ypet),
sizeof(struct Ypet),
offsetof(struct Ypet, _asn_ctx),
offsetof(struct Ypet, _asn_ctx),
offsetof(struct Ypet, _presence_map),
offsetof(struct Ypet, _presence_map),
asn_MAP_Ypet_1_tag2el,
asn_MAP_Ypet_1_tag2el,
3
, /* Count of tags in the map */
5
, /* Count of tags in the map */
asn_MAP_Ypet_1_tag2el, /* Same as above */
asn_MAP_Ypet_1_tag2el, /* Same as above */
3
, /* Count of tags in the CXER map */
5
, /* Count of tags in the CXER map */
0, /* Whether extensible */
0, /* Whether extensible */
(unsigned int *)asn_MAP_Ypet_1_mmap /* Mandatory elements map */
(unsigned int *)asn_MAP_Ypet_1_mmap /* Mandatory elements map */
};
};
...
@@ -527,7 +628,7 @@ asn_TYPE_descriptor_t asn_DEF_Ypet = {
...
@@ -527,7 +628,7 @@ asn_TYPE_descriptor_t asn_DEF_Ypet = {
sizeof(asn_DEF_Ypet_1_tags)
sizeof(asn_DEF_Ypet_1_tags)
/sizeof(asn_DEF_Ypet_1_tags[0]), /* 1 */
/sizeof(asn_DEF_Ypet_1_tags[0]), /* 1 */
asn_MBR_Ypet_1,
asn_MBR_Ypet_1,
3
, /* Elements count */
5
, /* Elements count */
&asn_SPC_Ypet_1_specs /* Additional specs */
&asn_SPC_Ypet_1_specs /* Additional specs */
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment