ASN1 BER bit string encoding

Anders Nygren anders.nygren@REDACTED
Mon Nov 2 17:21:28 CET 2009


Hi
When encoding a bit string, that has a size constraint that is a
range, and the value to encode
is given using 'named bits', the encoded value always contains the
maximum number of bits.
This is a little inefficient since it forces the transmission of more
bits that necessary.

This is not a real problem, except that we have to communicate with a
node that rejects the
message if the encoded bit string contains more than the minimum number of bits.

Also it might be a good idea to change lists:sort to lists:usort in
asn1rt_ber_bin:get_all_bitposes/3 in order to not getting an error if
the same named bit
is specified more than once/

/Anders
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asn1rt_berbin.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20091102/016e0997/attachment.bin>


More information about the erlang-patches mailing list