enable to fill an OCTET_STRING incrementally
Go to github.com/vlm/asn1c for the latest version.
Brought to you by:
vlm
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.
enable incremental filling of an OCTET_STRING
Sorry, uploaded the wrong patch file initially.
The correct diff file is now online.
Patch was created for SVN revision 1409.