Re: d2i and ASN1_CHOICE

2003-06-30 Thread Fernando Moya
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:

d2i and ASN1_CHOICE

2003-06-26 Thread Fernando Moya
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

Re: d2i and ASN1_CHOICE

2003-06-26 Thread Frank Balluffi
] cc: Sent by: Subject: d2i and ASN1_CHOICE

Re: d2i and ASN1_CHOICE

2003-06-26 Thread Dr. Stephen Henson
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,

Re: d2i and ASN1_CHOICE

2003-06-26 Thread Dr. Stephen Henson
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

Re: d2i and ASN1_CHOICE

2003-06-26 Thread Frank Balluffi
: Subject: Re: d2i and ASN1_CHOICE Sent by: owner