[#ASN1_item_i2d] = ASN1_item_i2d :mrdocs: Encode an ASN.1 value described by `it` to DER. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_item_i2d( xref:ASN1_VALUE.adoc[ASN1_VALUE] const* val, unsigned char** out, xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it); ---- == Return Value Number of bytes encoded, or a negative value on error. == Parameters [cols="1,4"] |=== | Name| Description | *val* | Value to encode (typed according to `it).` | *out* | Destination pointer updated like a standard i2d encoder, or NULL to measure length. | *it* | ASN.1 item descriptor for the type of `val.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#