On Tue, 5 Mar 2002, Bujji krishna R B wrote:

> Hello,
>
>       I would like to know if the following ASN.1 construct a valid one.
>
>       X ::= SEQUENCE {
>
>               id1 OBJECT IDENTIFIER,
>               id2 OBJECT IDENTIFIER,
>               parameters1 ANY DEFINED BY id1 OPTIONAL,
>               parameters2 ANY DEFINED BY id2 OPTIONAL
>       }

No.  It is invalid not only because of the ambiguity of
parameters1/parameters2, but because ANY has not been part of the ASN.1
standard for eight years now, and the 1988 standard which defines it -
X.208, is scheduled for withdrawal this year upon publication of
ASN.1:2002.

>       Since both ANY fields are OPTIONAL, do we need to have context specific
> TAGS for ANY.

Correct.  The tag could be PRIVATE or APPLICATION, but context-specific is
(IMHO) preferred.

-------------------------------------------------------------------------
Bancroft Scott                               Toll Free    :1-888-OSS-ASN1
OSS Nokalva                                  International:1-732-302-0750
[EMAIL PROTECTED]                                 Tech Support :1-732-302-9669 x-1
1-732-302-9669 x-200                         Fax          :1-732-302-0023
http://www.oss.com

Reply via email to