Hi all,
I am trying to create an abstract ASN.1 syntax for our own application.
This is for a communication stream between two programs. In our case,
the binary stream was created by someone without use of "real" ASN.1
tools and maybe without fully understanding the do's and don'ts of ASN.1.
So, what I am running in to is the occurrence of repeating tags without
an enclosing container type. If I understand correctly, repeating tags
are normally specified in a fashion like this:
Chunk ::= SEQUENCE {
head [1] OCTET STRING,
body [2] SEQUENCE OF BodyChunk
}
BodyChunk ::= [1] OCTET STRING
And this would result in a structure like this:
1 <Chunk>
1 <head>
2 <body>
1 <BodyChunk>
1 <BodyChunk>
1 <BodyChunk>
1 <BodyChunk>
What I want to describe is something like this:
1 <Chunk>
1 <head>
2 <BodyChunk>
2 <BodyChunk>
2 <BodyChunk>
2 <BodyChunk>
I have tried constructions like:
head [1] OCTET STRING,
COMPONENTS OF SEQUENCE OF [2] BodyChunk
but the viewers I am using seem not able to compile/parse that.
Can anyone tell me if it is possible to specify what I want and how that
is done?
Thanks,
Manuel.
--
drs. Manuel Polling
Consultant/Software Engineer
Edmond Research & Development B.V.
/The Document Solutions Specialist/
http://www.edmond.nl/
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1