Re: asn.1 recursive type and choice

2005-03-19 Thread Dr. Stephen Henson
On Sat, Mar 19, 2005, Eric Alata wrote: > Thank you Stephen for your reply. > > As expected in your answer, I have used > ASN1_DECLARE_ITEM(TA) just before > ASN1_CHOICE(TA). Now, it compiles. > > I believe to understant why this structure > is ambiguous. Only, I need this field f2. > If I write

Re: asn.1 recursive type and choice

2005-03-19 Thread Eric Alata
Thank you Stephen for your reply. As expected in your answer, I have used ASN1_DECLARE_ITEM(TA) just before ASN1_CHOICE(TA). Now, it compiles. I believe to understant why this structure is ambiguous. Only, I need this field f2. If I write: TA ::= CHOICE { f1 SET OF TA, f2 [10] TA, f3 INTEG

Re: asn.1 recursive type and choice

2005-03-18 Thread Dr. Stephen Henson
On Fri, Mar 18, 2005, Eric Alata wrote: > Hello, > > I would like to use openssl/asn1 with these types: > > TA ::= CHOICE { > f1 SET OF TA, > f2 TA, > f3 INTEGER > } > > TB ::= SEQUENCE { > f1 INTEGER, > f2 CHOICE { > f2_1 INTEGER, > f2_2 BOOLEAN > } > } > > I have two prob

Re: asn.1 recursive type and choice

2005-03-18 Thread Dr. Stephen Henson
On Fri, Mar 18, 2005, Eric Alata wrote: > Hello, > > I would like to use openssl/asn1 with these types: > > TA ::= CHOICE { > f1 SET OF TA, > f2 TA, > f3 INTEGER > } > That's ambiguous so nothing can handle it. If you delete the f2 option you would be OK. Steve. -- Dr Stephen N. Henson.