Encode obj with it and store the DER result in an OCTET STRING.
Declared in <openssl/asn1.h>
ASN1_STRING*
ASN1_item_pack(
void* obj,
ASN1_ITEM const* it,
ASN1_OCTET_STRING** oct);
The OCTET STRING holding the encoded bytes, or NULL on error.
| 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. |