Patch for asn1 library -> UPER

Aude Quintana aude.quintana@REDACTED
Tue Aug 25 14:28:42 CEST 2009


Hello !

Here is another patch for Erlang asn1 library -> UPER

The UPER encoding function for OCTETSTRING doesn't accept binaries in
argument.
It's strange because
  * BER function accept them
  * The encoding function of UPER transforms the list passed in argument in
a binary.
  * it would be needlessly wastefull to wrap our data inside a list when it
is already a binary
So it should directly accept binaries in argument too.

.diff file attached is a patch which adds this functionality.
It just modifies encode_octet_string function in
  * asn1rt_uper_bin.erl

 There is the same problem with APER (files asn1rt_per_bin.erl and
asn1rt_per_bin_rt2ct.erl)
 but it would take too much time to change it because it's more complicated
in these files.

Best regards,
Aude.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20090825/8f49f956/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_binlist.diff
Type: text/x-patch
Size: 1131 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20090825/8f49f956/attachment.bin>


More information about the erlang-patches mailing list