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
1b4d059c
Commit
1b4d059c
authored
Nov 27, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
b2bed820
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
170 deletions
+1
-170
skeletons/constr_SET_OF.c
skeletons/constr_SET_OF.c
+1
-1
tests/31-set-of-OK.asn1
tests/31-set-of-OK.asn1
+0
-2
tests/31-set-of-OK.asn1.-EF
tests/31-set-of-OK.asn1.-EF
+0
-2
tests/31-set-of-OK.asn1.-P
tests/31-set-of-OK.asn1.-P
+0
-165
No files found.
skeletons/constr_SET_OF.c
View file @
1b4d059c
...
@@ -901,7 +901,7 @@ SET_OF_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -901,7 +901,7 @@ SET_OF_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
nelems
=
uper_get_length
(
pd
,
nelems
=
uper_get_length
(
pd
,
ct
?
ct
->
effective_bits
:
-
1
,
&
repeat
);
ct
?
ct
->
effective_bits
:
-
1
,
&
repeat
);
ASN_DEBUG
(
"Got to decode %d elements (eff %d)"
,
ASN_DEBUG
(
"Got to decode %d elements (eff %d)"
,
nelems
,
ct
?
ct
->
effective_bits
:
-
1
);
(
int
)
nelems
,
(
int
)
ct
?
ct
->
effective_bits
:
-
1
);
if
(
nelems
<
0
)
_ASN_DECODE_FAILED
;
if
(
nelems
<
0
)
_ASN_DECODE_FAILED
;
}
}
...
...
tests/31-set-of-OK.asn1
View file @
1b4d059c
...
@@ -37,6 +37,4 @@ BEGIN
...
@@ -37,6 +37,4 @@ BEGIN
-- not to the SET OF's embedded SEQUENCE!
-- not to the SET OF's embedded SEQUENCE!
}
}
SSS ::= SEQUENCE OF SET OF SEQUENCE OF BIT STRING
END
END
tests/31-set-of-OK.asn1.-EF
View file @
1b4d059c
...
@@ -23,6 +23,4 @@ Stuff ::= SET {
...
@@ -23,6 +23,4 @@ Stuff ::= SET {
}
}
}
}
SSS ::= SEQUENCE OF SET OF SEQUENCE OF BIT STRING
END
END
tests/31-set-of-OK.asn1.-P
View file @
1b4d059c
...
@@ -520,168 +520,3 @@ asn_TYPE_descriptor_t asn_DEF_Stuff = {
...
@@ -520,168 +520,3 @@ asn_TYPE_descriptor_t asn_DEF_Stuff = {
&asn_SPC_Stuff_specs_1 /* Additional specs */
&asn_SPC_Stuff_specs_1 /* Additional specs */
};
};
/*** <<< INCLUDES [SSS] >>> ***/
#include <asn_SEQUENCE_OF.h>
#include <asn_SET_OF.h>
#include <BIT_STRING.h>
#include <constr_SEQUENCE_OF.h>
#include <constr_SET_OF.h>
/*** <<< TYPE-DECLS [SSS] >>> ***/
typedef struct SSS {
A_SEQUENCE_OF(struct Member {
A_SET_OF(struct Member {
A_SEQUENCE_OF(BIT_STRING_t) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} ) list;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} SSS_t;
/*** <<< FUNC-DECLS [SSS] >>> ***/
extern asn_TYPE_descriptor_t asn_DEF_SSS;
/*** <<< STAT-DEFS [SSS] >>> ***/
static asn_TYPE_member_t asn_MBR_Member_3[] = {
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.type = &asn_DEF_BIT_STRING,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_Member_tags_3[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Member_specs_3 = {
sizeof(struct Member),
offsetof(struct Member, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_3 = {
"SEQUENCE OF",
"SEQUENCE_OF",
SEQUENCE_OF_free,
SEQUENCE_OF_print,
SEQUENCE_OF_constraint,
SEQUENCE_OF_decode_ber,
SEQUENCE_OF_encode_der,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
0, /* No PER decoder, -gen-PER to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Member_tags_3,
sizeof(asn_DEF_Member_tags_3)
/sizeof(asn_DEF_Member_tags_3[0]), /* 1 */
asn_DEF_Member_tags_3, /* Same as above */
sizeof(asn_DEF_Member_tags_3)
/sizeof(asn_DEF_Member_tags_3[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Member_3,
1, /* Single element */
&asn_SPC_Member_specs_3 /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Member_2[] = {
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = &asn_DEF_Member_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_Member_tags_2[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_Member_specs_2 = {
sizeof(struct Member),
offsetof(struct Member, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_2 = {
"SET OF",
"SET_OF",
SET_OF_free,
SET_OF_print,
SET_OF_constraint,
SET_OF_decode_ber,
SET_OF_encode_der,
SET_OF_decode_xer,
SET_OF_encode_xer,
0, /* No PER decoder, -gen-PER to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_Member_tags_2,
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
asn_DEF_Member_tags_2, /* Same as above */
sizeof(asn_DEF_Member_tags_2)
/sizeof(asn_DEF_Member_tags_2[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_Member_2,
1, /* Single element */
&asn_SPC_Member_specs_2 /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_SSS_1[] = {
{ ATF_POINTER, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.type = &asn_DEF_Member_2,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.per_constraints = 0, /* PER is not compiled, use -gen-PER */
.default_value = 0,
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_SSS_tags_1[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_SSS_specs_1 = {
sizeof(struct SSS),
offsetof(struct SSS, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
asn_TYPE_descriptor_t asn_DEF_SSS = {
"SSS",
"SSS",
SEQUENCE_OF_free,
SEQUENCE_OF_print,
SEQUENCE_OF_constraint,
SEQUENCE_OF_decode_ber,
SEQUENCE_OF_encode_der,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
0, /* No PER decoder, -gen-PER to enable */
0, /* Use generic outmost tag fetcher */
asn_DEF_SSS_tags_1,
sizeof(asn_DEF_SSS_tags_1)
/sizeof(asn_DEF_SSS_tags_1[0]), /* 1 */
asn_DEF_SSS_tags_1, /* Same as above */
sizeof(asn_DEF_SSS_tags_1)
/sizeof(asn_DEF_SSS_tags_1[0]), /* 1 */
0, /* No PER visible constraints */
asn_MBR_SSS_1,
1, /* Single element */
&asn_SPC_SSS_specs_1 /* 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