Encode an ASN.1 value described by it into a newly allocated memory BIO.
Declared in <openssl/asn1.h>
BIO*
ASN1_item_i2d_mem_bio(
ASN1_ITEM const* it,
ASN1_VALUE const* val);
Memory BIO holding the DER encoding, or NULL on error; free with BIO_free().
| Name | Description |
|---|---|
| it | ASN.1 item descriptor for the type of val. |
| val | Value to encode (may be NULL for some optional types). |