Menu

#14 enable to fill an OCTET_STRING incrementally

open
nobody
None
5
2010-04-19
2010-04-19
Timo
No

OCTET_STRING currently does not allow incremental filling, i.e., assigning one piece of data to it, and later another one using a subsequent call. Right now, users need to assemble data outside of asn1c and then provide the aggregated data in one piece to OCTET_STRING_fromBuf. To the least, this is non-convenient and error-prone.

The attached patch implements the desired functionality. To do so, the given OCTET_STRING's buffer is checked for prior allocation; if so, it will be re-allocated and the given data copied accordingly.

The patch has been in usage for me for quite a while.

Discussion

  • Timo

    Timo - 2010-04-19

    enable incremental filling of an OCTET_STRING

     
  • Timo

    Timo - 2010-04-19

    Sorry, uploaded the wrong patch file initially.

    The correct diff file is now online.

     
  • Timo

    Timo - 2010-04-19

    Patch was created for SVN revision 1409.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.