On Tue, 17 Apr 2001, Prabu Ramiah wrote:
> Being new to ASN, can someone help me with the encoding of Context-specific
> types :
>
> SortKeyList ::= SEQUENCE OF SEQUENCE {
> attributeType AttributeDescription,
> orderingRule [0] MatchingRuleId OPTIONAL,
> reverseOrder [1] BOOLEAN DEFAULT FALSE }
>
> where AttributeDescription and MatchingRuleId are OctetStrings.
You didn't let us know what MatchingRuleId is supposed to be.
> I understand that the orderingRule and reverseOrder should be encoded
> 0x80 andd 0x81 as they are primitive types. In the ASN.1 description, should
> there be a "{" before the orderingRule, on account of being a
> context-specific type ?
No, a { cannot be used before the orderingRule.
> Also is there a way to see the ASN.1 description from the octets generated
> (example : 30 10 30 ......) ?
One could try to guess, but you'd have to provide more of the PDU.
=====================================================================
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