|
Hi, That explains it. Well, as I had mentioned in my previous mail, the 2 null bytes in the
end are indicating EOC. And the 0x80 byte that you have received is, in fact, indicating indefinite
length encoding. (I missed it in my prev mail) (For more details, please see chapter 18 of ASN.1 book by Olivier
Dubuisson, which is freely downloadable from net.) So I think your decode code should be modified to take care of EOC
encoding. Thanks and Best Regards, Vishal. ================== Every time you try to operate on of these weird black controls that are
labelled in black on a black background, a little black light lights up black
to let you know you've done it. - The Restaurant at the End of The Universe -----Original Message----- > ReturnResult ::= SEQUENCE { > invokeID INTEGER
(-128..127), > > result SEQUENCE { >
operationCode CHOICE { >
localValue INTEGER, >
globalValue OBJECT IDENTIFIER > }, > parameter
OCTET STRING (SIZE(1..255)) > } OPTIONAL > } > > I recieved the following byte stream as
the encoding for > this structure. > 0xa2 0x0d 0x02 0x01 0x00 0x30 0x06 0x02
0x01 0x0e 0x80 > 0x01 0x04 0x00 0x00 According the definition given above, OCTET STRING(parameter) can not take 0x80 as TAG instead it should Have been 0x04 as tag value. I see problem from 0x80 byte onwards! Please send the complete dump and the exact ASN.1 descriptions also. Regards, Vasa _______________________________________________ ASN1 mailing list http://lists.asn1.org/mailman/listinfo/asn1 -- ***************************************************************** This email and any files transmitted with it
are confidential and intended solely for the use of the individual or
entity to whom they are addressed. Any opinions expressed
in the email are those of the individual and not necessarily the company. This footnote also confirms that this message has
been scanned for viruses and dangerous content by the
MailScanner, and is believed to be clean. ***************************************************************** -- ***************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any opinions expressed in the email are those of the individual and not necessarily the company. This footnote also confirms that this message has been scanned for viruses and dangerous content by the MailScanner, and is believed to be clean. ***************************************************************** |
_______________________________________________ ASN1 mailing list [email protected] http://lists.asn1.org/mailman/listinfo/asn1
