Re: DER coding of a default syntax value

Bancroft Scott <75613.602@compuserve.com> Sat, 22 June 1996 04:55 UTC

Received: from ietf.cnri.reston.va.us by IETF.CNRI.Reston.VA.US id aa06649; 22 Jun 96 0:55 EDT
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa06645; 22 Jun 96 0:55 EDT
Received: from [192.94.214.96] by CNRI.Reston.VA.US id aa01592; 22 Jun 96 0:55 EDT
Received: from neptune.tis.com by neptune.TIS.COM id aa22057; 22 Jun 96 0:32 EDT
Received: from relay.tis.com by neptune.TIS.COM id aa22043; 22 Jun 96 0:28 EDT
Received: by relay.tis.com; id AAA24139; Sat, 22 Jun 1996 00:30:37 -0400
Received: from sol.tis.com(192.33.112.100) by relay.tis.com via smap (V3.1.1) id xma024137; Sat, 22 Jun 96 00:30:09 -0400
Received: from relay.tis.com by tis.com (4.1/SUN-5.64) id AA06319; Sat, 22 Jun 96 00:30:12 EDT
Received: by relay.tis.com; id AAA24134; Sat, 22 Jun 1996 00:30:07 -0400
Received: from dub-img-4.compuserve.com(198.4.9.4) by relay.tis.com via smap (V3.1.1) id xma024129; Sat, 22 Jun 96 00:29:39 -0400
Received: by dub-img-4.compuserve.com (8.6.10/5.950515) id AAA09351; Sat, 22 Jun 1996 00:32:15 -0400
Date: Sat, 22 Jun 1996 00:12:12 -0400
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Bancroft Scott <75613.602@compuserve.com>
To: Peter Williams <peter@verisign.com>
Cc: PEM-DEV <PEM-DEV@tis.com>
Subject: Re: DER coding of a default syntax value
Message-Id: <960622041211_75613.602_GHL117-6@CompuServe.COM>
X-Orig-Sender: pem-dev-approval@neptune.tis.com
Precedence: bulk

Peter Williams <peter@verisign.com> wrote:

>let me, with my better yet better ASN.1 education now, again reexpress what
>I believe we are saying isnt allowed to be expressed (as the notation
>grammar prevents it):
>
> 
>  foo2  EXTENSION ::= {
>        SYNTAX                  PetersBooleanType -- a typereference
>        IDENTIFIED BY           id-foo2
>        }
>
>PetersBooleanType ::= BOOLEAN DEFAULT False
>
>this is because PeterBooleanType isnt legal notation. a typereference to
>"Type" (BOOLEAN) cannot just
>arbtraily assign itself with a default value, only component
>types can do this. The ASN.1 syntax grammer (happily) prevents
>this illegal expression.

Correct, the definition of PetersBooleanType is invalid.

>Ok next nasty. 
>
>  foo3  EXTENSION ::= {
>        SYNTAX                  PeterSeqOfType -- a typereference
>        IDENTIFIED BY           id-foo3
>        }
>
>PeterSeqOfType ::= SEQUENCE OF BOOLEAN DEFAULT {}

This too is invalid, since DEFAULT can appear only in the definition
of a component of a SET or SEQUENCE.

Bancroft Scott
Open Systems Solutions, Inc.