I'd like the PER to encode a null-terminated string.
That is a variable length string with no length field
encoded - the null character would delimit the string.
Is this possible with ASN.1?
I need this to specify an existing protocol in
ASN.1+PER.
Dear Mr. George:
If you're saying that the encoding of the existing protocol contains a
variable length string, where the way of determining the length of the
encoded data is by looking for the null, the answer is no, this is not
possible with ASN.1. If the string is of a fixed length, the answer is yes,
since the null would be treated as a character like any other.
Finally, let me make sure you are not confusing the way data is represented
in the computer (null-terminated strings) with the way it is encoded. Most
ASN.1 character strings are represented as null-terminated strings in the
computer, but this is converted to a length field and a value field when it's
encoded. In PER, the length field is omitted when the length is fixed.
If you have further questions, please supply us with an example of the
encoded data so we can be certain of your intention.
Dear Mr. George:
I've been corrected with respect to my saying it is impossible for PER. It
is indeed impossible now, but there is work (due shortly) going on which
would allow it. The work is labelled "X.695 PER Encoding Instructions".
If you'd like to know OSS Nokalva's schedule for implementing this, please
contact me privately since the ASN.1 list is vendor neutral.
=====================================================================
Conrad Sigona Voice Mail : 1-732-302-9669 x400
OSS Nokalva Fax : 1-614-388-4156
[EMAIL PROTECTED] My direct line : 1-315-845-1773
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1