Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Use of NULL with SEQUENCE OF and SET OF

0 views
Skip to first unread message

Jeffrey Walton

unread,
Apr 15, 2008, 9:30:28 PM4/15/08
to
Hi All,

I'm not sure if I should use a NULL when SEQUENCE OF or SET OF
contains zero types. From X.680 [1]: "Use a null type to indicate the
effective absence of a component of a sequence." From the cited, I
believe I should. So a sequence of zero types should be encoded as:

0x30, 0x02, 0x05, 0x00
or
0x30, 0x81, 0x02, 0x05, 0x00

Can anyone clarify this for me or point out my mistake?
Thanks,
Jeff
Jeffrey Walton

[1] X.680, Section E.2.9, http://www.itu.int/ITU-T/studygroups/com17/languages/X.680-0207.pdf

Norbert van Bolhuis

unread,
Apr 16, 2008, 4:47:12 AM4/16/08
to

wrong mailing list, try as...@asn1.org

Jeffrey Walton

unread,
Apr 16, 2008, 6:01:43 PM4/16/08
to
Hi Norbert,

On Apr 16, 4:47 am, Norbert van Bolhuis


<_n_v_bolhuis_NOS...@aimvalley.nl> wrote:
> Jeffrey Walton wrote:
> > Hi All,
>
> > I'm not sure if I should use a NULL when SEQUENCE OF or SET OF

> > contains zero types...
> > [SNIP]
>
> wrong mailing list, try a...@asn1.org- Hide quoted text -
>
>
My apologizes. Thanks for the list.

Jeff


0 new messages