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
ba58e1b9
Commit
ba58e1b9
authored
Jan 17, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed comment wording
parent
fb857fdd
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
79 additions
and
79 deletions
+79
-79
tests/19-param-OK.asn1.-P
tests/19-param-OK.asn1.-P
+6
-6
tests/30-set-OK.asn1.-P
tests/30-set-OK.asn1.-P
+3
-3
tests/31-set-of-OK.asn1.-P
tests/31-set-of-OK.asn1.-P
+11
-11
tests/32-sequence-of-OK.asn1.-P
tests/32-sequence-of-OK.asn1.-P
+2
-2
tests/39-sequence-of-OK.asn1.-P
tests/39-sequence-of-OK.asn1.-P
+5
-5
tests/42-real-life-OK.asn1.-PR
tests/42-real-life-OK.asn1.-PR
+13
-13
tests/43-recursion-OK.asn1.-P
tests/43-recursion-OK.asn1.-P
+13
-13
tests/44-choice-in-sequence-OK.asn1.-P
tests/44-choice-in-sequence-OK.asn1.-P
+10
-10
tests/46-redefine-OK.asn1.-PR
tests/46-redefine-OK.asn1.-PR
+1
-1
tests/47-set-ext-OK.asn1.-P
tests/47-set-ext-OK.asn1.-P
+4
-4
tests/60-any-OK.asn1.-P
tests/60-any-OK.asn1.-P
+4
-4
tests/65-multi-tag-OK.asn1.-P
tests/65-multi-tag-OK.asn1.-P
+3
-3
tests/65-multi-tag-OK.asn1.-Pfnative-types
tests/65-multi-tag-OK.asn1.-Pfnative-types
+3
-3
tests/66-ref-simple-OK.asn1.-P
tests/66-ref-simple-OK.asn1.-P
+1
-1
No files found.
tests/19-param-OK.asn1.-P
View file @
ba58e1b9
...
@@ -71,21 +71,21 @@ static asn_TYPE_member_t asn_MBR_toBeSigned[] = {
...
@@ -71,21 +71,21 @@ static asn_TYPE_member_t asn_MBR_toBeSigned[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "version"
.name = "version"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, signature),
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, signature),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_OBJECT_IDENTIFIER,
.type = (void *)&asn_DEF_OBJECT_IDENTIFIER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "signature"
.name = "signature"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, issuer),
{ ATF_NOFLAGS, 0, offsetof(struct toBeSigned, issuer),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Name,
.type = (void *)&asn_DEF_Name,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "issuer"
.name = "issuer"
},
},
};
};
...
@@ -133,14 +133,14 @@ static asn_TYPE_member_t asn_MBR_Certificate[] = {
...
@@ -133,14 +133,14 @@ static asn_TYPE_member_t asn_MBR_Certificate[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_toBeSigned,
.type = (void *)&asn_DEF_toBeSigned,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "toBeSigned"
.name = "toBeSigned"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, algorithm),
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, algorithm),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_OBJECT_IDENTIFIER,
.type = (void *)&asn_DEF_OBJECT_IDENTIFIER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "algorithm"
.name = "algorithm"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, signature),
{ ATF_NOFLAGS, 0, offsetof(struct Certificate, signature),
...
@@ -217,7 +217,7 @@ static asn_TYPE_member_t asn_MBR_Name[] = {
...
@@ -217,7 +217,7 @@ static asn_TYPE_member_t asn_MBR_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_RelativeDistinguishedName,
.type = (void *)&asn_DEF_RelativeDistinguishedName,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
...
tests/30-set-OK.asn1.-P
View file @
ba58e1b9
...
@@ -46,21 +46,21 @@ static asn_TYPE_member_t asn_MBR_T[] = {
...
@@ -46,21 +46,21 @@ static asn_TYPE_member_t asn_MBR_T[] = {
.tag = (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
.tag = (ASN_TAG_CLASS_APPLICATION | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T, s),
{ ATF_NOFLAGS, 0, offsetof(struct T, s),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_IA5String,
.type = (void *)&asn_DEF_IA5String,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "s"
.name = "s"
},
},
{ ATF_POINTER, 0, offsetof(struct T, b),
{ ATF_POINTER, 0, offsetof(struct T, b),
.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_BOOLEAN,
.type = (void *)&asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "b"
.name = "b"
},
},
};
};
...
...
tests/31-set-of-OK.asn1.-P
View file @
ba58e1b9
...
@@ -26,7 +26,7 @@ static asn_TYPE_member_t asn_MBR_Forest[] = {
...
@@ -26,7 +26,7 @@ static asn_TYPE_member_t asn_MBR_Forest[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Tree,
.type = (void *)&asn_DEF_Tree,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -88,14 +88,14 @@ static asn_TYPE_member_t asn_MBR_Tree[] = {
...
@@ -88,14 +88,14 @@ static asn_TYPE_member_t asn_MBR_Tree[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "height"
.name = "height"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Tree, width),
{ ATF_NOFLAGS, 0, offsetof(struct Tree, width),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "width"
.name = "width"
},
},
};
};
...
@@ -221,7 +221,7 @@ static asn_TYPE_member_t asn_MBR_trees[] = {
...
@@ -221,7 +221,7 @@ static asn_TYPE_member_t asn_MBR_trees[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Forest,
.type = (void *)&asn_DEF_Forest,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -262,7 +262,7 @@ static asn_TYPE_member_t asn_MBR_anything_member[] = {
...
@@ -262,7 +262,7 @@ static asn_TYPE_member_t asn_MBR_anything_member[] = {
.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 = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "cup-of-coffee"
.name = "cup-of-coffee"
},
},
};
};
...
@@ -308,7 +308,7 @@ static asn_TYPE_member_t asn_MBR_anything[] = {
...
@@ -308,7 +308,7 @@ static asn_TYPE_member_t asn_MBR_anything[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_anything_member,
.type = (void *)&asn_DEF_anything_member,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -349,14 +349,14 @@ static asn_TYPE_member_t asn_MBR_other[] = {
...
@@ -349,14 +349,14 @@ static asn_TYPE_member_t asn_MBR_other[] = {
.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 */
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "a"
.name = "a"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.b),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "b"
.name = "b"
},
},
};
};
...
@@ -399,21 +399,21 @@ static asn_TYPE_member_t asn_MBR_Stuff[] = {
...
@@ -399,21 +399,21 @@ static asn_TYPE_member_t asn_MBR_Stuff[] = {
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_trees,
.type = (void *)&asn_DEF_trees,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "trees"
.name = "trees"
},
},
{ 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,
.type = (void *)&asn_DEF_anything,
.memb_constraints = 0, /* Defer
to actual
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,
.type = (void *)&asn_DEF_other,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "other"
.name = "other"
},
},
};
};
...
...
tests/32-sequence-of-OK.asn1.-P
View file @
ba58e1b9
...
@@ -26,7 +26,7 @@ static asn_TYPE_member_t asn_MBR_Programming[] = {
...
@@ -26,7 +26,7 @@ static asn_TYPE_member_t asn_MBR_Programming[] = {
.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 */
.type = (void *)&asn_DEF_Fault,
.type = (void *)&asn_DEF_Fault,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -88,7 +88,7 @@ static asn_TYPE_member_t asn_MBR_Fault[] = {
...
@@ -88,7 +88,7 @@ static asn_TYPE_member_t asn_MBR_Fault[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Error,
.type = (void *)&asn_DEF_Error,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
...
tests/39-sequence-of-OK.asn1.-P
View file @
ba58e1b9
...
@@ -34,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_collection[] = {
...
@@ -34,7 +34,7 @@ static asn_TYPE_member_t asn_MBR_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_T2,
.type = (void *)&asn_DEF_T2,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -74,14 +74,14 @@ static asn_TYPE_member_t asn_MBR_T[] = {
...
@@ -74,14 +74,14 @@ static asn_TYPE_member_t asn_MBR_T[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "int"
.name = "int"
},
},
{ 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,
.type = (void *)&asn_DEF_collection,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "collection"
.name = "collection"
},
},
};
};
...
@@ -151,14 +151,14 @@ static asn_TYPE_member_t asn_MBR_T2[] = {
...
@@ -151,14 +151,14 @@ static asn_TYPE_member_t asn_MBR_T2[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_BOOLEAN,
.type = (void *)&asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "flag"
.name = "flag"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct T2, str),
{ ATF_NOFLAGS, 0, offsetof(struct T2, str),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (12 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_UTF8String,
.type = (void *)&asn_DEF_UTF8String,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "str"
.name = "str"
},
},
};
};
...
...
tests/42-real-life-OK.asn1.-PR
View file @
ba58e1b9
...
@@ -70,7 +70,7 @@ static asn_TYPE_member_t asn_MBR_varsets[] = {
...
@@ -70,7 +70,7 @@ static asn_TYPE_member_t asn_MBR_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_VariablePartSet,
.type = (void *)&asn_DEF_VariablePartSet,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -110,7 +110,7 @@ static asn_TYPE_member_t asn_MBR_LogLine[] = {
...
@@ -110,7 +110,7 @@ static asn_TYPE_member_t asn_MBR_LogLine[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_IA5String,
.type = (void *)&asn_DEF_IA5String,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "line-digest"
.name = "line-digest"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
...
@@ -220,7 +220,7 @@ static asn_TYPE_member_t asn_MBR_vparts[] = {
...
@@ -220,7 +220,7 @@ static asn_TYPE_member_t asn_MBR_vparts[] = {
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_VariablePart,
.type = (void *)&asn_DEF_VariablePart,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -267,7 +267,7 @@ static asn_TYPE_member_t asn_MBR_VariablePartSet[] = {
...
@@ -267,7 +267,7 @@ static asn_TYPE_member_t asn_MBR_VariablePartSet[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_ActionItem,
.type = (void *)&asn_DEF_ActionItem,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "resolution"
.name = "resolution"
},
},
};
};
...
@@ -399,7 +399,7 @@ static asn_TYPE_member_t asn_MBR_vset[] = {
...
@@ -399,7 +399,7 @@ static asn_TYPE_member_t asn_MBR_vset[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_VisibleString,
.type = (void *)&asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -439,14 +439,14 @@ static asn_TYPE_member_t asn_MBR_vrange[] = {
...
@@ -439,14 +439,14 @@ static asn_TYPE_member_t asn_MBR_vrange[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_VisibleString,
.type = (void *)&asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "from"
.name = "from"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct vrange, to),
{ ATF_NOFLAGS, 0, offsetof(struct vrange, to),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_VisibleString,
.type = (void *)&asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "to"
.name = "to"
},
},
};
};
...
@@ -500,7 +500,7 @@ static asn_TYPE_member_t asn_MBR_VariablePart[] = {
...
@@ -500,7 +500,7 @@ static asn_TYPE_member_t asn_MBR_VariablePart[] = {
.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,
.type = (void *)&asn_DEF_vrange,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "vrange"
.name = "vrange"
},
},
};
};
...
@@ -596,7 +596,7 @@ static asn_TYPE_member_t asn_MBR_email[] = {
...
@@ -596,7 +596,7 @@ static asn_TYPE_member_t asn_MBR_email[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_VisibleString,
.type = (void *)&asn_DEF_VisibleString,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -636,14 +636,14 @@ static asn_TYPE_member_t asn_MBR_notify[] = {
...
@@ -636,14 +636,14 @@ static asn_TYPE_member_t asn_MBR_notify[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_BOOLEAN,
.type = (void *)&asn_DEF_BOOLEAN,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "critical"
.name = "critical"
},
},
{ 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,
.type = (void *)&asn_DEF_email,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "email"
.name = "email"
},
},
};
};
...
@@ -690,14 +690,14 @@ static asn_TYPE_member_t asn_MBR_ActionItem[] = {
...
@@ -690,14 +690,14 @@ static asn_TYPE_member_t asn_MBR_ActionItem[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_ENUMERATED,
.type = (void *)&asn_DEF_ENUMERATED,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "accept-as"
.name = "accept-as"
},
},
{ 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,
.type = (void *)&asn_DEF_notify,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "notify"
.name = "notify"
},
},
};
};
...
...
tests/43-recursion-OK.asn1.-P
View file @
ba58e1b9
...
@@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_t_member1[] = {
...
@@ -45,7 +45,7 @@ static asn_TYPE_member_t asn_MBR_t_member1[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Test_structure_1,
.type = (void *)&asn_DEF_Test_structure_1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -85,7 +85,7 @@ static asn_TYPE_member_t asn_MBR_t_member2[] = {
...
@@ -85,7 +85,7 @@ static asn_TYPE_member_t asn_MBR_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_Test_structure_1,
.type = (void *)&asn_DEF_Test_structure_1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -125,28 +125,28 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1[] = {
...
@@ -125,28 +125,28 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_t_member1,
.type = (void *)&asn_DEF_t_member1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "t-member1"
.name = "t-member1"
},
},
{ 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,
.type = (void *)&asn_DEF_t_member2,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "t-member2"
.name = "t-member2"
},
},
{ ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3),
{ ATF_POINTER, 1, offsetof(struct Test_structure_1, t_member3),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Test_structure_1,
.type = (void *)&asn_DEF_Test_structure_1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "t-member3"
.name = "t-member3"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4),
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member4),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "t-member4"
.name = "t-member4"
},
},
};
};
...
@@ -241,7 +241,7 @@ static asn_TYPE_member_t asn_MBR_or[] = {
...
@@ -241,7 +241,7 @@ static asn_TYPE_member_t asn_MBR_or[] = {
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Choice_1,
.type = (void *)&asn_DEF_Choice_1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
@@ -282,28 +282,28 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
...
@@ -282,28 +282,28 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = {
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_Choice_1,
.type = (void *)&asn_DEF_Choice_1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "and"
.name = "and"
},
},
{ 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,
.type = (void *)&asn_DEF_or,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "or"
.name = "or"
},
},
{ ATF_POINTER, 0, offsetof(struct Choice_1, choice.not),
{ ATF_POINTER, 0, offsetof(struct Choice_1, choice.not),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_Choice_1,
.type = (void *)&asn_DEF_Choice_1,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "not"
.name = "not"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other),
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.other),
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "other"
.name = "other"
},
},
};
};
...
@@ -382,7 +382,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_2[] = {
...
@@ -382,7 +382,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_2[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Test_structure_3,
.type = (void *)&asn_DEF_Test_structure_3,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m1"
.name = "m1"
},
},
};
};
...
@@ -468,7 +468,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_3[] = {
...
@@ -468,7 +468,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_3[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_Test_structure_2,
.type = (void *)&asn_DEF_Test_structure_2,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m1"
.name = "m1"
},
},
};
};
...
...
tests/44-choice-in-sequence-OK.asn1.-P
View file @
ba58e1b9
...
@@ -73,14 +73,14 @@ static asn_TYPE_member_t asn_MBR_e[] = {
...
@@ -73,14 +73,14 @@ static asn_TYPE_member_t asn_MBR_e[] = {
.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 */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "f"
.name = "f"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.g),
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.g),
.tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (8 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "g"
.name = "g"
},
},
};
};
...
@@ -123,14 +123,14 @@ static asn_TYPE_member_t asn_MBR_h[] = {
...
@@ -123,14 +123,14 @@ static asn_TYPE_member_t asn_MBR_h[] = {
.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 */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.j),
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.j),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "j"
.name = "j"
},
},
};
};
...
@@ -173,28 +173,28 @@ static asn_TYPE_member_t asn_MBR_b[] = {
...
@@ -173,28 +173,28 @@ static asn_TYPE_member_t asn_MBR_b[] = {
.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 */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "c"
.name = "c"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.d),
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.d),
.tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (6 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "d"
.name = "d"
},
},
{ 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,
.type = (void *)&asn_DEF_e,
.memb_constraints = 0, /* Defer
to actual
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,
.type = (void *)&asn_DEF_h,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "h"
.name = "h"
},
},
};
};
...
@@ -240,14 +240,14 @@ static asn_TYPE_member_t asn_MBR_T[] = {
...
@@ -240,14 +240,14 @@ static asn_TYPE_member_t asn_MBR_T[] = {
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag = (ASN_TAG_CLASS_PRIVATE | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_NULL,
.type = (void *)&asn_DEF_NULL,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "a"
.name = "a"
},
},
{ 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,
.type = (void *)&asn_DEF_b,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "b"
.name = "b"
},
},
};
};
...
...
tests/46-redefine-OK.asn1.-PR
View file @
ba58e1b9
...
@@ -44,7 +44,7 @@ static asn_TYPE_member_t asn_MBR_ConstructedType[] = {
...
@@ -44,7 +44,7 @@ static asn_TYPE_member_t asn_MBR_ConstructedType[] = {
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_PrimitiveType,
.type = (void *)&asn_DEF_PrimitiveType,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "field"
.name = "field"
},
},
};
};
...
...
tests/47-set-ext-OK.asn1.-P
View file @
ba58e1b9
...
@@ -40,7 +40,7 @@ static asn_TYPE_member_t asn_MBR_T1[] = {
...
@@ -40,7 +40,7 @@ static asn_TYPE_member_t asn_MBR_T1[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
};
};
...
@@ -128,7 +128,7 @@ static asn_TYPE_member_t asn_MBR_T2[] = {
...
@@ -128,7 +128,7 @@ static asn_TYPE_member_t asn_MBR_T2[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
};
};
...
@@ -213,7 +213,7 @@ static asn_TYPE_member_t asn_MBR_T3[] = {
...
@@ -213,7 +213,7 @@ static asn_TYPE_member_t asn_MBR_T3[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
};
};
...
@@ -288,7 +288,7 @@ static asn_TYPE_member_t asn_MBR_T4[] = {
...
@@ -288,7 +288,7 @@ static asn_TYPE_member_t asn_MBR_T4[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
};
};
...
...
tests/60-any-OK.asn1.-P
View file @
ba58e1b9
...
@@ -27,14 +27,14 @@ static asn_TYPE_member_t asn_MBR_T1[] = {
...
@@ -27,14 +27,14 @@ static asn_TYPE_member_t asn_MBR_T1[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T1, any),
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T1, any),
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_ANY,
.type = (void *)&asn_DEF_ANY,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "any"
.name = "any"
},
},
};
};
...
@@ -103,14 +103,14 @@ static asn_TYPE_member_t asn_MBR_T2[] = {
...
@@ -103,14 +103,14 @@ static asn_TYPE_member_t asn_MBR_T2[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_INTEGER,
.type = (void *)&asn_DEF_INTEGER,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "i"
.name = "i"
},
},
{ ATF_POINTER, 1, offsetof(struct T2, any),
{ ATF_POINTER, 1, offsetof(struct T2, any),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_ANY,
.type = (void *)&asn_DEF_ANY,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "any"
.name = "any"
},
},
};
};
...
...
tests/65-multi-tag-OK.asn1.-P
View file @
ba58e1b9
...
@@ -793,21 +793,21 @@ static asn_TYPE_member_t asn_MBR_Ts[] = {
...
@@ -793,21 +793,21 @@ static asn_TYPE_member_t asn_MBR_Ts[] = {
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_T2,
.type = (void *)&asn_DEF_T2,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m1"
.name = "m1"
},
},
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_T3,
.type = (void *)&asn_DEF_T3,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m2"
.name = "m2"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_T3,
.type = (void *)&asn_DEF_T3,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m3"
.name = "m3"
},
},
};
};
...
...
tests/65-multi-tag-OK.asn1.-Pfnative-types
View file @
ba58e1b9
...
@@ -793,21 +793,21 @@ static asn_TYPE_member_t asn_MBR_Ts[] = {
...
@@ -793,21 +793,21 @@ static asn_TYPE_member_t asn_MBR_Ts[] = {
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_T2,
.type = (void *)&asn_DEF_T2,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m1"
.name = "m1"
},
},
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
{ ATF_POINTER, 1, offsetof(struct Ts, m2),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_T3,
.type = (void *)&asn_DEF_T3,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m2"
.name = "m2"
},
},
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
{ ATF_NOFLAGS, 0, offsetof(struct Ts, m3),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag = (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_T3,
.type = (void *)&asn_DEF_T3,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = "m3"
.name = "m3"
},
},
};
};
...
...
tests/66-ref-simple-OK.asn1.-P
View file @
ba58e1b9
...
@@ -26,7 +26,7 @@ static asn_TYPE_member_t asn_MBR_T[] = {
...
@@ -26,7 +26,7 @@ static asn_TYPE_member_t asn_MBR_T[] = {
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)),
.tag_mode = 0,
.tag_mode = 0,
.type = (void *)&asn_DEF_SimpleType,
.type = (void *)&asn_DEF_SimpleType,
.memb_constraints = 0, /* Defer
to actual
type */
.memb_constraints = 0, /* Defer
constraints checking to the member
type */
.name = ""
.name = ""
},
},
};
};
...
...
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