Hi All,
Please forgive my ignorance. 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
Finally, due to wording ("effective absence of a component of a
_sequence_"), does this apply _only_ to a SEQUENCE or SEQUENCE OF (and
not SET or SET OF)? If the clause applies to SET, then I should
encode:
0x31, 0x02, 0x05, 0x00
Sorry about being a language lawyer... 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
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1