I found the error. At the end, the problem was a bad definition of
Sub_seq100. I have fixed it and ASN1_CHOICE works fine now. Thanks to all.
Regards.
Fernando Moya Bernal.
University of Malaga. Spain.
Hi, I am having problems with CHOICE in the following ASN.1 sequence:
Hi, I am having problems with CHOICE in the following ASN.1 sequence:
-
DEFINITIONS IMPLICIT TAGS
Sub_seq200 ::= SEQUENCE
{
sub_field1 Sub_seq100 OPTIONAL,
sub_field2 [0] Sub_seq400 OPTIONAL
}
Seq1 ::= CHOICE
]
cc:
Sent by: Subject: d2i and ASN1_CHOICE
On Thu, Jun 26, 2003, Fernando Moya wrote:
Hi, I am having problems with CHOICE in the following ASN.1 sequence:
-
DEFINITIONS IMPLICIT TAGS
Sub_seq200 ::= SEQUENCE
{
sub_field1 Sub_seq100 OPTIONAL,
On Thu, Jun 26, 2003, Frank Balluffi wrote:
Fernando,
I think all user-defined tags in a CHOICE (e.g., [0]) are EXPLICIT -- I could be
wrong and don't have time to check right now (it's been a while ...).
So I think you want:
ASN1_EXP(Seq1, value.field2,Sub_seq200, 0)
The default
:
Subject: Re: d2i and ASN1_CHOICE
Sent by:
owner