[#ASN1_item_pack] = ASN1_item_pack :mrdocs: Encode `obj` with `it` and store the DER result in an OCTET STRING. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:ASN1_STRING.adoc[ASN1_STRING]* ASN1_item_pack( void* obj, xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it, xref:ASN1_OCTET_STRING.adoc[ASN1_OCTET_STRING]** oct); ---- == Return Value The OCTET STRING holding the encoded bytes, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *obj* | Typed ASN.1 value to encode. | *it* | ASN.1 item descriptor for `obj.` | *oct* | Optional destination OCTET STRING pointer; if NULL or *`oct` is NULL a new string is allocated. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#