> I have an operation that contains no argument just a tag value. Which
> means it is not a sequence, choice, integer it is null, but i need to
> define the operation anyway. How can i define this operation in asn1, what
> is the syntax. Is there like MyOperation::={NULL}

A null type is written like this

NullType ::= NULL

A PDU containing nothing but NULL will encode as just a tag value neither
in BER nor in PER.

In BER you would get a tag and a length of 0. Thus, assuming your tag is
UNIVERSAL 5, your encoded data would be 0500.

In PER there are no tags. Further, a NULL is not encoded. This
clearly leaves nothing (no bits), but a PDU cannot have no bits, so
a single octet of 0's is inserted, so to speak, as padding. Perhaps
it's this padding octet you are seeing?

=====================================================================
Conrad Sigona                         Toll Free      : 1-888-OSS-ASN1  
OSS Nokalva                           Voice Mail     : 1-732-302-9669 x400  
[EMAIL PROTECTED]                        Fax            : 1-419-831-5035
http://www.oss.com                    My direct line : 1-315-845-1773

Reply via email to